Jump to content

Getting errors with guess checkout, please help


Recommended Posts

Hi folks, I noticed that I wasn't getting any sells lately and when I turned on error reporting, I get these two errors when trying to do a purchase with guess checkout on my site.

 

Here are the 2 errors:

Warning: parse_url(/login?multi-shipping=0&display_guest_checkout=1&back=http://www.miraxsupplements.com/en/order?step=1&multi-shipping=0) [function.parse-url]: Unable to parse URL in /home1/amaxmed1/public_html/classes/Dispatcher.php on line 746
Warning: Cannot modify header information - headers already sent by (output started at /home1/amaxmed1/public_html/classes/Dispatcher.php:746) in /home1/amaxmed1/public_html/classes/controller/FrontController.php on line 790

Also, the file permission is set to 644 for Dispatcher.php and FrontController.php

 

Please help me solve this problem.

 

Thanks

Daniel

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

I found on another post that changing line 746 in classes/Dispatcher.php

 

From:

if (!preg_match('/\.(gif|jpe?g|png|css|js|ico)$/i', parse_url($this->request_uri, PHP_URL_PATH)))

to:

if (!preg_match('/\.(gif|jpe?g|png|css|js|ico)$/i', parse_url( Context::getContext()->language->iso_code . $this->request_uri, PHP_URL_PATH)))

fixed my problem...

  • Like 2
Link to comment
Share on other sites

  • 4 months later...

hi,

with an install no modifed i have the same error :

Warning: parse_url(/authentification?multi-shipping=0&display_guest_checkout=0&back=http://www.produquad.fr/fr/commande?step=1&multi-shipping=0) [function.parse-url]: Unable to parse URL in /home/mysite/www/classes/Dispatcher.php on line 746

Warning: Cannot modify header information - headers already sent by (output started at /home/produqua/www/classes/Dispatcher.php:746) in /home/mysite/www/classes/controller/FrontController.php on line 793

 

have you solve this problem ?

 

many thankx

regards

Link to comment
Share on other sites

  • 2 weeks later...

Minor note... it's a good idea to copy classes/Dispatcher.php to override/classes/Dispatcher.php, then make changes to the override version. This way, your changes won't get overwritten by updates, and you always have a copy of the original.

 

 

Always make a copy of the file before you do the edit just in case it doesn't fixe the problem...

 

Link to comment
Share on other sites

×
×
  • Create New...