Zen Cart Logo
Forums / Bug Reports / Merge pull request #7134 from lat9/prod-desc-missing Geting the following debug files

Merge pull request #7134 from lat9/prod-desc-missing Geting the following debug files

Views: 878

Results 1 to 5 of 5
30 Jun 2025, 04:09
#1
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,176
Plugin Contributions:
0

Merge pull request #7134 from lat9/prod-desc-missing Geting the following debug files

After upgrading from gitHub for Merge pull request #7134 from lat9/prod-desc-missing Geting the following debug files

[29-Jun-2025 22:48:23 America/Chicago] Request URI:  /index.php?main_page=product_music_info&cPath=17&products_id=178,  IP address: 157.100.87.87, Language id not set
#0 /includes/classes/Product.php(251): zen_debug_error_handler()
#1 /includes/classes/Product.php(33): Product->loadProductDetails()
#2 /includes/functions/functions_products.php(419): Product->__construct()
#3 /includes/init_includes/init_sanitize.php(236): zen_products_id_valid()
#4 /includes/autoload_func.php(40): require_once('/home/haremark/...')
#5 /includes/application_top.php(329): require('/home/haremark/...')
#6 /index.php(27): require('/home/haremark/...')
--> PHP Warning: Undefined array key "languages_code" in /includes/classes/Product.php on line 251.

[29-Jun-2025 22:48:23 America/Chicago] Request URI:  /index.php?main_page=product_music_info&cPath=17&products_id=178,  IP address: 157.100.87.87, Language id not set
#0 /includes/classes/Product.php(252): zen_debug_error_handler()
#1 /includes/classes/Product.php(33): Product->loadProductDetails()
#2 /includes/functions/functions_products.php(419): Product->__construct()
#3 /includes/init_includes/init_sanitize.php(236): zen_products_id_valid()
#4 /includes/autoload_func.php(40): require_once('/home/haremark/...')
#5 /includes/application_top.php(329): require('/home/haremark/...')
#6 /index.php(27): require('/home/haremark/...')
--> PHP Warning: Undefined array key "languages_code" in /includes/classes/Product.php on line 252.

[29-Jun-2025 22:48:23 America/Chicago] Request URI:  /index.php?main_page=product_music_info&cPath=17&products_id=178,  IP address: 157.100.87.87, Language id not set
#0 /includes/classes/Product.php(253): zen_debug_error_handler()
#1 /includes/classes/Product.php(33): Product->loadProductDetails()
#2 /includes/functions/functions_products.php(419): Product->__construct()
#3 /includes/init_includes/init_sanitize.php(236): zen_products_id_valid()
#4 /includes/autoload_func.php(40): require_once('/home/haremark/...')
#5 /includes/application_top.php(329): require('/home/haremark/...')
#6 /index.php(27): require('/home/haremark/...')
--> PHP Warning: Undefined array key "languages_id" in /includes/classes/Product.php on line 253.
30 Jun 2025, 10:45
#2
swguy avatar

swguy

Administrator

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

Re: Merge pull request #7134 from lat9/prod-desc-missing Geting the following debug files

Can't reproduce.

30 Jun 2025, 14:55
#3
lat9 avatar

lat9

Administrator

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

Re: Merge pull request #7134 from lat9/prod-desc-missing Geting the following debug files

To reproduce:

  • Navigate to any page with a products_id or pid variable in the address.
  • Let the session timeout (wait approx. 20 minute for the default)
  • Refresh the page; the log will be made

The issue is that init_sanitize.php is loaded prior to init_languages.php, so the language component of the session hasn't yet been loaded. I'll have a solution real-soon-now.

30 Jun 2025, 15:42
#4
lat9 avatar

lat9

Administrator

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

Re: Merge pull request #7134 from lat9/prod-desc-missing Geting the following debug files

lat9:

To reproduce:

  • Navigate to any page with a products_id or pid variable in the address.
  • Let the session timeout (wait approx. 20 minute for the default)
  • Refresh the page; the log will be made

The issue is that init_sanitize.php is loaded prior to init_languages.php, so the language component of the session hasn't yet been loaded. I'll have a solution real-soon-now.
See this GitHub PR for my suggestion to correct the issue: https://github.com/zencart/zencart/pull/7148

30 Jun 2025, 16:05
#5
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,176
Plugin Contributions:
0

Re: Merge pull request #7134 from lat9/prod-desc-missing Geting the following debug files

Thanks @swguy & @lat9 for looking at this post.
I could not duplicate it either, I would go to the productID page which was verified in the address bar, but no error log. I would not wait 20 min.
Keen eye @lat9, what gave you the clue on the 20min on a page and then refresh?

Since upgrading to 2.1.0, I noticed about 20 create accounts a day, which derived from the Philippines with an IP checker.
So I installed Access Blocker which have helped tremendously. I should have noticed the Who's Online and seen the session time, which would have helped me duplicate this issue I reported. I will upgrade this fix from GitHub and report if any issues in the future.