tokobukutaro Posted December 3, 2010 Share Posted December 3, 2010 hi,I just installed ver. 1.3.3.0 after add some modules and try to add some items in categorybut the product in this category not appear.it just say " Fatal Error in this category"Pls help, what is this? and how to fix.thanks. Link to comment Share on other sites More sharing options...
rocky Posted December 4, 2010 Share Posted December 4, 2010 My guess is that you have products with an invalid default category. To be sure, you can edit the displayError function in classes/Tools.php and temporarily uncomment the debug_backtrace() line to get a stack trace instead of a "Fatal error" message. That should help you find the problem. Link to comment Share on other sites More sharing options...
tokobukutaro Posted December 4, 2010 Author Share Posted December 4, 2010 My guess is that you have products with an invalid default category. To be sure, you can edit the displayError function in classes/Tools.php and temporarily uncomment the debug_backtrace() line to get a stack trace instead of a "Fatal error" message. That should help you find the problem. pls advise ho to do this : edit the displayError function in classes/Tools.php and temporarily uncomment the debug_backtrace() line to get a stack trace instead of a "Fatal error" message.thanks Link to comment Share on other sites More sharing options...
rocky Posted December 4, 2010 Share Posted December 4, 2010 Change line 403 of classes/Tools.php (in PrestaShop v1.3.2) from: //if ($string == 'Fatal error') d(debug_backtrace()); to: if ($string == 'Fatal error') d(debug_backtrace()); This will display a stack trace of what led to the error. Link to comment Share on other sites More sharing options...
tokobukutaro Posted December 4, 2010 Author Share Posted December 4, 2010 thankshave found the text, but still can fix sorry for trouble in you, since I'm not exp. in PHP lang.attached copy error text. eror product.txt Link to comment Share on other sites More sharing options...
rocky Posted December 4, 2010 Share Posted December 4, 2010 From the error message, it appears the default country failed to load. Try going to Shipping > Countries, select a default country that is enabled, then click Save. Link to comment Share on other sites More sharing options...
tokobukutaro Posted December 4, 2010 Author Share Posted December 4, 2010 Greatthanks for your assist.Now my problem is solved.in which line you found error is in default county? since I don't found yet. Link to comment Share on other sites More sharing options...
rocky Posted December 4, 2010 Share Posted December 4, 2010 The following code in the stack trace told me the error happened on line 205 of classes/Tax.php: Array ( [0] => Array ( [file] => /home/sahabat/public_html/classes/Tax.php [line] => 205 [function] => displayError [class] => Tools [type] => :: [args] => Array ( ) ) Which led me to the if statement that decides whether to generate the error: if (!Validate::isLoadedObject($defaultCountry)) After seeing that, I knew that the default country was failing to load, so it must be set to a country that doesn't exist. Link to comment Share on other sites More sharing options...
amyunus Posted December 10, 2010 Share Posted December 10, 2010 I have this problem too. Thanks for the solution. great! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now