noirenex Posted December 18, 2009 Share Posted December 18, 2009 Hi all,My contact-form.php is redirecting after clicking send, no error or confirmation is given, i've tracked the redirect down to init.php, when the ob_start(); is called, before this happens the page is still contact-form.php, afterwards, it's the home page.The contact page is definately posting to itself, but is somehow bing redirected, I looked up ob_start(); and redirection issues and there is a bit of chatter about it but nothing really useful.Anyone ever had this or can assist me in debugging?edit: see goingoutglam.com and you can see what it's doing Link to comment Share on other sites More sharing options...
tomerg3 Posted December 18, 2009 Share Posted December 18, 2009 Are other emails being sent currectly (signup or order confirmation)? Link to comment Share on other sites More sharing options...
noirenex Posted December 18, 2009 Author Share Posted December 18, 2009 Hmm apparently not and the same issue happens when I try to register, though the user is successfully registered, they get returned to the home page when they register and no email is sentedit: I've tried several different emails to no effect and an old installation of the system is working okay with the same settings... Link to comment Share on other sites More sharing options...
tomerg3 Posted December 18, 2009 Share Posted December 18, 2009 2 things you should try:In /tools/swift/Swift/Message.php line #79Change $this->setFrom(""); To $this->setFrom("[email protected]"); And in /tools/swift/Swift.php after line 370 (if (!($has_reply_to = $message->getReplyTo())) $message->setReplyTo($from);)add the following code: if (!$has_reply_to[0]) $message->setReplyTo($from->getAddress()); Now try sending a message, if it still doesn't work, try the following:In /tools/swift/Swift/Plugin/MailSend.php line # 159 add $params = ""; Now try sending it again, if it still doesn't work, try restarting windows (it's the only other thing I can think of ) Link to comment Share on other sites More sharing options...
noirenex Posted December 18, 2009 Author Share Posted December 18, 2009 No luck, sames still happening :<edit: Tried taking the swift module from the working one and putting into the one that doesnt work, still same issue Link to comment Share on other sites More sharing options...
tomerg3 Posted December 18, 2009 Share Posted December 18, 2009 The only other thing I can think of (apart form something to do with your host), is if you have any special characters in your shop name (like - ). Link to comment Share on other sites More sharing options...
noirenex Posted December 19, 2009 Author Share Posted December 19, 2009 No dice there either, shop name is set to GoingOutGlam and can't be my host because prestashop.goingoutglam.com works but goingoutglam.com doesn't... (Same host, awardspace) Link to comment Share on other sites More sharing options...
tomerg3 Posted December 19, 2009 Share Posted December 19, 2009 try to make a simple php file that will send an email and see if it works. <?php print "mail("[email protected]","test subject", "Test content"); ?> Link to comment Share on other sites More sharing options...
noirenex Posted December 19, 2009 Author Share Posted December 19, 2009 Still no good, I don't think my host supports using mail() though, I am using the SMTP settings in my installation. Going though logging in the swift stuff now to try to pinpoint the error. Link to comment Share on other sites More sharing options...
noirenex Posted December 19, 2009 Author Share Posted December 19, 2009 Have found out the exact point at which the error is occuring in SMTP.php runAUthenticators there is a loop througha directory and several classes are attached, at some point it manages to read index.php, and gets no furhter, though there is no index.php in the directory so i've no clue where its got it from, logs attached: 352 LOOPING index.php 351 LOOPED CRAMMD5.php 350 ATTACHED Swift_Authenticator_CRAMMD5 349 ATTACHING Swift_Authenticator_CRAMMD5 348 LOOPING CRAMMD5.php 347 LOOPED @PopB4Smtp.php 346 LOOPING @PopB4Smtp.php Link to comment Share on other sites More sharing options...
noirenex Posted December 19, 2009 Author Share Posted December 19, 2009 Ok i've got a fix but I could do with knowing the underlying issue here about how it arrive at including index.php. THe fix was to add if($file != "index.php) over the attaching and requiring of the file...Like i said I really am clueless as to how it decided index.php was a candidate to include? Link to comment Share on other sites More sharing options...
noirenex Posted December 19, 2009 Author Share Posted December 19, 2009 Actually i'm not clueless, there is actually an index.php in there. That's fail, checked the distro and it's in there as well, looks like that ones a bug then?Edit: Yep and it's got a location in a header() that's causing a redirect it seems.Edit: Yes fixed now, removal of the index.php solves my issue, hopefully this will help others in the same situationRemove index.php from tools>swift>Swift>authenticator Link to comment Share on other sites More sharing options...
Recommended Posts