Apple Safari disrupting image url's

白昼怎懂夜的黑 提交于 2019-12-13 03:39:49

问题


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



来源:https://stackoverflow.com/questions/8103777/apple-safari-disrupting-image-urls

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!