Jump to content

Prestashop 1.6.1.5 Dont show Compatibility with other cart rules


metalice

Recommended Posts

when looking deeper into the issue i can see this error message: http://prntscr.com/g8ck4x

 

<b>Warning</b>: Cannot modify header information - headers already sent by (output started at /home/metalice/public_html/controllers/admin/AdminCartRulesController.php:122) in <b>/home/metalice/public_html/classes/controller/AdminController.php</b> on line <b>1829</b><br />

 

this message dont appear in debug mode and everything works correctly... but not in debug mode it shows.. 

 

while i didnt made any changes to admincartrule nor admincontroller...

 

help will be appreciated guys!

Link to comment
Share on other sites

  • 3 weeks later...
  • 1 year later...
  • 1 month later...

Hi guys,

you can add this ligne code

exit();

after the line 122 : echo Tools::jsonEncode(array('html' => $html, 'next_link' => $next_link));

as

echo Tools::jsonEncode(array('html' => $html, 'next_link' => $next_link));

exit();

Link to comment
Share on other sites

  • 3 months later...
On 5/10/2019 at 10:45 PM, oNine said:

Hi guys,

you can add this ligne code

exit();

after the line 122 : echo Tools::jsonEncode(array('html' => $html, 'next_link' => $next_link));

as

echo Tools::jsonEncode(array('html' => $html, 'next_link' => $next_link));

exit();

That's the point! 

In Presta 1.6.1.12 with PHP 5.6.40 works perfectly. Thanks a lot for answer.

  • Like 1
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...