admin-edit.php & 500 Errrors

Is anyone else having a problem with /zp-core/admin-edit.php throwing 500 Errors?

I contacted my host and they offered the following:

What is causing the issue is "Premature end of script headers: admin-edit.php" the only thing I can recommend is trying to check the zenphoto support forums

Any help is most appreciated.

Comments

  • acrylian Administrator, Developer
    If we should be able to help we need some more info:
    http://www.zenphoto.org/news/general-contributor-guidelines#reporting-bugs
  • No problem...

    Here is the page in question: http://www.many-roads.com/galleries/zp-core/admin-edit.php

    I am using the current release of ZenPhoto

    The error occurs in both Chrome and Firefox (current releases). It occurs in my current theme and all default ZenPhoto themes.

    I am running Manjaro Linux 0.8.8 version 3.12 of the Linux kernel and v 2.2 of Cinnamon.

    The following is from the site error log:

    [11-Jan-2014 14:19:57] PHP Warning: PHP Startup: Unable to load dynamic library '/opt/php53/lib/php/extensions/no-debug-non-zts-20090626/pdo_mysql.so' - libmysqlclient.so.16: cannot open shared object file: No such file or directory in Unknown on line 0
    [11-Jan-2014 13:19:58] PHP Parse error: syntax error, unexpected '<' in /home1/rabideau/public_html/galleries/themes/ManyRoads_Zenpage/footer.php on line 5
    [11-Jan-2014 14:20:11] PHP Warning: PHP Startup: PDO: Unable to initialize module
    Module compiled with module API=20090626, debug=0, thread-safety=0
    PHP compiled with module API=20060613, debug=0, thread-safety=0
    These options need to match
    in Unknown on line 0
    [11-Jan-2014 14:20:11] PHP Warning: PHP Startup: SQLite: Unable to initialize module
    Module compiled with module API=20090626, debug=0, thread-safety=0
    PHP compiled with module API=20060613, debug=0, thread-safety=0
    These options need to match
    in Unknown on line 0
    [11-Jan-2014 14:20:11] PHP Warning: PHP Startup: Unable to load dynamic library '/opt/php53/lib/php/extensions/no-debug-non-zts-20090626/pdo_mysql.so' - libmysqlclient.so.16: cannot open shared object file: No such file or directory in Unknown on line 0
    [11-Jan-2014 13:20:11] PHP Parse error: syntax error, unexpected '<' in /home1/rabideau/public_html/galleries/themes/ManyRoads_Zenpage/footer.php on line 5
    [11-Jan-2014 14:20:29] PHP Warning: PHP Startup: PDO: Unable to initialize module
    Module compiled with module API=20090626, debug=0, thread-safety=0
    PHP compiled with module API=20060613, debug=0, thread-safety=0
    These options need to match
    in Unknown on line 0
    [11-Jan-2014 14:20:29] PHP Warning: PHP Startup: SQLite: Unable to initialize module
    Module compiled with module API=20090626, debug=0, thread-safety=0
    PHP compiled with module API=20060613, debug=0, thread-safety=0
    These options need to match
    in Unknown on line 0
    [11-Jan-2014 14:20:29] PHP Warning: PHP Startup: Unable to load dynamic library '/opt/php53/lib/php/extensions/no-debug-non-zts-20090626/pdo_mysql.so' - libmysqlclient.so.16: cannot open shared object file: No such file or directory in Unknown on line 0
    [11-Jan-2014 13:20:31] PHP Parse error: syntax error, unexpected '<' in /home1/rabideau/public_html/galleries/themes/ManyRoads_Zenpage/footer.php on line 5
  • acrylian Administrator, Developer
    Of course the link is not useful as we cannot visit it. But the error tells that you are trying to use SQLlite. Thecurrent Zenphoto does not support SQLlite. We did try some versions ago but it was too basic for what we need. Look at your config file within zp-data and what db software is defined there. That should be "MySQL", "MySQLi" or "PDO_MySQL". Or simply re-run setup to set it.
  • The above errors are all from the startup of the PHP module and really have nothing to do with Zenphoto directly. Your site could not run if there was not a proper database connection, so that must be correct. You should probably point these errors out to your hosting service as they are caused by some kind of mis-configuration of PHP.

    Server 500 errors are usually caused by some kind of security
    issue. It could be file/folder permissions that the site does not like or it could be that you are trying to access the back end via SSL and your site does not support that.

    Maybe there is some other more useful error in the server error logs. But it may be difficult to find until your hosting service fixes the problems causing the above errors.

    BTW, there is one error that seems to be a problem with your theme customization:
    [11-Jan-2014 13:20:31] PHP Parse error: syntax error, unexpected '<' in /home1/rabideau/public_html/galleries/themes/ManyRoads_Zenpage/footer.php on line 5
    This would have nothing to do with accessing the back end, though.
  • I am actually using MySql not sqllite. Here's the section from the zenphoto.cfg.php:

    ////////////////////////////////////////////////////////////////////////////////
    // Database Information
    ////////////////////////////////////////////////////////////////////////////////
    $conf['db_software'] = "MySQLi";
    /** for historical reasons these fields reference mysql even though the database **
    ** might be a different software **/
    $conf['mysql_user']

    As for folder permissions... which folder(s) are likely the problem? All of my top level folders are 755 except for the data folder which is 700.

    After my php.ini fixes here are my remaining errors:

    [11-Jan-2014 19:13:59] PHP Warning: PHP Startup: Unable to load dynamic library '/opt/php53/lib/php/extensions/no-debug-non-zts-20090626/pdo_mysql.so' - libmysqlclient.so.16: cannot open shared object file: No such file or directory in Unknown on line 0
    [11-Jan-2014 19:14:02] PHP Warning: PHP Startup: Unable to load dynamic library '/opt/php53/lib/php/extensions/no-debug-non-zts-20090626/pdo_mysql.so' - libmysqlclient.so.16: cannot open shared object file: No such file or directory in Unknown on line 0
    [11-Jan-2014 19:14:05] PHP Warning: PHP Startup: Unable to load dynamic library '/opt/php53/lib/php/extensions/no-debug-non-zts-20090626/pdo_mysql.so' - libmysqlclient.so.16: cannot open shared object file: No such file or directory in Unknown on line 0
    [11-Jan-2014 19:14:12] PHP Warning: PHP Startup: Unable to load dynamic library '/opt/php53/lib/php/extensions/no-debug-non-zts-20090626/pdo_mysql.so' - libmysqlclient.so.16: cannot open shared object file: No such file or directory in Unknown on line 0
  • After browsing around inside the admin area I noticed the following under logs/debug tab:

    WARNING: Cannot modify header information - headers already sent by (output started at /home1/rabideau/public_html/galleries/zp-core/zp-extensions/static_html_cache.php:210) in /home1/rabideau/public_html/galleries/zp-core/404.php on line 24

    header called from include (404.php [24])

    from include (index.php [127])

    from index.php [21]

    {31441:Sat, 11 Jan 2014 21:46:15 GMT}

    WARNING: Cannot modify header information - headers already sent by (output started at /home1/rabideau/public_html/galleries/zp-core/zp-extensions/static_html_cache.php:210) in /home1/rabideau/public_html/galleries/zp-core/404.php on line 25

    header called from include (404.php [25])

    from include (index.php [127])

    from index.php [21]

    {31441:Sat, 11 Jan 2014 21:46:15 GMT}

    WARNING: Cannot modify header information - headers already sent by (output started at /home1/rabideau/public_html/galleries/zp-core/zp-extensions/static_html_cache.php:210) in /home1/rabideau/public_html/galleries/zp-core/404.php on line 26

    header called from include (404.php [26])

    from include (index.php [127])

    from index.php [21]
  • Just checked and changed all folders to 755 and files to 644.

    By editting php.ini to contain the following:

    ;;extension=pdo.so
    ;;extension=sqlite.so
    ;;extension=pdo_sqlite.so
    ;;extension=pdo_mysql.so
    ;;extension=uploadprogress.so

    My error log is now empty but the 500 error on admin-edit.php continues. Arrghh....
  • "Cannot modify header information" warnings are almost always downstream side-effects of some other error. So keep looking for the real error.

    You say you are running the "latest" version of Zenphoto, but be sure that you are. You have disabled the version reporting in your theme, so we cannot check for you.

    So, download and install the support build from GitHub to be sure that we know what you are running.
  • So here's what I am running:

    Zenphoto version 1.4.5.7 [59c22b2fba] (Official build)
    Current locale setting: C
    Server path: /home1/rabideau/public_html/galleries
    WEB path: /galleries
    Current gallery theme: Copy of zenpage
    PHP version: 5.3.27
    Graphics support: PHP GD library bundled (2.1.0 compatible)
    supporting: gif, jpg, jpeg, png, bmp
    PHP memory limit: 128M (Note: Your server might allocate less!)
    MySQLi version: 5.5.33
    Database name: rabideau_znph1
    Table prefix: zenphoto_
    Spam filter: No spam filter configured
    CAPTCHA generator: zpCaptcha
    Site status: The site is opened

    The 500 Error went away (with upgrade to 5.3 of php) and now I have obe remaining problem, changes to mt Gallery pages (text via editting) do not take.
  • Fixed! It was amissing English language setting. Thanks for the help & pointers everyone. The site is running clean and error free.

    Stop by and visit if you like history & genealogy & maps.

    http://many-roads.com/galleries (is the zenphoto area).
  • So indeed you did lie when you said you were on the latest version! This is a big reason why we ask for the version you are running and really think it best if you do not hide this information in your theme itself.

    Install the latest as I requested!
  • sbillard... I think you ought to obey some of this forums decorum before calling someone a liar. I know you probably do not need the definition of the word but according to webster it is... "to make an untrue statement with intent to deceive" Why, when asking for help would I, or anyone else, ever attempt to decieve those providing help? What possible good would that do? Make a mistake, not know the correct release are all possible... but lie.. really???

    I must say your behavior is most discourteous and unprofessional. I was simply inaccurate and mistaken. My problems are educable, I hope yours are as well.
  • upgrade completed.
  • You did indeed lie.
    I am using the current release of ZenPhoto
    So here's what I am running:
    Zenphoto version 1.4.5.7 [59c22b2fba] (Official build)
    1.4.5.7 is not the latest version. SO that is an untrue statement.

    Perhaps you should read the forum rules and follow some of the general suggestions. We ask these things to aid us in helping. When someone disregards the request we waste our time, for instance with people running older versions.

    You may think this insubstantial, but it is MY time you are wasting. If you want help, try not to waste the time of those who might help you. We think it not unreasonable that people asking for help be running on the latest version since we do not support older ones. Besides maybe the problem you have has already been fixed. Why waste our time then with when you choose not to explore the obvious.

    If you think my behavior unprofessional and discourteous that is your prerogative. But note that you did ask for my help. I did not ask you to run an out of date version.
Sign In or Register to comment.