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:
Quote:
[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:
Quote:
[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!
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.