Zen Cart Logo
Forums / Upgrading to 2.x.x / Fresh install-- and 500 error on front page

Fresh install-- and 500 error on front page

Views: 1,704

Results 1 to 19 of 19
11 Oct 2024, 06:07
#1
noppie avatar

noppie

Zen Follower

Join Date:
Mar 2004
Posts:
210
Plugin Contributions:
0

Fresh install-- and 500 error on front page

https://thekandibazaar.com/shop

I get the 500 error when I type that in.. and this is the last debug error log I have.

11-Oct-2024 05:45:45 UTC] PHP Fatal error: Declaration of Detection\Cache\Cache::get(string $key, mixed $default = null): ?Detection\Cache\CacheItem must be compatible with PsrExt\SimpleCache\CacheInterface::get($key, $default = <default>) in /home/kandi/public_html/shop/includes/classes/vendors/Mobile-Detect/src/Cache/Cache.php on line 30

thank you for help in advance.

11 Oct 2024, 06:11
#2
shop_suey avatar

shop_suey

Zen Follower

Join Date:
Feb 2014
Location:
Germany
Posts:
375
Plugin Contributions:
0

Re: Fresh install-- and 500 error on front page

which PHP version are you using?

18 Oct 2024, 02:38
#5
noppie avatar

noppie

Zen Follower

Join Date:
Mar 2004
Posts:
210
Plugin Contributions:
0

Re: Fresh install-- and 500 error on front page

HI I added this to a cpanel.. no google errors

I can get into the admin.. but this is what I get trying to get in front end.

kandibazaar.com

I get this This page isn’t workingkandibazaar.com is currently unable to handle this request.
HTTP ERROR 500

I am running PHP 8.02

and I get this error in the error logs.

[17-Oct-2024 08:07:51 UTC] PHP Fatal error: Declaration of Detection\Cache\Cache::get(string $key, mixed $default = null): ?Detection\Cache\CacheItem must be compatible with PsrExt\SimpleCache\CacheInterface::get($key, $default = <default>) in /home/kalibug/public_html/includes/classes/vendors/Mobile-Detect/src/Cache/Cache.php on line 30

please help me.

Naomi

18 Oct 2024, 07:44
#6
shop_suey avatar

shop_suey

Zen Follower

Join Date:
Feb 2014
Location:
Germany
Posts:
375
Plugin Contributions:
0

Re: Fresh install-- and 500 error on front page

Which PHP version exactly?
8.0.2 or 8.2.0?
Both should be fine following the system requirements. But just for clarity.
There is no "8.02"

Do you use a modified template?

19 Oct 2024, 03:12
#7
noppie avatar

noppie

Zen Follower

Join Date:
Mar 2004
Posts:
210
Plugin Contributions:
0

Re: Fresh install-- and 500 error on front page

Shop Suey:

Which PHP version exactly?
8.0.2 or 8.2.0?
Both should be fine following the system requirements. But just for clarity.
There is no "8.02"

Do you use a modified template?

PHP version is 8.2

no modified template.. this is a total new install.
I used zencart for years and years and my old hosting servers crashed and they lost all my data all of it. so I switched hosing and decided to try woocommerce.. but darn they want 100.00 for this and 100. for that .. s I decided to go back to by beloved Zencart. thank you for the help

19 Oct 2024, 05:45
#8
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,760
Plugin Contributions:
9

Re: Fresh install-- and 500 error on front page

Be sure to check the includes/configure.php for proper https settings and directory settings.

What is your host saying about the 500 error?

19 Oct 2024, 06:14
#9
shop_suey avatar

shop_suey

Zen Follower

Join Date:
Feb 2014
Location:
Germany
Posts:
375
Plugin Contributions:
0

Re: Fresh install-- and 500 error on front page

Take a look at the FAQ

https://docs.zen-cart.com/user/troubleshooting/blank_page/

With these information you could talk more efficient to your host

19 Oct 2024, 06:27
#10
shop_suey avatar

shop_suey

Zen Follower

Join Date:
Feb 2014
Location:
Germany
Posts:
375
Plugin Contributions:
0

Re: Fresh install-- and 500 error on front page

I assumed you are using the latest official Zen Cart release.
Can you verify which version number you are using please.

19 Oct 2024, 06:33
#11
noppie avatar

noppie

Zen Follower

Join Date:
Mar 2004
Posts:
210
Plugin Contributions:
0

Re: Fresh install-- and 500 error on front page

dbltoe:

Be sure to check the includes/configure.php for proper https settings and directory settings.

What is your host saying about the 500 error?

I can get in the admin side no problem. so I don't think it is a server problem.. here's the error code from the debug file.
and below that is the code

