solved Can't Upload to Gallery

Ken Rich
Ken Rich
@ken-rich
11 years ago
926 posts
When I attempt to upload a picture to the gallery I get this error:

A system level error was encountered trying to validate the form values: error: Internal Server Error


--

Ken Rich
indiegospel.net

updated by @ken-rich: 01/08/15 05:57:14AM
Ken Rich
Ken Rich
@ken-rich
11 years ago
926 posts
I found out by trial and error if I disable the module "Gallery Image EXIF" the gallery works fine.

So I guess the question is now - what's up with the "Gallery Image EXIF" module?


--

Ken Rich
indiegospel.net
michael
@michael
11 years ago
7,793 posts
A system level error is some issue that the server is having. The first place to check is the server's error logs to see if it can tell us what the error was.

Sometimes is related to permissions, like the server is trying to write somewhere but doesn't have permission.

See if you can locate the error log and paste what it says.
Ken Rich
Ken Rich
@ken-rich
11 years ago
926 posts
OK - These errors have many repetitions in the error log.

===========================================

[12-Nov-2014 09:47:03 America/St_Johns] PHP Notice: ob_end_clean(): failed to delete buffer. No buffer to delete in /home/indiegospel/public_html/modules/jrCore-release-5.2.13/router.php on line 305

============================================

[13-Nov-2014 00:03:46 America/St_Johns] PHP Warning: S3::inputFile(): Unable to open input file: /home/indiegospel/public_html/data/media/1/26/jrGallery_153_gallery_image.jpg in /home/indiegospel/public_html/modules/jrBackup-release-1.1.0/contrib/S3/S3.php on line 326

======================================

[13-Nov-2014 13:13:14 America/St_Johns] PHP Strict Standards: Only variables should be passed by reference in /home/indiegospel/public_html/modules/jrPrivateNote-release-1.1.5/include.php on line 122
====================================

[19-Nov-2014 00:23:10 America/St_Johns] PHP Fatal error: Call to undefined function exif_read_data() in /home/indiegospel/public_html/modules/jrImageExif-release-1.0.0/include.php on line 96


--

Ken Rich
indiegospel.net
michael
@michael
11 years ago
7,793 posts
Ken_Rich:...PHP Fatal error: Call to undefined function exif_read_data().....
That last one is the issue, the others are just notices or warnings.

Its saying that you do not have EXIF module installed in your PHP.

Are you able to alter your php.ini file to turn it on for your server?
michael
@michael
11 years ago
7,793 posts
There is a note on the docs too:
http://php.net/manual/en/book.exif.php

Austin:If you have exif.so or php_exif.dll enabled under php.ini dynamic extensions, but you still have problem running any funtion, it is possible that you may need to change order of extensions in php.ini.

In many PHP installation packages the extensions are listed alphabetically. However, exif is dependent on mbstrings to be loaded first. Yet, with alphabetic ordering the exif is listed before mbstrings and it causes the error. Load mbstrings extensions before exif.

Thus, do put exif as the very last extension to load and you should be fine.

updated by @michael: 11/18/14 10:47:58PM
Ken Rich
Ken Rich
@ken-rich
11 years ago
926 posts
Hi Michael,

I know where php.ini is in my cpanel, and my friend runs the server. So armed with that knowledge, we should be able to sort it out.

Thanks for your time...


--

Ken Rich
indiegospel.net

updated by @ken-rich: 11/19/14 04:19:58AM
brian
@brian
11 years ago
10,149 posts
I just uploaded a new release of the Image EXIF module that now checks for the EXIF functions to be enabled in PHP in the "Server Check" so you'll see if the module is supported.

Hope this helps!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
Ken Rich
Ken Rich
@ken-rich
11 years ago
926 posts
Cool... you guys are on the ball - I'll give you that - lol


--

Ken Rich
indiegospel.net
Ken Rich
Ken Rich
@ken-rich
11 years ago
926 posts
Hi Brian,

I installed the update, and re-enabled the module.

On system check the warning is given - fail EXIF Image functions are not installed in PHP

So your update appears to be working perfectly. Galleries continue to work even with the unsupported module enabled. The help file is linked to the warning, all good.


--

Ken Rich
indiegospel.net
brian
@brian
11 years ago
10,149 posts
Right on - sounds good.

Thanks!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net