Jump to content

fatal error


Recommended Posts

hi, i installed prestashop after copyng it by ftp. The installation finished and was ok. But when i try to see my site in browser and i see a white page and this message: "fatal error". Instead if i write www.maydomain.it/admin i see only a white page. Can you help me?

Link to comment
Share on other sites

  • 2 weeks later...
That's not enough information to help. Try uncommenting the debug_backtrace line in the displayError function of classes/Tools.php. That should give you a stack trace with more information about the error.


what should i do with that stack trace?

for example i have 7 objects in that array. where can i find the one that initiates the FATAL ERROR message?

and what information is useful in the following lines?

[0] => Array
(
[file] => /var/home/public_html/classes/Product.php
[line] => 1432
[function] => displayError
[class] => Tools
[type] => ::
[args] => Array
(
)

)
Link to comment
Share on other sites

That tells you that it is line 1432 of classes/Product.php that is throwing an error, which is the following:

if (!Validate::isBool($usetax) OR !Validate::isUnsignedId($id_product))
   die(Tools::displayError());



So it seems either $usetax is not either 0 or 1, or the $id_product is not valid. I think the latter is more likely. Make sure there are no $id_product with value 0 in your database. You can use the rest of the stack trace to figure out where it is.

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...