If this is your first visit, check our documentation. To post, register or login.
Forums / Upgrading Your Zen Cart / Upgrading to 1.5.x / upgrading to 1.5.8 results in 500 error.

upgrading to 1.5.8 results in 500 error.

Started by delia on 10 Feb 2023, 2:29 PM · Views: 3,500

Results 1 to 18 of 18
10 Feb 2023, 2:29 PM
#1
delia avatar

delia

Totally Zenned

Join Date:
May 2006
Location:
Gardiner, Maine
Posts:
2,383
Plugin Contributions:
7

upgrading to 1.5.8 results in 500 error.

upgrading from 1.5.6. have not run database script yet in case this server can't handle 1.5.8. php is supposed to be 7.3. I don't trust this server as the folks "managing it" are not the pros I prefer.

Any ideas?

The full-time Zen Cart Guru. WizTech4ZC.com
New template for 2.0 viewable here: 2.0 Demo

10 Feb 2023, 3:13 PM
#2
delia avatar

delia

Totally Zenned

Join Date:
May 2006
Location:
Gardiner, Maine
Posts:
2,383
Plugin Contributions:
7

Re: upgrading to 1.5.8 results in 500 error.

index.html works

The full-time Zen Cart Guru. WizTech4ZC.com
New template for 2.0 viewable here: 2.0 Demo

10 Feb 2023, 3:25 PM
#3
delia avatar

delia

Totally Zenned

Join Date:
May 2006
Location:
Gardiner, Maine
Posts:
2,383
Plugin Contributions:
7

Re: upgrading to 1.5.8 results in 500 error.

so 1.5.8 will not run on this server. I was able to restore the 1.5.6 version. Then installed 1.5.8 in a subfolder and get the 500 error. I'm not seeing what is missing on the server (my eyes are crossing looking at the details!). What has changed between 1.5.6 (and maybe even 1.5.7) that could cause this from server settings?

The full-time Zen Cart Guru. WizTech4ZC.com
New template for 2.0 viewable here: 2.0 Demo

10 Feb 2023, 3:30 PM
#4
delia avatar

delia

Totally Zenned

Join Date:
May 2006
Location:
Gardiner, Maine
Posts:
2,383
Plugin Contributions:
7

Re: upgrading to 1.5.8 results in 500 error.

This must be it: Database Engine: MySQL 5.7.41 where requirement is: Zen Cart v1.5.8 requires MySQL 5.7.8+ or MariaDB 10.2.7+

The full-time Zen Cart Guru. WizTech4ZC.com
New template for 2.0 viewable here: 2.0 Demo

10 Feb 2023, 4:03 PM
#5
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: upgrading to 1.5.8 results in 500 error.

What debug logs are generated in attempt to install?

At what point in installation is the 500 error occurring, e.g. attempting to access site/zc_install or just the site itself?

Attempted to use the in process revision that includes addressing already identified issues with the original release found at: https://github.com/ZenCart/ZenCart/tree/v158?

Looked at the identified issues with Zen Cart 1.5.8 found at: https://www.zen-cart.com/showthread.php?229042-Known-bugs-%28and-fixes%29-for-v1-5-8-series ?

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

10 Feb 2023, 4:48 PM
#6
delia avatar

delia

Totally Zenned

Join Date:
May 2006
Location:
Gardiner, Maine
Posts:
2,383
Plugin Contributions:
7

Re: upgrading to 1.5.8 results in 500 error.

no logs due to it seems to be the database level. If there were error logs I couldn't have figured out (!), I would have posted them

The full-time Zen Cart Guru. WizTech4ZC.com
New template for 2.0 viewable here: 2.0 Demo

10 Feb 2023, 7:35 PM
#7
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: upgrading to 1.5.8 results in 500 error.

delia:

This must be it: Database Engine: MySQL 5.7.41 where requirement is: Zen Cart v1.5.8 requires MySQL 5.7.8+ or MariaDB 10.2.7+

delia:

no logs due to it seems to be the database level. If there were error logs I couldn't have figured out (!), I would have posted them

Based on these two postings, I don't see how database level is an issue. From what I understand, your database is: mysql 5.7.41, that is larger than 5.7.8 and therefore exceeds the minimum requirement and is identified as acceptable until the active mysql database is at a version that is not supported by the current code.

As to asking about error logs, there was no description identifying that 1) they didn't exist or 2) that they were sought or considered. That question had now been answered, though would expect the server itself to have error logs identifying why the 500 error occurred or other supporting information.

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

10 Feb 2023, 9:51 PM
#8
delia avatar

delia

Totally Zenned

Join Date:
May 2006
Location:
Gardiner, Maine
Posts:
2,383
Plugin Contributions:
7

Re: upgrading to 1.5.8 results in 500 error.

so server is upgraded to php 8.1 and mysql 8. Problem still exists. While doing the server changes, they did run into a problem with a corrupted linux GRUB loader. So am I just looking at unknown server issues? How in the world can I figure this out? He installed php 8.1 and removed all others so can't revert.

