Post by Sido » Tue Feb 28, 2012 7:54 pm

Opencart version: 1.5.1.3.1
Clean installation with no upgrade
http://www.waterquality.ie/eshop

Hi,

I am having a problem with customer logout. After logging out in Chrome, there's an error:
"The webpage at http://www.waterquality.ie/eshop/index. ... unt/logout has resulted in too many redirects. Clearing your cookies for this site or allowing third-party cookies may fix the problem. If not, it is possibly a server configuration issue and not a problem with your computer.

Error 310 (net::ERR_TOO_MANY_REDIRECTS): There were too many redirects."

After reloading the page it's working fine and it is redirectied to a logout page. I've tried cookies, but it didn't help.

A very similar error pops up using Firefox, but needs get refreshed 3-4 times to get to logout page.

Any suggestions ?

Newbie

Posts

Joined
Tue Feb 28, 2012 7:14 pm

Post by uksitebuilder » Wed Feb 29, 2012 4:20 am

have you enable .htaccess and if so what is it's contents

ImageImageImageImageImage

For Friendly Professional Support - Click Here


User avatar
Guru Member

Posts

Joined
Thu Jun 09, 2011 11:37 pm
Location - United Kindgom

Post by Sido » Thu Mar 01, 2012 12:23 am

"enable .htaccess" - do you mean rename htaccess.txt to .htaccess in my eshop directory ? I've done that.

Content of .htaccess is :

Options +FollowSymlinks
Options -Indexes
<FilesMatch "\.(tpl|ini|log)">
Order deny,allow
Deny from all
</FilesMatch>
RewriteEngine On
RewriteBase /
RewriteRule sitemap.xml /index.php?route=feed/google_sitemap
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([^?]*) index.php?_route_=$1 [L,QSA]

Newbie

Posts

Joined
Tue Feb 28, 2012 7:14 pm

Post by uksitebuilder » Fri Mar 02, 2012 3:44 pm

You need to change the RewriteBase / line to read:

RewriteBase /eshop/

ImageImageImageImageImage

For Friendly Professional Support - Click Here


User avatar
Guru Member

Posts

Joined
Thu Jun 09, 2011 11:37 pm
Location - United Kindgom

Post by Sido » Mon Mar 05, 2012 11:38 pm

Hi,

Thanks for your reply. I've changed this, but it didn't help. Hope there is anything else that can help.

Newbie

Posts

Joined
Tue Feb 28, 2012 7:14 pm

Post by Sido » Fri Mar 09, 2012 10:09 pm

Really nobody to help, please ?

Newbie

Posts

Joined
Tue Feb 28, 2012 7:14 pm

Post by shragi » Wed Jul 10, 2013 4:35 pm

i resolved the issue on my site by changing something very small and simple, read article in link bellow ;D

http://www.jackwdavis.com/2012/03/06/ho ... gging-out/

How To Redirect OpenCart Customer On Logging Out
Now, this part is very useful in defining a custom page to show to your OpenCart visitor when they have logged out. By default OpenCart shows them some boring, and useless page which gives them permission to turn off their computer but that space can be very valuable in capturing visitors as they are leaving! You can define a custom information page with some special offers to encourage them to log back in and spend money or just display advertisements/affiliate ads to try and capture some revenue from your departing customers.

The same process applies as above, simply open up the logout controller file located at:

catalog/controller/account/logout.php
Open it up and it have just one redirect function which you will need to change and it looks like this:

$this->redirect($this->url->link('account/logout', '', 'SSL'));
It is about 20 lines down usually and all you need to do it change the route to follow such as:

//To show the home page after logging out
$this->redirect($this->url->link('common/home', '', 'SSL'));

Or you can define an entirely new domain address with a full URL:

//To redirect to a new URL
$this->redirect('http://www.jackwdavis.com');

And there we go, we have a chance to show whatever we want to customers logging out of your OpenCart store. As I mentioned earlier this is great for increasing customer conversions, boosting sales and customer loyalty! :D :D

Newbie

Posts

Joined
Wed Jul 10, 2013 4:20 pm

Post by erhangazi84 » Fri Aug 17, 2018 4:43 am

shragi wrote:
Wed Jul 10, 2013 4:35 pm
i resolved the issue on my site by changing something very small and simple, read article in link bellow ;D

http://www.jackwdavis.com/2012/03/06/ho ... gging-out/

How To Redirect OpenCart Customer On Logging Out
Now, this part is very useful in defining a custom page to show to your OpenCart visitor when they have logged out. By default OpenCart shows them some boring, and useless page which gives them permission to turn off their computer but that space can be very valuable in capturing visitors as they are leaving! You can define a custom information page with some special offers to encourage them to log back in and spend money or just display advertisements/affiliate ads to try and capture some revenue from your departing customers.

The same process applies as above, simply open up the logout controller file located at:

catalog/controller/account/logout.php
Open it up and it have just one redirect function which you will need to change and it looks like this:

$this->redirect($this->url->link('account/logout', '', 'SSL'));
It is about 20 lines down usually and all you need to do it change the route to follow such as:

//To show the home page after logging out
$this->redirect($this->url->link('common/home', '', 'SSL'));

Or you can define an entirely new domain address with a full URL:

//To redirect to a new URL
$this->redirect('http://www.jackwdavis.com');

And there we go, we have a chance to show whatever we want to customers logging out of your OpenCart store. As I mentioned earlier this is great for increasing customer conversions, boosting sales and customer loyalty! :D :D
hi, this topic has saved my life for many times. And i want to thank you this time. Really thanks.

Newbie

Posts

Joined
Fri May 23, 2014 10:46 pm
Location - Gaziantep,Turkey
Who is online

Users browsing this forum: No registered users and 10 guests