Page 1 of 1

Migrated Opencart to new Host - Redirects failing

Posted: Fri Oct 05, 2012 5:44 am
by smwilson
I am having several issues with re-directs not working.

in particular when I click register on the home page and register an account and click submit, I get a blank screen.

my domain is shop.abbeystationery.com

After registration I should be redirected to this link

http://shop.abbeystationery.com/index.p ... nt/success (which works)

which confirms the successful registration, instead I am getting redirected to

http://shop.abbeystationery.com/index.p ... t/register (which is the same page as the registration form is based)

However instead of returning to a form I get a blank screen.

I have checked register.tpl, register.php, config.php etc etc and cant seem to find out why the page isnt redirecting. It is obviously an issue since i migrated the site to a new host because shop.realityslab.com (the original site) the redirects work fine and it is the same files.

I'm sure this is a very basic problem but I just cannot find out why it isn't redirecting.

on a different note

I am also having a similar issue whereby after a successful transaction using worldpay I am not being redirected back to the site (instead I am being stuck on the worldpay site) I also know the redirection address which will allow it to do it, it is
http://shop.abbeystationery.com/index.p ... y/callback

but again the redirection fails. (if you click on the worldpay redirection link it will actually work although it appears opencart isn't accepting redirects.

I can only assume the issues are related and It's driving me crazy :drunk:

any help or ideas would be appreciated

Update

my register.php file mentions the redirect as $this->redirect($this->url->link('account/success'));

it's possible a variable set somehwere which is wrong which isn't allow the redirect to work?

Sam

Re: Migrated Opencart to new Host - Redirects failing

Posted: Fri Oct 05, 2012 3:23 pm
by SXGuy
have you checked your config.php and admin/config.php files to make sure you have correctly set up the new url paths?

Re: Migrated Opencart to new Host - Redirects failing

Posted: Fri Oct 05, 2012 5:49 pm
by smwilson
Ok the admin/config could potentially be wrong (at least it looks messy)

I have attached the code (wthout the db details at the bottom.)

<?php
// HTTP
define('HTTP_SERVER', 'http://shop.abbeystationery.com/admin/');
define('HTTP_CATALOG', 'http://shop.abbeystationery.com/');
define('HTTP_IMAGE', 'http://shop.abbeystationery.com/image/');

// HTTPS
define('HTTPS_SERVER', 'http://shop.abbeystationery.com/admin/');
define('HTTPS_IMAGE', 'http://shop.abbeystationery.com/image/');

// DIR
define('DIR_APPLICATION', '\\\\FH-Filesrv1\FH-Webcluster\Sites\abbeystationery.com\shop.abbeystationery.com\wwwroot\admin/');
define('DIR_SYSTEM', '\\\\FH-Filesrv1\FH-Webcluster\Sites\abbeystationery.com\shop.abbeystationery.com\wwwroot\system/');
define('DIR_DATABASE', '\\\\FH-Filesrv1\FH-Webcluster\Sites\abbeystationery.com\shop.abbeystationery.com\wwwroot\system/database/');
define('DIR_LANGUAGE', '\\\\FH-Filesrv1\FH-Webcluster\Sites\abbeystationery.com\shop.abbeystationery.com\wwwroot\admin/language/');
define('DIR_TEMPLATE', '\\\\FH-Filesrv1\FH-Webcluster\Sites\abbeystationery.com\shop.abbeystationery.com\wwwroot\admin/view/template/');
define('DIR_CONFIG', '\\\\FH-Filesrv1\FH-Webcluster\Sites\abbeystationery.com\shop.abbeystationery.com\wwwroot\system/config/');
define('DIR_IMAGE', '\\\\FH-Filesrv1\FH-Webcluster\Sites\abbeystationery.com\shop.abbeystationery.com\wwwroot\image/');
define('DIR_CACHE', '\\\\FH-Filesrv1\FH-Webcluster\Sites\abbeystationery.com\shop.abbeystationery.com\wwwroot\system/cache/');
define('DIR_DOWNLOAD', '\\\\FH-Filesrv1\FH-Webcluster\Sites\abbeystationery.com\shop.abbeystationery.com\wwwroot\download/');
define('DIR_LOGS', '\\\\FH-Filesrv1\FH-Webcluster\Sites\abbeystationery.com\shop.abbeystationery.com\wwwroot\system/logs/');
define('DIR_CATALOG', '\\\\FH-Filesrv1\FH-Webcluster\Sites\abbeystationery.com\shop.abbeystationery.com\wwwroot\catalog/');

Re: Migrated Opencart to new Host - Redirects failing

Posted: Fri Oct 05, 2012 5:50 pm
by smwilson
What is "\\\\FH-Filesrv1\FH-Webcluster\Sites\abbeystationery.com" is the hosting path wrong?

Re: Migrated Opencart to new Host - Redirects failing

Posted: Fri Oct 05, 2012 10:01 pm
by smwilson
I will pay for a fix, if someones up for it :-[

Re: Migrated Opencart to new Host - Redirects failing

Posted: Tue Jun 04, 2013 4:53 am
by ghondor
i have the same issue. Blank page after registration form. I spent whole day but nothing!. i will inform you if i resolve.

Re: Migrated Opencart to new Host - Redirects failing

Posted: Tue Jun 04, 2013 6:03 am
by ghondor
Heey, i got it!!
I checked error logs and found that:
Warning: fsockopen() [function.fsockopen]: unable to connect to mail.yahoo.com:587 (Connection timed out) in /home/aydinlat.com/httpdocs/system/library/mail.php on line 153Notice: Error: Connection timed out (110) in /home/aydinlat.com/httpdocs/system/library/mail.php on line 156

This means a typical mail error, i rechecked my mail settings and it is ok now.

The blank page probably means there is an error thats stopping the page from loading but not showing because you turned it from displaying. check your php error logs as well.

ps: Where is my money :D