lucifer_1 Posted January 23, 2015 Share Posted January 23, 2015 (edited) 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 January 23, 2015 by lucifer_1 (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted January 23, 2015 Share Posted January 23, 2015 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 More sharing options...
lucifer_1 Posted January 24, 2015 Author Share Posted January 24, 2015 I don't know how i can search on that way Is there a way to fix that missed variables? It is in the offical Paypal module. Link to comment Share on other sites More sharing options...
lucifer_1 Posted January 24, 2015 Author Share Posted January 24, 2015 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 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