Jump to content

set shop URL keeps resetting


Recommended Posts

Hi guys, newbie here, but after running my site for a while, i set up an SSL certificate, and before that i changed my preferences of shop URL from an IP to a real URL.

 

This works fine, how ever, if i ever reboot my server for any reason the base URL goes back to an IP and i have to re-save. Why is this? Is this value not saved in the database somewhewre??

 

Thanks

steve

Link to comment
Share on other sites

  • 1 month later...

No multi stop is NOT enabled. I only have one store on this server.

 

The two URL's i am referring to are set the same. In the SEO/URL section you have two fields, 'shop domain' and 'SSL domain' Both of these are set with the proper URL, starting www, and then saved.

 

This is all fine until the server is rebooted for whatever reason. If you do that, both of these fields revert to an IP address of the server, and this causes problems.

Link to comment
Share on other sites

 

The two URL's i am referring to are set the same. In the SEO/URL section you have two fields, 'shop domain' and 'SSL domain' Both of these are set with the proper URL, starting www, and then saved.

 

This is all fine until the server is rebooted for whatever reason. If you do that, both of these fields revert to an IP address of the server, and this causes problems.

 

This is very strange. I wouldn't know that Prestashop is updating it. On which Prestashop version are you? Maybe this has to do with a specific version. A quick search in Prestashop's current version's code shows otherwise only the install process to set the field you mentioned with another value automatically (besides creating a new multishop). 

 

I would suggest to check what are the values in the database table ps_shop_url and also the ps_configuration (settings PS_SHOP_DOMAIN and PS_SHOP_DOMAIN_SSL) before and after rebooting. If these values change between these states, then there's something else updating them, if not the store itself (maybe a module?). 

 

If this shows nothing unusual, I would check if there's any cache involved that might misbehave, maybe a memcache server not part of the rebooted server?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...