Images appear in backend but not in frontend

 

I've installed and removed the JomSEF plugin for redirecting.

Now I've a problem. When I create an article, in TinyMCE I insert images and I can see it in the article. When I publish it, images disappear and I can't see them.

If I check the source of the page, I can see the correct path for images, likes images\articles\001.png and images is the folder where I stored it.

How can I fix it?

1 Answer

 

2

 

Two possibilities I can think of:

  • Installing the extension has changed the base tag. View the source and make sure this is still pointing to the site root, so that relative links to images/ are still correct.
  • The extension contained multiple elements - plugins, componenents etc, and you have not uninstalled all of them. Do an audit of your extensions and remove any by that developer.

Looking further into this, out-of-the-box the base tag will just be the page you are on and the link generated (when the page has been rendered) /images rather than images. With this structure, a fawlty base tag would not break it - images should be loading from the site root.

  •  
    How can I check the base tag? Which source should I check? – Jepessen Nov 20 '16 at 19:41
  •  
    The source of the page showing the broken image. I've updated my answer with some doubt as to if this is the cause, however. That said, images\articles\001.png is going to be a problematic URL and \images\articles\001.png the expected one. Can you confirm that the beginning \ is definitely not there? – RichardB Nov 20 '16 at 20:20
  •  
    Yes, I can see <img style="margin-right: auto; margin-left: auto; display: block;" alt="" src="/images/articles/gis/postgisqgis-001.png"> in the source file and ><img style="margin-right: auto; margin-left: auto; display: block;" src="/images/articles/gis/postgisqgis-001.png" alt="" /> in the source of the article in TinyMCE. – Jepessen Nov 20 '16 at 20:23
  •  
    Is System - SEF turned on? That seems to be the core plugin that makes the image URLs start from the root instead. – RichardB Nov 20 '16 at 20:27
  •  
    I don't have system - SEF anymore, I've uninstalled it. Maybe I should install it again? – Jepessen Nov 20 '16 at 20:29
  •  
    Yes, I reckon that should fix it. Surprised Joomla allows you to uninstall that one. The alternative would be to change your base tag so it always points to your site root, but keeping things as out-of-the-box as possible is usually sensible. – RichardB Nov 20 '16 at 20:32
  •  
    The plugin had messed up everything. I've taken a backup and restored a previous version. I'm not so smart yet to fix these kind of problems... – Jepessen Nov 20 '16 at 23:21
  •  
    I find it odd that a SEF extension would screw up the path of an image. It's a relative path pointing to a directory. Check the <base> in the source code and also check the .htaccess file. – Lodder Nov 22 '16 at 8:21
  •  
    @Lodder - Pretty sure it is the core System - SEF plugin being removed and that the third party extension was a red herring. – RichardB Nov 22 '16 at 10:53

公司简介

 

自1996年以来,公司一直专注于域名注册、虚拟主机、服务器托管、网站建设、电子商务等互联网服务,不断践行"提供企业级解决方案,奉献个性化服务支持"的理念。作为戴尔"授权解决方案提供商",同时提供与公司服务相关联的硬件产品解决方案。
备案号: 豫ICP备05004936号-1

联系方式

地址:河南省郑州市经五路2号

电话:0371-63520088

QQ:76257322

网站:800188.com

电邮:该邮件地址已受到反垃圾邮件插件保护。要显示它需要在浏览器中启用 JavaScript。