If this is your first visit, check our documentation. To post, register or login.
Forums / Upgrading Your Zen Cart / Upgrading to 2.x.x / RE: PHP Warning: Undefined array key 0

RE: PHP Warning: Undefined array key 0

Started by dsc7050 on 16 Apr 2024, 6:43 PM · Views: 883

Results 1 to 4 of 4
16 Apr 2024, 6:43 PM
#1
dsc7050 avatar

dsc7050

New Zenner

Join Date:
Sep 2018
Location:
UUSA
Posts:
44
Plugin Contributions:
0

Post #1 by dsc7050

We just fresh install the ZC 2.0, no plug-in install, we see this PHP warning.

MySQL 8.0.32
PHP Version 8.3

Here is the Log:
[15-Apr-2024 14:39:10 America/New_York] Request URI: /myadmin/, IP address: xx.xxx.xxx, Language id 1
#0 /homepages/35/xxxx/htdocs/Zentcart/myadmin/functions/general.php(347): zen_debug_error_handler()
#1 /homepages/35/xxxx/htdocs/Zentcart/myadmin/classes/VersionServer.php(116): zen_get_system_information()
#2 /homepages/35/xxxx/htdocs/Zentcart/myadmin/includes/classes/VersionServer.php(29): VersionServer->buildCurrentInfo()
#3 /homepages/35/xxxx/htdocs/Zentcart/myadmin/includes/classes/VersionServer.php(34): VersionServer->getZcVersioninfo()
#4 /homepages/35/xxxx/htdocs/Zentcart/myadmin/includes/header.php(109): VersionServer->getProjectVersion()
#5 /homepages/35/xxxx/htdocs/Zentcart/myadmin/index_dashboard.php(32): require('/homepages/35/d...')
#6 /homepages/35/xxxx/htdocs/Zentcart/myadmin/home.php(25): require('/homepages/35/d...')
#7 /homepages/35/xxxx/htdocs/Zentcart/myadmin/index.php(11): require('/homepages/35/d...')
--> PHP Warning: Undefined array key 0 in /homepages/35/xxxx/htdocs/Zentcart/myadmin/includes/functions/general.php on line 347.

16 Apr 2024, 8:06 PM
#2
swguy avatar

swguy

Administrator

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

Post #2 by swguy

Change Admin > Configuration > My Store > Server Uptime to false (or ask your sysadmin / hoster to install the uptime command) . I'll put in a fix so this doesn't log.

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.

16 Apr 2024, 9:28 PM
#4
dsc7050 avatar

dsc7050

New Zenner

Join Date:
Sep 2018
Location:
UUSA
Posts:
44
Plugin Contributions:
0

Post #4 by dsc7050

Thanks..It's working.