Johnnie Posted September 2, 2013 Share Posted September 2, 2013 Can anybody help me? I'm a newbie I've just installed prestashop ver. 1.5.5.0 / theme default, and i "found" 2 problems: 1. After an account is created there is no redirection to any page... remain a blank page. 2. The same problem remain after a customer is finishing the order there is a way to redirect, in first case to his account, and in the second case, to a page with some text... thx for shoping, your order will be ...? Thank you! Link to comment Share on other sites More sharing options...
NemoPS Posted September 2, 2013 Share Posted September 2, 2013 It works for me on a local installation, so it can't be yet another prestaBug : D Server specifications? Link to comment Share on other sites More sharing options...
Johnnie Posted September 2, 2013 Author Share Posted September 2, 2013 Server Name server-0123 cPanel Version 11.38.2 (build 6) Theme x3 Apache version 2.2.24 PHP version 5.2.17 MySQL version 5.1.71-rel14.9 Architecture x86_64 Operating system linux Shared IP Address 188.213.205.115 Path to sendmail /usr/sbin/sendmail Path to Perl /usr/bin/perl Perl version 5.10.1 Kernel version 2.6.32-458.6.2.lve1.2.30.el6.x86_64 cPanel Pro 1.0 (RC1) Link to comment Share on other sites More sharing options...
NemoPS Posted September 2, 2013 Share Posted September 2, 2013 Might be your php version, try this: http://www.sitepoint.com/forums/showthread.php?793056-PHP-Header-Location-not-working&s=2ac1c04cc196b51384f8492a7d3f44a3&p=4982176&viewfull=1#post4982176 See that the firefox addons outputs and post it here Link to comment Share on other sites More sharing options...
Johnnie Posted September 2, 2013 Author Share Posted September 2, 2013 (edited) Thank you and sorry for your time! http://www.vreauchirie.ro/2/ GET /2/ HTTP/1.1 Host: www.vreauchirie.ro User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:23.0) Gecko/20100101 Firefox/23.0 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 Accept-Language: ro-ro,ro;q=0.8,en-us;q=0.6,en-gb;q=0.4,en;q=0.2 Accept-Encoding: gzip, deflate Cookie: 46d50b4ce9bc921e80127f1faec137f8=cWWsD0CWktc%2FQjKNa8oSMF75QWi7s76QEiuedxiIx5V4ZhTmjI9QkvFJjxuntoxzkOfoBOtCQhHBj14OKIyXh9uTV7GLjk8Vt2ymeHiHImWRdVqUYwWus6EDM8dmu%2FV6zQBraRlwuPfpWQ83Y%2F6hKw%3D%3D000105 Connection: keep-alive HTTP/1.1 301 Moved Permanently Content-Encoding: gzip Vary: Accept-Encoding Date: Mon, 02 Sep 2013 10:04:04 GMT Connection: close X-Powered-By: PHP/5.2.17 Content-Type: text/html; charset=utf-8 Cache-Control: no-cache Location: http://www.vreauchirie.ro/2/ro/ Content-Length: 20 ---------------------------------------------------------- http://www.vreauchirie.ro/2/ro/ GET /2/ro/ HTTP/1.1 Host: www.vreauchirie.ro User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:23.0) Gecko/20100101 Firefox/23.0 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 Accept-Language: ro-ro,ro;q=0.8,en-us;q=0.6,en-gb;q=0.4,en;q=0.2 Accept-Encoding: gzip, deflate Cookie: 46d50b4ce9bc921e80127f1faec137f8=cWWsD0CWktc%2FQjKNa8oSMF75QWi7s76QEiuedxiIx5V4ZhTmjI9QkvFJjxuntoxzkOfoBOtCQhHBj14OKIyXh9uTV7GLjk8Vt2ymeHiHImWRdVqUYwWus6EDM8dmu%2FV6zQBraRlwuPfpWQ83Y%2F6hKw%3D%3D000105 Connection: keep-alive HTTP/1.1 200 OK Content-Encoding: gzip Vary: Accept-Encoding Transfer-Encoding: chunked Date: Mon, 02 Sep 2013 10:04:04 GMT Connection: close X-Powered-By: PHP/5.2.17 Content-Type: text/html; charset=utf-8 P3P: CP="IDC DSP COR CURa ADMa OUR IND PHY ONL COM STA" ---------------------------------------------------------- Edited September 2, 2013 by Johnnie (see edit history) Link to comment Share on other sites More sharing options...
NemoPS Posted September 2, 2013 Share Posted September 2, 2013 Uh that's weird, it's not even trying to redirect. Can you try turning errors on as described in my signature, and check that blank page again? Link to comment Share on other sites More sharing options...
Johnnie Posted September 2, 2013 Author Share Posted September 2, 2013 When i've change config/defines.inc.php set PS_MODE_DEV to true, i get the following error (trying to create a new account costumer): Parse error: syntax error, unexpected T_FUNCTION in /home/vreauch/public_html/2/tools/swift/Swift/Message/Headers.php on line 424 Link to comment Share on other sites More sharing options...
NemoPS Posted September 2, 2013 Share Posted September 2, 2013 Can you perhaps post what you have in that file at that exact line? I have a preg_replace Link to comment Share on other sites More sharing options...
Johnnie Posted September 2, 2013 Author Share Posted September 2, 2013 function ($matches) Link to comment Share on other sites More sharing options...
NemoPS Posted September 2, 2013 Share Posted September 2, 2013 Weird, here is what I have, from 421 on if (false !== $p = strpos($encoded_value[$key], $this->LE)) { $encoded_value[$key] = preg_replace_callback("/<([^>]+)>/", array($this, 'prestaShopReplace'), $encoded_value[$key]); } Did you upgrade your version? Or are you using a fresh one? In the first case, try replacing the whole tools folder with a fresh one Link to comment Share on other sites More sharing options...
Johnnie Posted September 2, 2013 Author Share Posted September 2, 2013 This version of prestashop in on softwares on server:softaculos... and yes, it a fresh one Link to comment Share on other sites More sharing options...
NemoPS Posted September 2, 2013 Share Posted September 2, 2013 Something might have gone wrong, try replacing it by downloading a fresh zip from prestashop.com Link to comment Share on other sites More sharing options...
Johnnie Posted September 2, 2013 Author Share Posted September 2, 2013 and this is what i have starting with 421 till 428 if (false !== $p = strpos($encoded_value[$key], $this->LE)) { $encoded_value[$key] = preg_replace_callback("/<([^>]+)>/", function ($matches) { return str_replace("' . $this->LE . '", "", "<$matches[1]>"); }, $encoded_value[$key]); } Link to comment Share on other sites More sharing options...
NemoPS Posted September 2, 2013 Share Posted September 2, 2013 Of course, that's an anonymous function, php5.2 doesn't support them : ) Link to comment Share on other sites More sharing options...
Johnnie Posted September 2, 2013 Author Share Posted September 2, 2013 I will do this, i hope that it will working. thank you so much for for time!!! Link to comment Share on other sites More sharing options...
Johnnie Posted September 3, 2013 Author Share Posted September 3, 2013 It is working with a fresh zip from prestashop.com Thank you! Link to comment Share on other sites More sharing options...
Recommended Posts