Results 1 to 2 of 2
  1. #1
    Join Date
    Jan 2006
    Posts
    117
    Plugin Contributions
    0

    Default Update causing http 500 internal server error in admin

    I just did a big upgrade - basically going from 1.3.8 to 1.3.9h in effect. The storefront APPEARS to be working fine (haven't really tested heavily yet because of the other issue:) My admin section won't let me in.

    I know 1.3.9h has the built-in debugger and what I've found is that the error (at this point) seems to be related to double-calling of functions. The error message is:
    [07-Jan-2011 04:03:05] PHP Fatal error: Cannot redeclare zen_get_countries() (previously declared in /<<adminpath>>/includes/functions/general.php:785) in /<<basepath>>/includes/functions/functions_lookups.php on line 60
    So in other words, a function zen_get_countries() is being called in both the admin general.php and in the storefront/non-admin functions_lookups.php.

    Aside from these being separate areas of the store, the unedited 1.3.9h files both declare the function, and I don't think this is new to 1.3.9h. The 1.3.8a default files also both declare this function.

    For interest, I commented out the one of the files and got a similar error with the next duplicated function:
    [07-Jan-2011 04:18:08] PHP Fatal error: Cannot redeclare zen_get_country_name() (previously declared in /<<adminpath>>/includes/functions/general.php:336) in /<<basepath>>/includes/functions/functions_lookups.php on line 69
    Can anyone advise me why zencart might be complaining now that I've done the update? Have I screwed something up? Please help me asap! my store is down until I figure this out!
    Last edited by TheHYPO; 7 Jan 2011 at 10:20 AM.

  2. #2
    Join Date
    Jan 2006
    Posts
    117
    Plugin Contributions
    0

    Default Re: Update causing http 500 internal server error in admin

    PARTIAL DIAGNOSIS:

    Having reviewed threads on similar 500 errors on this forum, I troubleshot and revealed the causal file: auto-loaders

    For the Sales-Report-Exporter Mod, I had needed to include a new auto-loader to include the said functions_lookups.php file for one of its functions. Deleting this auto-loader solved the problem.

    The question then becomes, for me, why has this auto-loader worked until this upgrade? Were we allowed to redeclare functions until 1.3.9(h or otherwise) and only now will zencart complain about it?

    I guess I'll need to basically figure out which functions_lookups.php functions we being called by the exporter mod and create a new extra_functions file specifically for it.

    Thanks if anyone can shed some light for me.

 

 

Similar Threads

  1. v150 HTTP 500 Internal Server Error accessing admin pages
    By drcubi in forum General Questions
    Replies: 7
    Last Post: 25 Jun 2012, 06:09 AM
  2. HTTP 500 Internal Server Error
    By goalsurfer in forum General Questions
    Replies: 7
    Last Post: 12 Aug 2011, 07:29 PM
  3. Replies: 13
    Last Post: 4 Jun 2011, 02:31 PM
  4. Http 500 internal server error
    By largesse1 in forum Templates, Stylesheets, Page Layout
    Replies: 45
    Last Post: 28 Mar 2011, 03:32 AM
  5. HTTP 500 internal server error
    By YvonneK in forum Basic Configuration
    Replies: 1
    Last Post: 31 Aug 2009, 01:52 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR