forum.coppermine-gallery.net

Support => cpg1.5.x Support => cpg1.5 miscellaneous => Topic started by: Cylon-Knight on April 20, 2014, 05:15:03 am

Title: editpics.php blank when 17+ images in album
Post by: Cylon-Knight on April 20, 2014, 05:15:03 am
Hello,

I'm the admin for http://www.byyourcommand.net/cylongallery/ and have run into a puzzler. My gallery is a stable install for a long time (several years) and just recently editpics.php goes blank when there are 17+ images in album. 1 to 16 images it works... 17+ the page goes blank (view source = nothing).

I've reviewed Coppermine documentation, FAQs, and searched this awesome forum many times but can't find any leads to troubleshoot this farther myself.

More info:

As this only happens in the non-public admin editing mode of the site I've made three screen shots (attached) to help illustrate. Luckily visitors to the site don't run into the error... but I can't edit certain files as of now. YIKES!

Thank you for your time and any suggestions to try and help resolve this. AND thanks for a great system - LOVE Coppermine!
Title: Re: editpics.php blank when 17+ images in album
Post by: gmc on April 20, 2014, 06:44:36 am
In your config, turn on debug (at least for admin user), and try the failing page again.
You should get an error message as to what is actually failing.
http://documentation.coppermine-gallery.net/en/errors.htm#errors_unhandled (http://documentation.coppermine-gallery.net/en/errors.htm#errors_unhandled)
Post results.
Title: Re: editpics.php blank when 17+ images in album
Post by: Cylon-Knight on April 20, 2014, 07:26:37 am
Thank you for the tip gmc! I have never gone as deep as debugging before.

My results:
Quote
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

:( Strange how the server can cope with 1-16 images, but 17+ it gives up only recently, used to work fine.
I see from the "Webserver response codes" documentation (Error 500) I need to contact the host for the info in the server's error log. Coppermine itself is functioning.

Again, thank you gmc. I'll post more results after contacting the Web Host so I can resolve my thread for future Coppermine users who are unlucky enough to hit this wall too.
Title: Re: editpics.php blank when 17+ images in album
Post by: phill104 on April 20, 2014, 01:26:50 pm
You will probably find your php limits have changed. Max execution time, memory limit and a few other settings could cause that. Maybe your host updated php, probably at the same time they upgraded open ssl and when they upgraded didn't reset some limits.
Title: Re: editpics.php blank when 17+ images in album
Post by: Cylon-Knight on April 21, 2014, 04:36:04 am
Phill, your suggestion was right on the money.

Here is my "lovely" error log entry direct from the host:
Quote
20140420T221255: www.byyourcommand.net/cylongallery/editpics.php
PHP Fatal error:  Allowed memory size of 16777216 bytes exhausted (tried to allocate 4786507 bytes) in /hermes/waloraweb011/b1993/pow.cylondale/htdocs/cylongallery/include/plugin_api.inc.php on line 666
(^ The error was on line "666" - YIKES!? - lol) :o

The host has asked for admin access and how to repeat the error... If they want to bother, I guess, okay. Just seems they need to allow more memory. As I noted the edit function used to work fine. I think they probably did tinker with things and lowered the setting (or left a default setting) as you noted, Phill.

Thanks for the tip. I'll keep you posted on the next round of info from the host. One step closer to resolved.
Title: Re: editpics.php blank when 17+ images in album
Post by: Cylon-Knight on April 26, 2014, 05:40:40 am
Good news... Resolved!
It was in fact a change the web host had made to my php.ini file - memory limit - without my knowledge.
The limit is now increased and editpics.php runs as it should (and did before this drama started). I have no trouble selecting edit on albums with 17+ images (tested up to 145 images).

The php.ini now reads:
Quote
;;;;;;;;;;;;;;;;;;;
; Resource Limits ;
;;;;;;;;;;;;;;;;;;;

max_execution_time = 120     ; Maximum execution time of each script, in seconds
max_input_time = 60   ; Maximum amount of time each script may spend parsing request data
memory_limit = 128M      ; Maximum amount of memory a script may consume (8MB)

@gmc and Phill - thank you again. Your tips helped me learn some great new troubleshooting knowledge and resolve my issue. Also, many thanks to the full Coppermine development team too for a wonderful, rock solid gallery!