forum.coppermine-gallery.net

Support => cpg1.5.x Support => cpg1.5 miscellaneous => Topic started by: stex on July 16, 2015, 09:03:00 am

Title: Fatal Error: Unable to load dynamic library
Post by: stex on July 16, 2015, 09:03:00 am
So my site says "fatal error:" and my log file says:

[15-Jul-2015 03:03:36 UTC] PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20090626/imagick.so' - libMagickCore.so.2: failed to map segment from shared object: Cannot allocate memory in Unknown on line 0
[15-Jul-2015 03:03:43 UTC] PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20090626/imagick.so' - libMagickCore.so.2: failed to map segment from shared object: Cannot allocate memory in Unknown on line 0

Tried to contact my host support, but they said it's something Coppermine related... which I doubt. Can anyone help?
Title: Re: Fatal Error: Unable to load dynamic library
Post by: phill104 on July 16, 2015, 11:18:57 am
It is sort of Coppermine related but only that you can select whether to use ImageMagik or GD2 as the image resizing and manipulation method. GD2 is a core part of PHP while ImageMagik is a third party add on. Often hosts install IM but do not install it properly or worse, install it and fail to tell their customers the paths etc. GD2 and ImageMagik do basically the same thing but IM does have a few features that GD lacks. Whether you use these features or not really depends on what plugins you are using in your gallery. In most cased GD2 will be fine and you can simply go into the Coppermine configuration and set GD2 as the resize method.
Title: Re: Fatal Error: Unable to load dynamic library
Post by: stex on July 16, 2015, 04:20:36 pm
So switching to GD2 would solve the issue. But question is, how do I do that? Cause I used phpmyadmin to check the config table and there is no such option...
Title: Re: Fatal Error: Unable to load dynamic library
Post by: gmc on July 16, 2015, 08:13:02 pm
In Coppermine Config menu, expand 'File Settings', and set the 'Method for resizing images' to GD2...
The database field is thumb_method.
Title: Re: Fatal Error: Unable to load dynamic library
Post by: stex on July 17, 2015, 01:29:07 am
Thing is, it's already set to GD2...  :o
Title: Re: Fatal Error: Unable to load dynamic library
Post by: stex on July 17, 2015, 03:37:30 pm
Nevermind. I enabled debug info and it turns out a table crashed and had to be repaired. Done that by using PhpMyAdmin and it's all back up now. Thank you guys.
Title: Re: Fatal Error: Unable to load dynamic library
Post by: Αndré on July 20, 2015, 11:47:53 am
Marking thread as solved.