this is the function on (((((([17-Oct-2024 08:07:51 UTC] PHP Fatal error: Declaration of Detection\Cache\Cache::get(string $key, mixed $default = null): ?Detection\Cache\CacheItem must be compatible with PsrExt\SimpleCache\CacheInterface::get($key, $default = <default>) in /home/kalibug/public_html/includes/classes/vendors/Mobile-Detect/src/Cache/Cache.php on line 30)))))))

/**
* @throws CacheException
*/
public function get(string $key, mixed $default = null): CacheItem|null
{
if (empty($key)) {
throw new CacheException('Invalid cache key');
}

    return $this->cache_db[$key] ?? null;
}

/**
19 Oct 2024, 07:12
#12
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,760
Plugin Contributions:
9

Re: Fresh install-- and 500 error on front page

Remember that there are two configure.php files. includes/configure.php and your_admin/includes/configure.php.

You need to check the former.

19 Oct 2024, 08:40
#13
royaldave avatar

royaldave

Zen Follower

Join Date:
Aug 2013
Location:
Perth, WA, AU
Posts:
284
Plugin Contributions:
1

Re: Fresh install-- and 500 error on front page

noppie:

I can get in the admin side no problem. so I don't think it is a server problem.. here's the error code from the debug file.
and below that is the code

this is the function on (((((([17-Oct-2024 08:07:51 UTC] PHP Fatal error: Declaration of Detection\Cache\Cache::get(string $key, mixed $default = null): ?Detection\Cache\CacheItem must be compatible with PsrExt\SimpleCache\CacheInterface::get($key, $default = <default>) in /home/kalibug/public_html/includes/classes/vendors/Mobile-Detect/src/Cache/Cache.php on line 30)))))))

/**
* @throws CacheException
*/
public function get(string $key, mixed $default = null): CacheItem|null
{
if (empty($key)) {
throw new CacheException('Invalid cache key');
}

    return $this->cache_db[$key] ?? null;
}

/**

Do you have php-psr installed?

https://github.com/symfony/symfony/issues/49984

removing it my solve the issue.

19 Oct 2024, 20:12
#14
noppie avatar

noppie

Zen Follower

Join Date:
Mar 2004
Posts:
210
Plugin Contributions:
0

Re: Fresh install-- and 500 error on front page

I first I installed using through the cpanel, I got the error. So then I downloaded the latest version from zencart, and got the same error both times.

19 Oct 2024, 20:12
#15
noppie avatar

noppie

Zen Follower

Join Date:
Mar 2004
Posts:
210
Plugin Contributions:
0

Re: Fresh install-- and 500 error on front page

I will check with my hosting when I get home, thank you

20 Oct 2024, 04:48
#16
noppie avatar

noppie

Zen Follower

Join Date:
Mar 2004
Posts:
210
Plugin Contributions:
0

Re: Fresh install-- and 500 error on front page

I can get into my admin area,, and below is the PHP information
and I deleted and reloaded again
and still get the same error..

I have a support ticket into my hosting about the php-psr is installed... I have not heard back yet.. I just got to get this done,,,,,

I thought this would be easy

20 Oct 2024, 06:54
#17
shop_suey avatar

shop_suey

Zen Follower

Join Date:
Feb 2014
Location:
Germany
Posts:
375
Plugin Contributions:
0

Re: Fresh install-- and 500 error on front page

Use one of the officially supported templates responsive_classic or bootstrap or ask the developers of your templates for support.

20 Oct 2024, 16:54
#18
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,760
Plugin Contributions:
9

Re: Fresh install-- and 500 error on front page

And, you might want to rename your admin folder now that the world has seen it.:(

20 Oct 2024, 18:34
#19
noppie avatar

noppie

Zen Follower

Join Date:
Mar 2004
Posts:
210
Plugin Contributions:
0

Re: Fresh install-- and 500 error on front page

dbltoe:

And, you might want to rename your admin folder now that the world has seen it.:(

that was the wrong picture.. that was from an old install.. from a time before.

i can not seem to upload the photo I wanted.

Server Host: mars.bestsolutons.com (95.217.145.143)Database: kalibug_kandiStore Home: /home/kalibug/public_html/shop/Server OS: Linux 4.18.0-553.8.1.lve.el8.x86_64Server Date: 10/20/2024 18:30:03 Server Up Time: 20:30:03 up 25 days, 22:07, 0 users, load average: 20.73, 21.52, 21.44HTTP Server: LiteSpeedPHP Version: 8.2.21 (Zend: 4.2.21)PHP File Uploads: OnUpload Max Size: 1024MPHP Memory Limit: 1024MPOST Max Size: 1024MDatabase Engine: MySQL 10.6.19-MariaDBDatabase Host: localhost (127.0.0.1)Database Date: 10/20/2024 18:30:03Database Data Size: 288 kBDatabase Index Size: 485 kBMySQL Slow Query Log Status: OffMySQL Slow Query Log File: mars-slow.logMySQL Mode: (None set)

that is the info I got on the admin side of the zencart.. the PHP info
and I did a search for php-psr, and nothing came up.