avishai Posted December 9, 2012 Share Posted December 9, 2012 Hi. I have moved my shop Version 1.3 (can't update due to many changes on theme and core files...) to a new server. I have copied all the files and uploaded them to the new server and after I have imported the DB and changed the settings.config. Almost everything is working great except: 1. Emails are not sending from "contact form" ("an error occurred while sending message “), I assume that other emails not send also... 2. Can't register a new user (it does register the user but it gives a white page with an error). 3. On all pages there is an error. I have searched for an answer for my problem and found that I need to edit the "cookie.php" file and save it with the encoding UTF-8 without BOM but my original file was on that encoding... Please help! Thanks in advance! Error for all website pages: "Warning: Cannot modify header information - headers already sent by (output started at /home3/public_html/tools/smarty/compile/%%ED^EDD^EDDC97E2%%header.tpl.php:6) in /home3/public_html/classes/Cookie.php on line 521" Error for "authentication.php" while registering: "Warning: Cannot modify header information - headers already sent by (output started at /home3/public_html//mails/he/lang.php:1) in /home3/public_html/classes/Cookie.php on line 521" Link to comment Share on other sites More sharing options...
Site Posted December 9, 2012 Share Posted December 9, 2012 Hi, Have you used "force compile" in the smarty settings on the new host from your backoffice? So it regenerates your theme at the new host? Link to comment Share on other sites More sharing options...
avishai Posted December 9, 2012 Author Share Posted December 9, 2012 Hi. thank you but I can't find this compile to smarty under my BO at all. meybe there is no such thing under Ver 1.3? Thanks. Link to comment Share on other sites More sharing options...
Site Posted December 9, 2012 Share Posted December 9, 2012 Hi, I seem to remember doing this in the earlier versions http://www.prestashop.com/forums/topic/94541-smarty-compile-cache/ Link to comment Share on other sites More sharing options...
Site Posted December 9, 2012 Share Posted December 9, 2012 Out of interest is the new server setup in the same way as the old one? Link to comment Share on other sites More sharing options...
avishai Posted December 9, 2012 Author Share Posted December 9, 2012 thanks but it's on "False" as is... $smarty->caching = false; $smarty->force_compile = true; // to pass "false" when put into production $smarty->compile_check = false; (p.s. I have tried to change the "force_compile" to FALSE too but still same message..) Link to comment Share on other sites More sharing options...
Site Posted December 9, 2012 Share Posted December 9, 2012 Hi, Try this part next To force the compilation of the pages. $smarty->force_compile = true; For cache problems Empty Folder "/tools/smarty/compile" except the file "index.php" Link to comment Share on other sites More sharing options...
avishai Posted December 9, 2012 Author Share Posted December 9, 2012 Tried it. Same error megssage.. p.s. I have empty the folder mentioned, but it keep filling with files after page loads for the fist time. p.s. (2), I don't have index.php file in this folder, I have checked for a backup 2 years ago and there is no "index.php" also, never was... Link to comment Share on other sites More sharing options...
Site Posted December 9, 2012 Share Posted December 9, 2012 Hi, That is correct, the folder should fill with updated template files. It basically regenerates your theme to the latest version from your .tpl files from the themes directory. Could you post what's written on line "/home3/public_html/classes/Cookie.php on line 521" Link to comment Share on other sites More sharing options...
avishai Posted December 9, 2012 Author Share Posted December 9, 2012 sure: return setcookie($this->_name, $content, $time, $this->_path, $this->_domain, 0); Link to comment Share on other sites More sharing options...
Site Posted December 9, 2012 Share Posted December 9, 2012 Hi, Within your Prestashop settings, does it list what domain you want the website to run on and where the files for that domain are located on the server ? As you have moved server the location of the files will have changed? Like the... "/home3/public_html/" Link to comment Share on other sites More sharing options...
avishai Posted December 9, 2012 Author Share Posted December 9, 2012 On the settings it says "/" If I try to change it the whole site will be off.. and yes, it shows the full correct path on the error... Link to comment Share on other sites More sharing options...
Site Posted December 9, 2012 Share Posted December 9, 2012 Hi, I'm not sure what to do next other than install the same files and database to see if I can replicate / fix the error ? Link to comment Share on other sites More sharing options...
avishai Posted December 9, 2012 Author Share Posted December 9, 2012 Thank you very much for your time. I really appreciate it... Anyone else have solution?? Link to comment Share on other sites More sharing options...
avishai Posted December 16, 2012 Author Share Posted December 16, 2012 Please... Anyone? Link to comment Share on other sites More sharing options...
Site Posted December 16, 2012 Share Posted December 16, 2012 Hi, I've had another look into this for you, It seems you may need to generate a new cookie key (which is located in the settings.inc file) I'm away from my computer at the moment but this may help... Or search "Prestashop cookie key" http://www.prestashop.com/forums/topic/69806-lost-my-settingsincphp/ Link to comment Share on other sites More sharing options...
avishai Posted December 18, 2012 Author Share Posted December 18, 2012 I've found that when I change the cookie code all of my costumers will not be able to log in... Is it true, as far as you know? Link to comment Share on other sites More sharing options...
Site Posted December 18, 2012 Share Posted December 18, 2012 Hi, On this I'm unsure, maybe someone else can help. 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