The full-time Zen Cart Guru. WizTech4ZC.com
New template for 2.0 viewable here: 2.0 Demo

10 Feb 2023, 10:20 PM
#9
delia avatar

delia

Totally Zenned

Join Date:
May 2006
Location:
Gardiner, Maine
Posts:
2,383
Plugin Contributions:
7

Re: upgrading to 1.5.8 results in 500 error.

and there are no error logs available in this cpanel account - no in the log folder nor in the root/logs

The full-time Zen Cart Guru. WizTech4ZC.com
New template for 2.0 viewable here: 2.0 Demo

11 Feb 2023, 12:52 PM
#10
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,142
Plugin Contributions:
56

Re: upgrading to 1.5.8 results in 500 error.

Noting that there are a number of files present in a zc156 installation that are no longer used in zc158. While I can't explain why the issue that you're having, it might be due to a duplicate function name or something of that ilk.

It would help to know how far in the installation process you got before the Server 500 (aka PHP error) occurred.

11 Feb 2023, 1:53 PM
#11
delia avatar

delia

Totally Zenned

Join Date:
May 2006
Location:
Gardiner, Maine
Posts:
2,383
Plugin Contributions:
7

Re: upgrading to 1.5.8 results in 500 error.

the new files trigger the 500 error. Never get to start the upgrade process - even in a new folder with just the 1.5.8 files. The client was able to install it in another folder so the mystery continues. At least I can move forward now.

I'm sure he uploaded the files via ftp whereas I used a zip file as I normally do. Not the original zip but one without a few things and not in a folder. Been doing this way for nearly 20 years. Can servers make a hash out of a zip file when extracting? I used the same zip on my test server with no issues. k

The full-time Zen Cart Guru. WizTech4ZC.com
New template for 2.0 viewable here: 2.0 Demo

11 Feb 2023, 3:08 PM
#12
delia avatar

delia

Totally Zenned

Join Date:
May 2006
Location:
Gardiner, Maine
Posts:
2,383
Plugin Contributions:
7

Re: upgrading to 1.5.8 results in 500 error.

reminder - now running php 8.1
ran the database upgrade - this message appeared /zc_install/includes/nginx_conf/ folder is not writeable so changed it to 777 instead of 755 which made the message go away.

Then discovered 71 install logs labeled debug. This one was the last so it looks like it's correcting the database?

[11-Feb-2023 09:02:33 America/New_York] MySQL error 1292 encountered during zc_install:
Incorrect datetime value: '0000-00-00 00:00:00' for column 'gdpr_accept_date' at row 1
ALTER TABLE customers ADD registration_ip varchar(45) NOT NULL default '';
---------------


[11-Feb-2023 09:02:33 America/New_York] MySQL error 1292 encountered during zc_install:
Incorrect datetime value: '0000-00-00 00:00:00' for column 'gdpr_accept_date' at row 1
ALTER TABLE customers ADD last_login_ip varchar(45) NOT NULL default '';

Also getting tons of error/warning logs from admin.

At least I've gotten to the point where I can start correcting small errors in the template.

My point in continuing this is that I'm thinking the issues are related to the server and not to 1.5.8. Anybody agree with that assessment?

The full-time Zen Cart Guru. WizTech4ZC.com
New template for 2.0 viewable here: 2.0 Demo

11 Feb 2023, 4:47 PM
#13
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,760
Plugin Contributions:
56

Re: upgrading to 1.5.8 results in 500 error.

The GDPR date issue can be fixed using this technique:

https://docs.zen-cart.com/user/upgrading/date_standardization/

500 errors please review this list:
https://docs.zen-cart.com/user/troubleshooting/500_internal_server/

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

11 Feb 2023, 5:07 PM
#14
delia avatar

delia

Totally Zenned

Join Date:
May 2006
Location:
Gardiner, Maine
Posts:
2,383
Plugin Contributions:
7

Re: upgrading to 1.5.8 results in 500 error.

Thanks for that 500 link, Scott!

I am seeing admin messages:

[11-Feb-2023 11:16:27 America/New_York] Request URI: /store/xxxxx/index.php?cmd=developers_tool_kit&action=locate_all_files, IP address: 76.179.90.49
#0 [internal function]: zen_debug_error_handler()
#1 /home/xxxxx/public_html/store/xxxxx/includes/init_includes/init_templates.php(49): define()
#2 /home/xxxxx/public_html/store/includes/autoload_func.php(40): require_once('/home/humbleabo...')
#3 /home/xxxxx/public_html/store/xxxxx/includes/application_top.php(42): require('/home/humbleabo...')
#4 /home/xxxxx/public_html/store/xxxxx/developers_tool_kit.php(8): require('/home/humbleabo...')
#5 /home/xxxx/public_html/store/xxxx/index.php(11): require('/home/humbleabo...')
--> PHP Warning: Constant TITLE already defined in /home/humbleabodes/public_html/store/humble/includes/init_includes/init_templates.php on line 49.

I don't see this as fixed in github. My github search abilities in issues is crappy. Do I need to open a new issue?

