ktraving Posted March 30, 2015 Share Posted March 30, 2015 I've been getting this error http://snag.gy/hsu97.jpg for some time while testing the default PS 1.6.0.11 Cash on delivery.module. Obviously something's amiss, but I'm not familiar with any way to debug / catch the bug, and browsing the server server weblog is like finding a needle in a haystack. There are a ton of threads about COD and blank screen, but most of them seem to point back to older 1.5 or 1.4 modules. Anyone? Cheers, K 1 Link to comment Share on other sites More sharing options...
ktraving Posted March 31, 2015 Author Share Posted March 31, 2015 Enabling debugging I get the following: Policy restriction in effect. The fifth parameter is disabled on this system in /customers/a/b/8/guldtryk.dk/httpd.www/testshop/tools/swift/Swift/Plugin/MailSend.php on line 160 Warning: Cannot modify header information - headers already sent by (output started at /customers/a/b/8/guldtryk.dk/httpd.www/testshop/modules/cashondelivery/translations/da.php:1) in /customers/a/b/8/guldtryk.dk/httpd.www/testshop/classes/Tools.php on line 134 Which tracks down to the following in mailsend.php if (!ini_get("safe_mode")) $success = mail($to, $subject, $message, $headers, $params); else $success = mail($to, $subject, $message, $headers); and in classes/tools.php header('Location: '.$url); I dont get these errors on regular payments methods (credit cards), only on COD. Hope someone has a few ideas. Cheers, K Link to comment Share on other sites More sharing options...
bellini13 Posted March 31, 2015 Share Posted March 31, 2015 It is saying that the 5th parameter is disabled, which means that your host does not allow its use. You should address that issue with your host. mail($to, $subject, $message, $headers, $params); Note: The 5th parameter is called $params. You can try to remove it from line 160 and see if things work, but I really have no idea what effect it will have. if (!ini_get("safe_mode")) $success = mail($to, $subject, $message, $headers); Link to comment Share on other sites More sharing options...
ktraving Posted March 31, 2015 Author Share Posted March 31, 2015 I have tried removing the $params, and it removes the problem, but like you, I have no clue what it might affect. But this one remains Cannot modify header information - headers already sent by (output started at /customers/a/b/8/guldtryk.dk/httpd.www/testshop/modules/cashondelivery/translations/da.php:1) in /customers/a/b/8/guldtryk.dk/httpd.www/testshop/classes/Tools.php on line 13 Ooooh, I would so much love to just delete the default COD module. CHeers, K Link to comment Share on other sites More sharing options...
ktraving Posted April 1, 2015 Author Share Posted April 1, 2015 A small update. In addition to the above post, I get this error in Back-Office > Payment Warning on line 1585 in file /customers/a/b/8/guldtryk.dk/httpd.www/testshop/classes/controller/AdminController.php [2] Cannot modify header information - headers already sent by (output started at /customers/a/b/8/guldtryk.dk/httpd.www/testshop/modules/cashondelivery/translations/da.php:1) I've reverted to a complete default edition of the COD module (0.7.4) by Prestashop, and the error remains the same. No changes have been made to the AdminController. 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