Member
Member
nbruley   2026-10-30, 14:38
#1

I am unclear what changed to cause the issue, but one of my zenphoto sites stopped displaying graphics. I thought I would upgrade to see if it would fix it, and got the error that there was no PHP GD. However, that extension is still enabled, and I didn't change that. I have another site on the same server with the same PHP version that works just fine. What can I check to try to figure out what is missing? I did make some settings adjustments at the php version level for the latest PHP vulnerability issues, but this should have impacted both sites if it was that.

Administrator
Administrator
acrylian   2026-10-30, 14:57
#2

GD is a so called bundled extension that normally is included in a standard PHP setup but not required. Technically it could get lost on a PHP update (which is host domain unless you do that yourself). Your error normally appears if it isn't there for some reason.

Please check the following:

  • Overview > Button "PHP info": Scroll down and look if GD is really listed here. If not contact your host.
  • If GD is there check Opions > Image > Select graphics library. If you have GD it should be listed here and normally be selected. In case the option got lost for whatever reason re-select it. There might also be a Imagick radio button if your server has this, too.
Member
Member
nbruley   2026-10-31, 02:39
#3

I'm on a VPS using WHM. Neither GD nor Imagick are enabled in PHP info. Check box is there but error says Imagick extension is not available. However, in EasyApache4 pecl-imagick is enabled for the php version I am using on the server as well as gd extension. Command line confirms gd is there. As mentioned, another site I have uses the same php install and works just fine, so maybe it is some issue with my install? This isn't php version specific because the same issue was present after upgrading. Pretty strange.
Also, I'm assuming this gd error issue would cause zenphoto to retain the setup prompts, since I can't get them to go away.
I'm almost tempted to do a fresh install instead of an upgrade but that's a lot of work also...

Administrator
Administrator
acrylian   2026-10-31, 11:56
#4

If neither GD nor Imagick are listed on phpinfo they are not (properly) there. Therefore ZP cannot detect any.

I can only guess that same PHP version on your server does not mean same PHP installation thus they differ. Check the php.ini if any extension perhaps is commented out (not loaded) for some reason. Sorry, otherwise I can't help any further as I don't setup my own servers.

Member
Member
nbruley   2026-10-31, 16:05
#5

Thanks for the help. I finally figured out that there are multiple versions of PHP on my server. I was using ALT-PHP which apparently doesn't have GD whereas when I switch to EA-PHP it has GD. This is resolved.

Administrator
Administrator
acrylian   2026-10-31, 17:48
#6

Great!

Member
Member
asvat.tsakani78   2026-11-23, 15:55
#7

Hi all,

I only use Zenphoto for my drone photos, so I am not very technical. The part about several PHP versions on one server caught my eye, because my host has a similar selector in the panel.

Is it safe to switch it once the gallery is already set up, or do the thumbnails have to be regenerated aftrewards?

Administrator
Administrator
acrylian   2026-11-23, 16:15
#8

No, the cached images are persistent until you delete them yourself and not related to the PHP version. Zenphoto will request to re-run the setup process to update its internal install fingerprint (nothing is changed or re-installed doing so).

Member
Member
asvat.tsakani78   2026-11-24, 12:32
#9

Hello again,

Thank you, acrylian, that takes a weight off my mind. So my existing thumbnails stay as they are and I only run the setup agian afterwards.

One more thing I wonder about: my drone shots are quite big, around 8 MB each. Is it better to shrink them before uploading, or should I let Zenphoto do the resizing? I do not want to overload the server of my host.

Administrator
Administrator
acrylian   2026-11-24, 13:53
#10

One more thing I wonder about: my drone shots are quite big, around 8 MB each. Is it better to shrink them before uploading, or should I let Zenphoto do the resizing? I do not want to overload the server of my host.

Depends on your host's server power if he can handle such large images. Remember the resolution is the more important than the file size.
https://www.zenphoto.org/news/problems-with-albums-and-images/

The larger your site is and the more you upload at the time the more load the server will have processing them. Also Zenphoto does not change the full images uploaded itself.

If you don't need "fine data" on your site I would recommend to upload already smaler ones, e.g. 2000x2000px maximum should mostly be sufficient.

Member
Member
asvat.tsakani78   2026-11-26, 10:47
#11

Hi acrylian,

Thanks, that is very clear. I will export the drone shots at 2000 px before uploading and keep the originals on a seperate drive.

Is there an image size in the options that I should match, or does it not matter much since the thumbnails get generated anyway?

Administrator
Administrator
acrylian   2026-11-26, 11:17
#12

Is there an image size in the options that I should match, or does it not matter much since the thumbnails get generated anyway?

The sizes generated depend on the theme used. On some themes you set the sizes on the theme options (it should have defaults set), others may have sizes coded into the layout.

Member
Member
asvat.tsakani78   2026-11-28, 16:49
#13

Hi acrylian,

Thanks, I did not know the sizes depend on the theme, so I will check its options. The PHP switch went fine and the thumbnials stayed as they were. The folder I am sorting now is from a drone flight over the ground where my father and I go to Musina United home games.

Is there a place in the theme options that shows which sizes it generates, or is that only in the layout files?

This post was last modified: 2026-11-28, 17:50 by acrylian.
Administrator
Administrator
acrylian   2026-11-28, 17:50
#14

Is there a place in the theme options that shows which sizes it generates, or is that only in the layout files?

If the theme registers its sizes with the cacheManager plugin that will list the sizes. If the theme uses defaut sizes via the option the options list the sized image size, the thumb size (currently) is relatively defined. But you can always review the /cache folder to see what is generated.

Please refrain from posting unrelated links. I have removed it.

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.