Admin And Checkout Throw 500 Error
I'm running Zencart pretty vanilla at this point.
I had someone report that there were problems checking out. So I went into admin and was looking around. I think I made some minimal change and now I can't use admin anymore without 500 errors throwing.
My logs don't feel helpful, they reference a module I have and I removed the .php hoping that might fix things.
My host's cpanel shows a high load and some low space on some partitions but not 100% on either.
How do I troubleshoot? I can generate the 500 error anytime I try to check out and when I try to just go to the admin page but it's not really sending a log each time to look through.
Re: Admin And Checkout Throw 500 Error
What answer does your host have for you?
Re: Admin And Checkout Throw 500 Error
Quote:
Originally Posted by
dbltoe
What answer does your host have for you?
I haven't heard back from them yet
Re: Admin And Checkout Throw 500 Error
If you're running Zen Cart 1.5.7 and your host updated PHP to a more recent version, it could certainly cause some 500 errors.
Check your PHP version.
https://docs.zen-cart.com/user/first_steps/version/
Re: Admin And Checkout Throw 500 Error
Quote:
Originally Posted by
swguy
I just went into MultiPHP Manager and forced 7.4 on my main domain and that didn't seem to help.
Re: Admin And Checkout Throw 500 Error
And also can't get into admin to see what versions of thing it's showing in there
Re: Admin And Checkout Throw 500 Error
I do notice each page that doesn't load says it's not secured like it couldn't load the cert but I don't think that is the problem but a symptom
Re: Admin And Checkout Throw 500 Error
In your cPanel's File Manager, take a look at your .htaccess.
It will be different numbers, but when cPanel forces a version of PHP, it should show in the .htaccess file.
This is one using 8.0. Yours may not have the leading "ea-"
Code:
# php -- BEGIN cPanel-generated handler, do not edit# Set the “ea-php80” package as the default “PHP” programming language.
<IfModule mime_module>
AddHandler application/x-httpd-ea-php80 .php .php8 .phtml
</IfModule>
# php -- END cPanel-generated handler, do not edit
If you still have not heard from your host, I would leave. cPanel makes it easy.
Re: Admin And Checkout Throw 500 Error
Yep still haven't hear from my host, they are usually snappy.
Well I installed a fresh 2.0.1 in another path and copied my database and upgraded it from 1.5.7 to 2.0.1 via the installer. I have forced PHP 8.1 on the domain to make sure the PHP works (that is the highest version I see available on my site). I can get into my admin area no problem, but tried to go to checkout and have similar issues.
I did a third install with Sofaculus and didn't move any database information and made a $1 test item. I could check out fully but every page I submitted gave me a "this is insecure" popup. I can see my cert on each page installed and valid so really unsure of why it would be throwing errors like that. Maybe this is part of my problem?
1 Attachment(s)
Re: Admin And Checkout Throw 500 Error
Here is my test upgrade, migration page that throws an error
https://tolivealie.com/store2/index....ckout_shipping
And here is the Softaculus generated one with just a test item, it will let you go to this page without an error
https://tolivealie.com/store3/index....ckout_shipping
but if you were to create an account it would then throw this
Attachment 20785
I'm at a loss here now. I thought I would be able to rebuild.
Let me check the .htaccess when I move my PHP back to 7.4