Jump to content

[SOLVED] Can't login to admin after migration


Recommended Posts

Hello,

 

I've just moved prestashop from local version to my host online and I can't connect to the administration panel anymore. I access to the admin, I try to login and then it gets me back to the login page, without any errors.

 

I try several solutions and looked for a solution for hours but can't figure out any solution. I found a lots of topics talking about the same problem, but they are on prestashop 1.4.

 

I tried to :

  • delete cookies hundreds of times
  • change navigator
  • remove smarty cache
  • set prestashop and SQL error reportings on, nothing happened
  • try this solution, which didn't work out for me
  • check htacess :
    >> add the line set_env php5
    >> i had some rewrite cond like: RewriteCond %{HTTP_HOST} ^localhost:4616$ that I try to change with the new domain : RewriteCond %{HTTP_HOST} ^http://www.lasylphiedetoquee.com$ but it didn't worked better

I really try to find solution on the web and by myself but can't resolve, the problem. I didn't find a lots of people with this problem on prestashop 1.5. Everything was working great on the local version. Maybe something with the hosting...

 

Please help!

 

Thanks

 

Hugo

Edited by Hugo8705 (see edit history)
Link to comment
Share on other sites

how you migrated? copying files or new installation -> then copying files?

 

open the config/settings.inc.php (both on homepage and hosting) file and compare values (example from my settings.inc.php)

 

define('_COOKIE_KEY_', 'Y2fiGMNNh5qLFFZp0YmqxmgM6ALRm6Y9fkswQICpue3NKhDJWhFOthzP');

define('_COOKIE_IV_', 'rfZLqgNw');

define('_RIJNDAEL_KEY_', 'j9qUZrDegnHmqdO8HaXhnSTvbzuo0pTM');

define('_RIJNDAEL_IV_', 'uS/tqvu6GEox2Cq+Im+rsQ==');

 

 

values must be the same in both files.

  • Like 1
Link to comment
Share on other sites

No I did'nt do that before. That was the problem, I'm so f*#/?!@ stupid... But I can't access to my front office anymore as it auto-redirect me to a strange http://www.http.com//www.lasylphidetoquee.com// URL.

 

Here's what I put in my shop_url table :

domain : http://www.lasylphidetoquee.com

domain ssl : http://www.lasylphidetoquee.com

physical uri : /

 

Thank you

Link to comment
Share on other sites

  • 3 months later...
  • 8 months later...

cases like that are usually related to browser cache, try to clear it, should help

if not, it means that problem is somewhere else :(

Hi Vekia, thanks for your help. I am using an incognito window in Chrome, also IE and Firefox. My host replace the core files of the prestashop installation and it works, but I lost my customization of the website.

Link to comment
Share on other sites

  • 1 year later...
  • 6 months later...

I am having the issue when I upgraded from 1.6 to 1.6.0.11 by one click upgrade.

what should I do.

I searched every post in each forum but nothing happened to my problem.

 

Please help

 

what issue you've got exactly?

you see notification that password is wrong? white page? what exactly?

Link to comment
Share on other sites

  • 1 year later...
  • 5 months later...

Hi everyone, hoping someone could help...


 


Prestashop Cloud services were recently depleted and forced users hosting through Prestashop Cloud to migrated to their own hosting services. 


 


I've already uploaded my database and website files to a new IP address and the website is loading perfectly on the new server. However, I'm not able to log into my backend and is still presented the Prestashop page explaining that I need to change hosting. 


 


What I have discovered was an error log within my admin folder (note that I named my admin folder "lucky") and it contained the following message:


 


[09-Feb-2017 17:04:09 Africa/Johannesburg] PHP Warning:  require(/home/mattres3/public_html/lucky/../config/config.inc.php): failed to open stream: No such file or directory in /home/mattres3/public_html/lucky/index.php on line 36


[09-Feb-2017 17:04:09 Africa/Johannesburg] PHP Fatal error:  require(): Failed opening required '/home/mattres3/public_html/lucky/../config/config.inc.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/mattres3/public_html/lucky/index.php on line 36

 

As I understand this, I'm missing the following path, /config/config.inc.php, within the "lucky" folder. Would this solve the problem perhaps, or is there anything else I'm missing? If the error log is anything to go off of, how do I create the config.inc.php file so that I can upload this to my "lucky" folder and hopefully gain access to my back-office?

 

The website in question: http://mattress-on-line.co.za/ (Prestashop server IP: 37.59.161.130)

New server host website: http://41.185.8.178/~mattres3/ (IP: 41.185.8.178)

 

Many many thanks!!

 

Warm Regards,

Michael

Link to comment
Share on other sites

×
×
  • Create New...