Images and settings unset in test site

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
6 Jahre weitere
Hi all
I have a site www.surf-sup.dk
If you go to http://www.surf-sup.dk/leashes you will find everything to be fine, but In order to make changes locally, I created a new website, with the same code, cloned the database and set the new site up to use the cloned db.
Here is the test site: http://surfsuptest.azurewebsites.net/leashes
As you can see, there are several differences between the two sites. The second one is missing some images (not all), and some settings are different e.g. "Your Store" vs "Surf-Sup" (in the browser pane), and also things like: "Danske kroner" and "Dansk" drop down menus are only on the test site. It seems to me, that the test site is using the default configuration even though is is running on a cloned db. Are not all settings stored in the db? Or how can this happen?
6 Jahre weitere
If all is the same, try "clearing cache" (upper right corner in admin area) on both of the instances and see if that helps.
6 Jahre weitere
Thanks for your reply, However, it doesn't seem to make any difference
6 Jahre weitere
Hi,

Go to your store settings. Update the store URL with http://surfsuptest.azurewebsites.net/leashes one. Clear the cache.
6 Jahre weitere
@ahmadkq It took me a little while to get what you meant, but I see the idea. So I checked my store settings and noticed that I have 3 stores with each their URL. So I deleted the two bottom stores (see image), and changed the URL for the first store to http://surfsuptest.azurewebsites.net/ (remember this on a different machine than the real site, so I am not changing the real site's URL). I figured this would make the url pick the values in the database associated with that particular store, so I cleared the cache - even restarted the application, but nothing has changed. Even the store name didn't change!?! 
Are there other store related settings, where I may have several stores pointing at incorrect values?
Here is the image:
6 Jahre weitere
Hmm it the forum doesn't show the image link. I'll try again:

https://drive.google.com/open?id=0B1AoO-WfkYOZekFka1RiRzlmQzg

https://drive.google.com/open?id=0B1AoO-WfkYOZekFka1RiRzlmQzg
6 Jahre weitere
I found out that the two databases weren't perfectly aligned (which is strange since I made a clone, but apparently it didn't clone the db completely). So to avoid problems regarding differences in te db, I moved both instances to run on the production database and yet there are still images missing and settings not being set!?!
For instance: on the home page, bestsellers aren't showing. I can easily change this, but why is the site not picking up the information from the db?
6 Jahre weitere
I solved it!
It turns out, I had set the media setting to: save on file, so some images were stored on the db others on the file system. Since I ran the test on a different machine it didn't have access to the same image folder. The solution was to copy the image folder from production to test, and also: the database file settings.txt is not uploaded with the project when using bitbucket/azure continuous integration mode, you have to upload the settings.txt by itself through ftp or similar, that's why the settings weren't being updated
6 Jahre weitere
I am happy that you solved the problem
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.