View Single Post
  #1  
Old 02-12-2015, 10:31 PM
 
tony1100 tony1100 is offline
 

Advanced Member
  
Join Date: Oct 2012
Posts: 31
 

Default newly added category problem

HI their,

we don't know if this is a program bug or something else. it looks happen after we upgrade new xc5.1.10 version.

we have almost 26 first level category. right now after we create a new category it will show on home page , but if we click on it. it give us error page.

for example if we create a new category at admin page, every thing is fine at back end. but if you go to front-end, click category you just created it will give error message:

ERROR: "Includes\ErrorHandler::FATAL_ERROR" (code 2)
Call to a member function getCategoryId() on a non-object

These 2 category was create after upgrade to xc 5.1.10

before upgrade a new version all category are fine.
I go to check log file it says:

[13-Feb-2015 01:02:40 UTC] PHP Fatal error: Call to a member function getCategoryId() on a non-object in /var/www/vhosts/www/httpdocs/var/run/classes/XLite/Model/CategoryAbstract.php on line 241
[13-Feb-2015 01:02:40] Error (code: 1): Call to a member function getCategoryId() on a non-object
Server API: cgi-fcgi;
Request method: GET;
URI: /massage_oils;
Backtrace:
#0 Includes\ErrorHandler::logInfo(Call to a member function getCategoryId() on a non-object, 1) called at [/var/www/vhosts/www/httpdocs/Includes/ErrorHandler.php:327]
#1 Includes\ErrorHandler::handleError(Array ([type] => 1,[message] => Call to a member function getCategoryId() on a non-object,[file] => /var/www/vhosts/www/httpdocs/var/run/classes/XLite/Model/CategoryAbstract.php,[line] => 241)) called at [/var/www/vhosts/www/httpdocs/Includes/ErrorHandler.php:312]
#2 Includes\ErrorHandler::shutdown()


any one have this problem befor?
__________________
Tony
Reply With Quote