Jump to content

Can turn off the notice!


Recommended Posts

When i am going to the payment page (an order step) people see an notice:

Notice: Undefined variable: order in /home/userpo/domains/#######DOMAIN#####.nl/public_html/modules/paypal/paypal.php on line 398

Notice: Trying to get property of non-object in /home/userpo/domains//#######DOMAIN#####.nl/public_html/modules/paypal/paypal.php on line 398

But the strange thing is.. this is my config/defines.inc.php:

 

 

/* Debug only */
if (!defined('_PS_MODE_DEV_'))
define('_PS_MODE_DEV_', false);
/* Compatibility warning */
define('_PS_DISPLAY_COMPATIBILITY_WARNING_', false);
if (_PS_MODE_DEV_)
{
    @ini_set('display_errors', 'on');
    @error_reporting(E_ALL | E_STRICT);
    define('_PS_DEBUG_SQL_', true);
}
else
{
    @ini_set('display_errors', 'off');
    define('_PS_DEBUG_SQL_', false);
}
 

 

Deleting cache and force compilation doesn't work!

 

No errors or warnings on another place!

Edited by lucifer_1 (see edit history)
Link to comment
Share on other sites

these messages arent errors, these messages are just notifications about missed variables.

anyway, if you still see these messages even if you turn off error reporting - it just means that @ini_set('display_errors', 'on'); is hardcoded somewhere in your php files :( 

 

are you able to search strings within files ? 

http://www.cyberciti.biz/faq/howto-search-find-file-for-text-string/

Link to comment
Share on other sites

This is paypal.php line 398:

            'goBackUrl' => 'http://'.htmlspecialchars($_SERVER['HTTP_HOST'], ENT_COMPAT, 'UTF-8').__PS_BASE_URI__.'order-confirmation.php?key='.$order->secure_key.'&id_cart='.intval($params['cart']->id).'&id_module='.intval($this->id),
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...