On php 8.3 , zencart 1.58a
Hi there,
Had a really strange, but slightly worrying issue. Was just doing a business order for restock, having to search items to check stock etc, clicking on others also. Then all of a sudden got a blank page. But admin page was okay, I was logged in there (not sure if related via IP address perhaps?).
I went to logs, and there was repeated logs of this, not seen before:-
PHP Code:
PHP Fatal error: Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, null given in /includes/classes/navigation_history.php:47
PHP Code:
Stack trace:
#0 /includes/autoload_func.php(62): navigationHistory->add_current_page()
#1 /includes/application_top.php(237): require('/home/****/...')
#2 /index.php(25): require('/home/****/...')
#3 {main}
thrown in /includes/classes/navigation_history.php on line 47
I guess its related to some sort of cache? Though I tried in a different browser, it was fine for the live site. But reloading on session in existing browser kept showing blank. I remedied this by changing to php 7.4 temporarily. I put back to php 8.3 and okay now. Though I have not spent the same amount of time clicking and searching items. I don't have any disckcache or anything, unless its recommended to turn off some sort of cache on server? Not that I recall putting one on there, not seen similar with php 7.4. Thanks in advance for any guidance. I also checked to see if any new version for this file, but in 2.1 I see its the same version as 1.58a.
Bookmarks