Automatic exception report
Date and time
05-05-2025 23:30:50
Page where error occured
http://supernatureproducts.codeguru.nl/_products.php?category=skin
Referer
http://supernatureproducts.codeguru.nl/category/skin
Details user
ec2-18-188-131-162.us-east-2.compute.amazonaws.com/18.188.131.162 - Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Error
[2]
Attempt to read property "CAT_ID" on null
An error occurred on line 6003 in the file /var/www/html/supernatureproducts.codeguru.nl/lib/functionality/shop/Shop.php
Source code
5988 5989 5990 5991 5992 5993 5994 5995 5996 5997 5998 5999 6000 6001 6002 6003 6004 6005 6006 6007 6008 6009 6010 6011 6012 6013 6014 6015 6016 6017 6018
|
if((!(empty($sCategory))) || (!(empty($iCategoryID)))) {
//Category match if(!(empty($sCategory))) { $sCategorySelector = ' ((CTT_URL = ' . $this->oMdb2->quote($sCategory) . ' OR CAT_RewriteURL = ' . $this->oMdb2->quote($sCategory) . ') AND CAT_Active = 1)'; } else if(!(empty($iCategoryID))) { $sCategorySelector = ' CAT_ID = ' . $this->oMdb2->quote($iCategoryID); } //Get category $oCategory = $this->oMdb2->extended->getRow('SELECT * FROM TblCategories INNER JOIN TblCategoryTranslations ON CTT_CategoryID = CAT_ID WHERE ' . $sCategorySelector . ' AND CTT_LanguageID = ' . $this->oGlobalTranslation->TRG_LanguageID);
$sProductsSelector = ' AND LPC_CategoryID = ' . $this->oMdb2->quote($oCategory->CAT_ID); } else if(!(empty($sSearch))) { $sProductsSelector = ' AND (PRO_Name LIKE "%' . $sSearch . '%" OR PRT_Name LIKE "%' . $sSearch . '%" OR PRO_ArticleCode LIKE "%' . $sSearch . '%" OR CTT_Name LIKE "%' . $sSearch . '%")'; } else if(!(empty($sAlfa))) { $sProductsSelector = ' AND (IFNULL(PRT_Name, PRO_Name) LIKE "' . $sAlfa . '%")'; } else if(!(empty($bPackages))) { $sProductsSelector = ' AND PRO_ProductTypeID = 1'; } //Bestseller mode if($bBestseller == true) {
|
$_GET array
Array
(
[category] => skin
)
$_SESSION array
Array
(
[LAN] => 1
)