Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Prestashop no errors / blank page

I'm developing a module in PHP for Prestashop and I'm having a tough time trying to debug code. Whenever something falls over it doesn't display errors, just a blank page - either on the front end where the module is hooked, or on the back end module page.

I'm trying to write in another class, or another function but it doesn't like it at all.

It's on a local dev server, PHP errors are on etc.

Can somebody tell me any other way to debug stuff instead of commenting out code? Or some way of getting error codes?

Thanks for your help in advance.

like image 626
Harry M Avatar asked Sep 24 '10 19:09

Harry M


2 Answers

Go to your backoffice page.

Advanced Params -> Performance -> Clean Cache (Eraser Icon)

like image 199
Pablo S G Pacheco Avatar answered Oct 07 '22 01:10

Pablo S G Pacheco


Try opening config/config.inc.php and then change:

@ini_set('display_errors', 'off')

to

@ini_set('display_errors', 'on').


From PS 1.5+, you need to open config/defines.inc.php and change:

define('_PS_MODE_DEV_', false);

to

define('_PS_MODE_DEV_', true);

like image 44
David Hancock Avatar answered Oct 07 '22 01:10

David Hancock