The full-time Zen Cart Guru. WizTech4ZC.com
New template for 2.0 viewable here: 2.0 Demo

11 Feb 2023, 5:22 PM
#15
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,760
Plugin Contributions:
56

Re: upgrading to 1.5.8 results in 500 error.

How do you repro this? Please give detailed instructions.

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

11 Feb 2023, 5:27 PM
#16
delia avatar

delia

Totally Zenned

Join Date:
May 2006
Location:
Gardiner, Maine
Posts:
2,383
Plugin Contributions:
7

Re: upgrading to 1.5.8 results in 500 error.

any movement in admin shows this:

[11-Feb-2023 12:23:12 America/New_York] Request URI: /store/xxxxx/index.php?cmd=display_logs&fID=a5eeb71c2e42b7bd87fc00cca535c56d634880e7&, IP address: 76.179.90.49
#0 [internal function]: zen_debug_error_handler()
#1 /humble/includes/init_includes/init_templates.php(49): define()
#2 /includes/autoload_func.php(40): require_once('/home/xxxx...')
#3 /humble/includes/application_top.php(42): require('/home/xxxx...')
#4 /zc_plugins/DisplayLogs/v3.0.1/admin/display_logs.php(35): require('/home/xxx...')
#5 /humble/index.php(23): require('/home/xxx...')
--> PHP Warning: Constant TITLE already defined in /xxxx/includes/init_includes/init_templates.php on line 49.

[11-Feb-2023 12:23:12 America/New_York] Request URI: /store/xxxx/index.php?cmd=display_logs&fID=a5eeb71c2e42b7bd87fc00cca535c56d634880e7&, IP address: 76.179.90.49
#0 [internal function]: zen_debug_error_handler()
#1 /humble/includes/init_includes/init_category_path.php(12): define()
#2 /includes/autoload_func.php(40): require_once('/home/xxxxx...')
#3 /humble/includes/application_top.php(42): require('/home/xxxxx...')
#4 /zc_plugins/DisplayLogs/v3.0.1/admin/display_logs.php(35): require('/home/humbleabo...')
#5 /humble/index.php(23): require('/home/xxxx...')
--> PHP Warning: Constant TOPMOST_CATEGORY_PARENT_ID already defined in /xxxxx/includes/init_includes/init_category_path.php on line 12.

For example, if I delete those logs in display errors - it creates 3 more.

The full-time Zen Cart Guru. WizTech4ZC.com
New template for 2.0 viewable here: 2.0 Demo

11 Feb 2023, 6:00 PM
#17
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,142
Plugin Contributions:
56

Re: upgrading to 1.5.8 results in 500 error.

[QUOTE=delia;1393100]any movement in admin shows this:

[11-Feb-2023 12:23:12 America/New_York] Request URI: /store/xxxxx/index.php?cmd=display_logs&fID=a5eeb71c2e42b7bd87fc00cca535c56d634880e7&, IP address: 76.179.90.49
#0 [internal function]: zen_debug_error_handler()
#1 /humble/includes/init_includes/init_templates.php(49): define()
#2 /includes/autoload_func.php(40): require_once('/home/xxxx...')
#3 /humble/includes/application_top.php(42): require('/home/xxxx...')
#4 /zc_plugins/DisplayLogs/v3.0.1/admin/display_logs.php(35): require('/home/xxx...')
#5 /humble/index.php(23): require('/home/xxx...')
--> PHP Warning: Constant TITLE already defined in /xxxx/includes/init_includes/init_templates.php on line 49.

[11-Feb-2023 12:23:12 America/New_York] Request URI: /store/xxxx/index.php?cmd=display_logs&fID=a5eeb71c2e42b7bd87fc00cca535c56d634880e7&, IP address: 76.179.90.49
#0 [internal function]: zen_debug_error_handler()
#1 /humble/includes/init_includes/init_category_path.php(12): define()
#2 /includes/autoload_func.php(40): require_once('/home/xxxxx...')
#3 /humble/includes/application_top.php(42): require('/home/xxxxx...')
#4 /zc_plugins/DisplayLogs/v3.0.1/admin/display_logs.php(35): require('/home/humbleabo...')
#5 /humble/index.php(23): require('/home/xxxx...')
--> PHP Warning: Constant TOPMOST_CATEGORY_PARENT_ID already defined in /xxxxx/includes/init_includes/init_category_path.php on line 12.

@delia, see this Zen Cart issue for the correction: https://github.com/zencart/zencart/issues/4939

Noting that those changes will be present in zc158**a**.

11 Feb 2023, 6:09 PM
#18
delia avatar

delia

Totally Zenned

Join Date:
May 2006
Location:
Gardiner, Maine
Posts:
2,383
Plugin Contributions:
7

Re: upgrading to 1.5.8 results in 500 error.

That was my purpose - I figured that had been tended to already but needed to make sure it was a known issue. Thanks!

The full-time Zen Cart Guru. WizTech4ZC.com
New template for 2.0 viewable here: 2.0 Demo