Apple Safari disrupting image url's

2019-09-02 23:34发布

问题:

Has anyone every encountered this problem:

Apple's Safari v5 is disrupting the image urls on one of my magento v1.6.1 sites within the same domain. The site in question is http://store.guns-aws.com

When analyzing the lack of images, I have noticed that image urls are being disrupted from www.guns-aws.com to www.guns -aws.com [notice the space]

Ironically Safari 4 does not have this issue and the same site works perfectly fine with IE, FF, Opera and Chrome.

Thinking its a javascript error, I have also disabled java and still the problem persist.

All your help is appreciated.

p.s. Mangento wise, I have cleared the cache, reindexed the whole site to no avail.

With best regards

Fabian

回答1:

Try going to System > Config > Web > Unsecure and check the Base URL and Base Media URL and make sure there are no spaces.

To determine if its a javascript or server error, right click on the page and hit View Source. If the URLs there have the space, its the server's fault. If they don't have the space, and you only see it in the Inspector its Javascript. However, I suspect its the server not Javascript.



回答2:

I found out the error within the database -> core_config_data [base_media_url] of the site in mention. [If you ask me how the error developed, I really don't know...]

One will not notice that the url is disrupted via magento's settings panel as the url would display as it should so.

Hence for anyone with this trouble, just go to the database via phpmyadmin, select the core_config_data table and check for the base_media_url of the effected site and amend accordingly.

With best regards

Fabian