forum.coppermine-gallery.net

Support => cpg1.6.x Support => cpg1.6 miscellaneous => Topic started by: Hanna. on November 30, 2017, 02:51:45 am

Title: exif_read_data fatal error
Post by: Hanna. on November 30, 2017, 02:51:45 am
I get this fatal error on exif_read_data when I try to upload images in Coppermine http://kristincavallaridaily.com/gallery,

I tried to find help, forums say "exif_read_data is a standard PHP function available form PHP 4 onwards. Please check with your host why this function is not available. "

Is there anything I can do myself to solve this?
Title: Re: exif_read_data fatal error
Post by: Hanna. on November 30, 2017, 05:33:25 am
Update, my host says "addtional extensions can be only used by business customers with business SLA.
we dont offer extension installation for private customers and if its not related to our cloud service"

So then, what are my options to fix this on my own? I can't live without being able to upload images through my coppermine you guys! Help please!
Title: Re: exif_read_data fatal error
Post by: phill104 on November 30, 2017, 07:23:11 pm
Seems the link you provide above is not working, or your server has crashed. Can you check and re-post

In addition, what version of PHP is your server using?
Title: Re: Re: exif_read_data fatal error
Post by: Hanna. on December 01, 2017, 12:00:00 am
Seems the link you provide above is not working, or your server has crashed. Can you check and re-post

In addition, what version of PHP is your server using?

Oh apologies, https://kristincavallari.net/gallery/

And I recently updated it to 7 I believe? I have coppermine 1.6 now
Title: Re: exif_read_data fatal error
Post by: ron4mac on December 01, 2017, 01:27:05 am
Not a very friendly host ... I would consider looking for another.

Are you able to edit files?

In the CPG file include/picmgmt.inc.php, on line 51, change
Code: [Select]
if (isset($CONFIG['autorient']) && $CONFIG['autorient'] == 1) {to
Code: [Select]
if (false && isset($CONFIG['autorient']) && $CONFIG['autorient'] == 1) {See if that works for you. You will not get your uploaded files automatically oriented for you.
Title: Re: exif_read_data fatal error
Post by: ron4mac on December 01, 2017, 01:12:43 pm
It would seem that your ISP is Netrouting Sweden. And I would assume that you are subscribed to their lowest cost VPS package. If that is the case, then the EXIF php extension should be installable by you (or a helper). It would seem that it is just that your ISP is not going to do it for you.
Title: Re: Re: exif_read_data fatal error
Post by: Hanna. on December 01, 2017, 08:09:26 pm
Not a very friendly host ... I would consider looking for another.

Are you able to edit files?

In the CPG file include/picmgmt.inc.php, on line 51, change
Code: [Select]
if (isset($CONFIG['autorient']) && $CONFIG['autorient'] == 1) {to
Code: [Select]
if (false && isset($CONFIG['autorient']) && $CONFIG['autorient'] == 1) {See if that works for you. You will not get your uploaded files automatically oriented for you.

Wow! This one totally did the work! Check this out, YAY! https://kristincavallari.net/gallery/thumbnails.php?album=377

THANK YOU! Let me know if I need to note anything because of this change/etc.
Title: Re: exif_read_data fatal error
Post by: ron4mac on December 01, 2017, 11:16:56 pm
Great! If you replace include/picmgmt.inc.php with this one, you should get the automatic image orientation function back. The change will become a part of new releases.