papagino Posted May 16, 2014 Share Posted May 16, 2014 (edited) 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 May 16, 2014 by papagino (see edit history) Link to comment Share on other sites More sharing options...
El Patron Posted May 16, 2014 Share Posted May 16, 2014 these do not stop the php script. if your guest checkout works properly, simply turn off errors or raise the reporting level. Link to comment Share on other sites More sharing options...
vekia Posted May 16, 2014 Share Posted May 16, 2014 do you changed contents of these files ? Link to comment Share on other sites More sharing options...
papagino Posted May 16, 2014 Author Share Posted May 16, 2014 No changes were made to Dispatcher.php vekia, I just compared the original Prestashop 1.6.0.6 installation file with the one on the Host with ExamDiff software and they are identical... Link to comment Share on other sites More sharing options...
sooroos Posted May 20, 2014 Share Posted May 20, 2014 i have the same error, and didnt resolve it until now Link to comment Share on other sites More sharing options...
papagino Posted May 26, 2014 Author Share Posted May 26, 2014 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... 2 Link to comment Share on other sites More sharing options...
francklecancre Posted October 2, 2014 Share Posted October 2, 2014 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 746Warning: 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 More sharing options...
papagino Posted October 3, 2014 Author Share Posted October 3, 2014 Hi francklecancre, Have you tried what I mentionned in post #6? Always make a copy of the file before you do the edit just in case it doesn't fixe the problem... Cheers Dan Link to comment Share on other sites More sharing options...
numberMumbler Posted October 16, 2014 Share Posted October 16, 2014 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 More sharing options...
Recommended Posts