PRESTASHOP MANIA

FREE PRESTASHOP THEMES & MODULES DOWNLOAD, PRESTASHOP TIPS & TRICKS, PRESTASHOP TROUBLESHOOTING

Blog Archive

Total Pageviews

Showing posts with label back office. Show all posts
Showing posts with label back office. Show all posts

Prestashop Troubleshoot - Fix Prestashop 1.6 Keep logging out while in Back Office

Written By Mr. D on Sunday, March 5, 2017 | 1:44 AM

Frustrated with your prestashop Back office that keep logging you out? There are many reason why your back office keep logging you out while you have many things to do, one of the reason is maybe your IP is dynamic and you are connected with many different ISPs a lot. 

Okay, before you give up with your conditions, maybe a little setting with your prestashop will help you,  

Go to your back office, Administration > Preferences Tab:

  1. Disable "Check the cookie's IP address"
  2. Set your Lifetime of Back office cookies cookies a little bit higher
  3. Save.
It's all DONE.




1:44 AM | 1 comments | Read More

Prestashop Troubleshoot - Login page keeps appearing on Back office

Written By Mr. D on Monday, February 6, 2012 | 8:24 PM

After you've successfully installed Prestashop on your hosting, some problem might occur. One of the most common problem is some user (admin) always redirect to login page while managing their website on Back office. This is caused by Authorization issue in Prestashop's cookie file. This issue often occurs in Prestashop version 1.4.6.x and has not been fixed in the beta version.

Prestashop Login Page redirect problem

I have some trick to solving this issue, all you have to do is change two lines of your prestashop's cookie file.
That file is located at prestashop/classes/Cookie.php (Prestashop = your public html on cpanel file manager).

Follow This two simple steps:

Step 1
Line 65, try to find this code:
$this->_expire = isset($expire) ? intval($expire) : (time() + 1728000);

change 172800 value into 3600, after you change, it must be like this:
$this->_expire = isset($expire) ? intval($expire) : (time() + 3600);

Step 2
Line 195, try to find this code:
AND (!isset($this->_content['remote_addr']) OR $this->_content['remote_addr'] == ip2long(Tools::getRemoteAddr()))

just add "//" (without quotes of course) exactly before "AND", so it would be like this:
//AND (!isset($this->_content['remote_addr']) OR $this->_content['remote_addr'] == ip2long(Tools::getRemoteAddr()))

Done!
Then save your cookie.php file and try to refresh your browser. Hope you enjoy your time with this awesome CMS. 

If you don't want to edit the coding of the file, you can download the cookie.php file directly from here.
Prestashop Login Page - Cookie.php
8:24 PM | 20 comments | Read More