Jump to content

White screen and unable to log php/smarty errors


Hasher

Recommended Posts

I have in php.ini:

display_errors = On

in config/defines.inc.php:

define('_PS_MODE_DEV_', true);
 
in smartyadmin.config.inc.php:
$smarty->debugging = true;

 

Some errors are logged into my php_error_log but not the one that is causing the white screen.

 

I am developing my own module and because of white screen I am unable to localise the error.

 

EDIT: I have found the reason of white screen - in AdminDeliverySlipController.php I had

Tools::redirectAdmin($this->context->link->getAdminLink('AdminPdf').'&submitAction=generateDeliverySlipsLabel&id_order='.Tools::getValue('id_order'));
instead of 
Tools::redirectAdmin($this->context->link->getAdminLink('AdminPdf').'&submitAction=generateDeliverySlipsPDFLabel&id_order='.Tools::getValue('id_order'));
 
but I would still like to know how to log such errors?
 
Edited by Hasher (see edit history)
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...