GMann1984 Posted 6 hours ago Share Posted 6 hours ago I have a boat name designer that uses ImageMagick to generate the image. It has been working fine for years and then suddenly stopped working this morning. When I clicked on the link, instead of the designer I got a "500 server error". I contacted the Host provider and they were able to get the designer back online but the image preview did not work. Here is our communication from oldest to newest: ================================================= The website has a form that should generate an image, but it fails to do so, everything else works except for that particular component. The customer wanted to revert to a backup, but it did not work. Opened the ticket to take a deeper look. ================================================= After investigating the issue, we were not able to find the root cause of the Image preview issue. At first, there was an issue with the suPHP module as it was not installed on the shared host. I had to edit a line of code in the `.htaccess` file so the 500 error you called for went away. Adding a `#` to every line of the block so it was disabled: ``` # #suPHP_ConfigPath /home/boatlett/public_html/boatlettering/ # # #order allow,deny #deny from all # ``` Before that, I also installed the module to prevent any code modifications. This created issues on the server overall, so I had to revert to the previous setting. The logs are not giving us any explicit cause of the issue. So the best option will be to contact a developer so they have a better solution to the issue with the form, as it looks like it should run with PHP 5.6, according to this line: ``` AddType application/x-httpd-ea-php56 .php .php5 .phtml ``` ================================================= Unfortunately there are no errors being displayed, so we would have nothing to work off of in reviewing the 'BoatLetteringPreviewForm.php' script. No errors are shown when checking the F12 developer console, and no errors are being logged in the site's home directory. In such a case, you would need to contact the script's developer to determine why the script is not functioning properly. If the script requires some specific PHP version or extension, we could set the site to use it, though we would not be able to determine the script's requirements simply by looking at it. ================================================= At this point I suggested they reinstall the ImageMagick module as I recalled this issue happened a few times in the past and was fixed rather quickly by doing that. Here is their reply: ================================================= I checked the module and tried to reinstall, but I do not think it will take any effect. I did found old similar tickets for the same problem and noticed we also suggested a developer to look into the same issue further. (But reinstalling fixed the issue so no need to contact a developer) You can try to change the PHP version and see how it goes, but a developer would be indeed more suited to check the issues here. ================================================= It seems to me they don't want to reinstall ImageMagick because they don't think it will do any good. Should I push them on the matter? If nothing more than to eliminate it as a cause? I was hoping someone could take a look at the page: https://www.boatlettering.net/boatlettering/BoatLetteringPreviewForm.php and give me an idea of what's going on and why the image generation portion would suddenly stop working without making any changes to it? Sincerely, Quote Link to comment https://forums.phpfreaks.com/topic/330275-need-help-with-php-and-imagemagick-problem/ Share on other sites More sharing options...
kicken Posted 13 minutes ago Share Posted 13 minutes ago We can't help unless you share the source code of the script. All I could say at this point is the script outputs a 0 byte image. Quote Link to comment https://forums.phpfreaks.com/topic/330275-need-help-with-php-and-imagemagick-problem/#findComment-1658706 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.