Hi,
I am having problems with images in Alloy Blogs. I have deployed Alloy into two sites, one that seems to be working fine and the other that doesn’t handle the images. I spent a lot of time trying to debug this, but I’ve rather run out of ideas.
So, here is what I know.
- I’m operating on Apache with PHP 7.3
- The text part works but the images don’t upload into the image-uploads directory
- Ownership of the image-uploads directory is set correctly for Apache
- Permissions are 755, which seems right.
- Alloy deploys the image-uploads and posts directories if they do not exist.
Now for the Errors, and I get loads and loads of them.
When uploading images I get 319 lines of errors in Apache’s Error Log. I won’t put them in here but the highlights seem to be:
PHP Notice: Undefined variable: currentPage in /var/www/SITEROOT/index.php on line 122
PHP Stack trace:
PHP 1. {main}() /var/www/SITEROOT/WB-Editor/index.php:0
PHP Notice: Undefined index: category in /var/www/SITEROOT/WB-Editor/index.php on line 219
and so on…
Particularly interesting midway through the error report:
PHP Fatal error: Uncaught Error: Call to undefined function imagecreatetruecolor() in /var/www/SITEROOT/WB-Editor/files/upload.php:59\nStack trace:\n#0 /var/www/SITEROOT/WB-Editor/files/upload.php(98): resize_crop_image(90, 60, ‘/tmp/phpG20FCy’, ‘/var/www/testin…’)\n#1 {main}\n thrown in /var/www/SITEROOT/WB-Editor/files/upload.php on line 59
I have deleted all the files in the SiteRoot and then republished the whole RapidWeaver site, only to get the same behaviour.
I have checked out the instructions several times and I just cannot see where I could have got things so wrong. If anyone can point me in the right direction, I’d be very grateful.
Cheers, Barry