Troubleshooting.

How to copy-paste in screen iterm2, in a aws ec2 instance

Copy-pasting doesn't work inside screen on aws? Same here.

And I'm too tired of these companies putting sticks in my wheels. They obviously do it on purpose to decrease my (and your) productivity. Somehow, other cloud providers allow copy-pasting just fine, somehow.

Anyway, the trick is to click CMD-F (search) and then you can drag across screen text to copy it. 

Anyway, the trick is to click CMD-F (search) and then you can drag across screen text to copy it. 

[FIXED]: Error: Call to a member function transformDimensions() on null in core/modules/ image/image.module

The issue stems from the preview being in an undefined style.

1. Go to configuration -> image styles and review the styles available. I have a style called "200x200 thumb".

2. After adding an image field to a content type, go to manage form display, expand the display of the image, and specify an existing style from step 1 as the preview style.

After taking these steps, the page for adding/editing this content type should render correctly.

[FIXED]: drush The specified database connection is not defined: default

Fixing this took me years... I can't believe how long it took. The answers on stack overflow did not help.

The error was due to a mismatching php configuration for running in the shell ( /etc/php/8.1/cli/php.ini ) and in apache (/etc/php/8.1/apache2/php.ini ).

Specifically, I had to enable short tags for the shell: 

short_open_tag = On

With that, this particular error was fixed, and I was off to fixing the next error!