Jump to content

Recommended Posts

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,

 

 

 

It is the scripts in the subdirectory named boatlettering.  There are 2 I see being called:  

The image src runs boatNamePreviewImage-new.php

load_image2.php gets called when changes to the parameters are made.

 

Obviously things on the server changed and this is probably because your code uses an ancient and long end of life version:  php5.6.  On top of that, it relies on the imagemagick library, so any issues with the version of imagemagik that supported that old version of php will also cause it to no longer function.  

I don't see this as being a quick fix, and there is very little people here could do for you, even with the source code, as your existing code is antiquated, and needs to be updated to run under supported versions of php and the imagemagick library, as well as running on a supported operating system, which it most likely did not previously, or now that it has been updated, will no longer support the old code.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.