Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

newly added category problem

 
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)
 
Thread Tools Search this Thread
  #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
  #2  
Old 02-13-2015, 09:50 AM
 
tony1100 tony1100 is offline
 

Advanced Member
  
Join Date: Oct 2012
Posts: 31
 

Default Re: newly added category problem

I figured out. there is some empty records in the table categories. after delete everything is back to normal
Reply With Quote
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 04:11 PM.

   

 
X-Cart forums © 2001-2020