Broken images in site (is tinyMCE the problem?)

General questions relating to Joomla! 1.5 There are other boards for more specific help on Joomla! features and extensions.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting.
Forum Post Assistant - If you are serious about wanting help, you should use this tool to help you post.
Locked
User avatar
lvicini
Joomla! Intern
Joomla! Intern
Posts: 72
Joined: Fri Apr 24, 2009 1:10 pm
Location: Almunecar - Spain

Broken images in site (is tinyMCE the problem?)

Post by lvicini » Sun Aug 08, 2010 7:18 pm

Hello,

I noticed today that most of the images on a site that I designed a while ago disappeared from the site.
The reason has to do with the path of the images: instead of having the regular <img src="/images/stories/example.jpg"> i have <img src="images/stories/example.jpg">

In other words the first forward slash disappeared on all the images of the site, obviously breaking the image. I noticed as well that tinyMCE code cleanup feature removes sistematically the forward slash from the image path. Disabling the cleanup feature and manually adding the forward slash on all the images corrected the problem.

I am lucky that the site has only a dozen of images, but I cannot see how I could solve the problem if the site had hundreds of pictures.

Do you have any idea of what could have gone wrong?

Cheers
/Luca

User avatar
astgeorge
Joomla! Ace
Joomla! Ace
Posts: 1270
Joined: Thu Feb 22, 2007 9:19 pm
Contact:

Re: Broken images in site (is tinyMCE the problem?)

Post by astgeorge » Sun Aug 08, 2010 7:37 pm

Hey Luca,
You can try going to the Global Config settings of your site, browsing to the system section and in the area that has "path to image folder" inserting a / before the images/.

However the default path setting should be working with that left alone, configured at images/ so I am wondering if something else is going on.

Have you changed anything on the path of the site previous to this problem occurring? (e.g. moving the site directory or moving the entire site to a new server et cetera)

Cheers

Aaron
Aaron St. George

Jrizzle
Joomla! Apprentice
Joomla! Apprentice
Posts: 19
Joined: Sun Aug 08, 2010 7:45 pm
Location: Dallas, TX
Contact:

Re: Broken images in site (is tinyMCE the problem?)

Post by Jrizzle » Sun Aug 08, 2010 7:53 pm

I had a similar problem with one of my clients websites. We had a dedicated web server and had to change the permissions... i believe it was to 755. Hope this helps.

User avatar
lvicini
Joomla! Intern
Joomla! Intern
Posts: 72
Joined: Fri Apr 24, 2009 1:10 pm
Location: Almunecar - Spain

Re: Broken images in site (is tinyMCE the problem?)

Post by lvicini » Sun Aug 08, 2010 8:08 pm

Hi Aaron,

Thanks for the quick answer. I didn't change much on the site except the usual Joomla version updates. I noticed the problem when I updated from 1.5.18 to 1.5.20, but it might have been there before.
Restoring the site back to 1.5.18 from a backup didn't help.

Ruling out the Joomla version update, the problem might come from Jomfish.
The images start to break after I switch repeatedly from one language to another. When I check the path of the broken image from the browser I get a:
http://www.example.com/language/section/images/stories/example.jpg

section is the name of the menu corresponding to the article section (the page is associated to an "Article Layout" menu.

I cannot think about anything else.

Cheers
Luca

User avatar
lvicini
Joomla! Intern
Joomla! Intern
Posts: 72
Joined: Fri Apr 24, 2009 1:10 pm
Location: Almunecar - Spain

Re: Broken images in site (is tinyMCE the problem?)

Post by lvicini » Mon Aug 09, 2010 6:33 pm

Hello,
I am slowly isolating the module/functionality at the origin of the problem. I tried to uninstall from the test site JoomFish. The problem persist therefore JoomFish is not responsible.

The problem seems to be related to the core SEF function. In particular if I disable "Add suffix to URLs" from "SEO settings" in the global configuration the problem disappears.

I will try to restore previous Joomla versions to see if an older version makes things better.

Cheers
/Luca

User avatar
astgeorge
Joomla! Ace
Joomla! Ace
Posts: 1270
Joined: Thu Feb 22, 2007 9:19 pm
Contact:

Re: Broken images in site (is tinyMCE the problem?)

Post by astgeorge » Mon Aug 09, 2010 8:00 pm

Ah yes extensions can alter the default nature of paths sometimes. Let us know if you get it sorted.

cheers

Aaron
Aaron St. George

User avatar
lvicini
Joomla! Intern
Joomla! Intern
Posts: 72
Joined: Fri Apr 24, 2009 1:10 pm
Location: Almunecar - Spain

Re: Broken images in site (Core SEF and System-Cache plugin)

Post by lvicini » Tue Aug 10, 2010 8:45 pm

Hello,

I found the source of the problem.
The problem in coming from the "System - Cache" plugin. Every time I disable the plugin the problem disappears and every time i enable the plugin the problem comes back.

Flushing the cache in the "Cache Manager - Clean Cache Admin" doesn't help at all. I guess there must be a strange interaction between page caching and the core SEF module. Is this a bug, or is the problem coming from another source? My lack of knowledge of Joomla internals prevents me from investigating further. (This could be the right time to dive once for all into the Joomla doc pages)

Cheers
Luca

vwrmic
Joomla! Apprentice
Joomla! Apprentice
Posts: 39
Joined: Fri Oct 03, 2008 12:41 pm

Re: Broken images in site (is tinyMCE the problem?)

Post by vwrmic » Sat Aug 14, 2010 10:28 pm

I have finally found someone with the issue I am experiencing! This has been happening to me for a week or two now, I noticed it when I was checking my site in IE and found the broken images, they were breaking because the section name was being appended to the image source, for instance home/images/test.jpg instead of just images/test.jpg

It isn't just IE though, it's happening on all browsers, I have never used JoomFish. I thought it might be SH404SEF or jFinalizer causing it but it isn't, it is the default Joomla caching. I am on the most recent Joomla update and it has only started happening recently. It is a major problem.

If I disable the Cache plugin, problem goes away, as soon as I enable it, the images break.

User avatar
lvicini
Joomla! Intern
Joomla! Intern
Posts: 72
Joined: Fri Apr 24, 2009 1:10 pm
Location: Almunecar - Spain

Re: Broken images in site (is tinyMCE the problem?)

Post by lvicini » Sun Aug 15, 2010 1:23 pm

Hi Vwrmic,
I am not using jFinalizer or SH404SEF. Nevertheless I think the error is coming from an interaction between the system cache plugin and the SEF module in place (I use the core sef module). I encountered the problem with Joomla versions as old as 1.5.13 (I didn't try older).

I am wondering if the SEF related part in the .htaccess file is to blame as well.

Cheers
/Luca

vwrmic
Joomla! Apprentice
Joomla! Apprentice
Posts: 39
Joined: Fri Oct 03, 2008 12:41 pm

Re: Broken images in site (is tinyMCE the problem?)

Post by vwrmic » Sun Aug 15, 2010 2:58 pm

I'm not sure what the issue is, I also have the core sef enabled due to sh404sef. I always keep upto date with Joomla and install the latest builds and it has only started happening since the last 1 or 2 upgrades as far as I'm aware.

I am using the .htaccess but have not changed it since setting it up so I don't believe that could be the issue, at least not on my installation. Something must have been changed in the Joomla upgrade files, but what is the question.

For the moment I have had to disable the cache plugin which has slowed my site down quite considerably, hopefully someone may know what the issue is and post back.

angeluisa
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Sun Aug 15, 2010 3:49 pm
Contact:

Re: Broken images in site (is tinyMCE the problem?)

Post by angeluisa » Sun Aug 15, 2010 3:53 pm

Got similar problem though i have a quite ideas i learned from you guys. thanks for sharing this information.

User avatar
lvicini
Joomla! Intern
Joomla! Intern
Posts: 72
Joined: Fri Apr 24, 2009 1:10 pm
Location: Almunecar - Spain

Re: Broken images in site (is tinyMCE the problem?)

Post by lvicini » Sun Aug 15, 2010 4:07 pm

Angeluisa, glad that you found the conversation useful.

Vwrmic, I noticed the problem roughly 2 weeks ago just after I upgraded to 1.5.20 from 1.5.18. Downgrading to an older version didn't help, which makes me wonder if the problem is not coming from somewhere else (the host changed the PHP/mySql configuration?). By any chance are you hosting your sites with hostgator?

My .htaccess file is customized extensively so I initially thought that the problem might also come from there, but since you are using the default .htaccess file and you have the same behavior this tell me that the problem is not coming from there.

vwrmic
Joomla! Apprentice
Joomla! Apprentice
Posts: 39
Joined: Fri Oct 03, 2008 12:41 pm

Re: Broken images in site (is tinyMCE the problem?)

Post by vwrmic » Sun Aug 15, 2010 4:23 pm

I am not on HG, I moved from them last month funnily enough, and I'm really glad I did, they weren't bad and the live support was good if they could help you, but the rest was pretty shabby.

I'm not sure what the PHP/MySQL would have to do with it, though I'm no expert. Something is going on somewhere.

Also if anyone is reading this and thinks they don't have the problem, may I suggest you check while logged out in a few different browsers, do some hard refreshes CTRL + F5. I say this because in Firefox it works fine if I am logged in or out, though not in any other browser. Mind you, my Firefox has always been dodgy.

User avatar
lvicini
Joomla! Intern
Joomla! Intern
Posts: 72
Joined: Fri Apr 24, 2009 1:10 pm
Location: Almunecar - Spain

Re: Broken images in site (is tinyMCE the problem?)

Post by lvicini » Sun Aug 15, 2010 5:17 pm

Hello,
I think I found a fix.
Check the plugin loading order. In the default configuration, the SEF plugin is loading after the Cache plugin.

Now if you change the plugin loading order in a way that the SEF plugin is loading before the Cache plugin, I think this might solve our problem (at least it looks like it is working for me).

Let me know if this is helping.

vwrmic
Joomla! Apprentice
Joomla! Apprentice
Posts: 39
Joined: Fri Oct 03, 2008 12:41 pm

Re: Broken images in site (is tinyMCE the problem?)

Post by vwrmic » Mon Aug 16, 2010 9:47 am

Thanks Ivicini, I gave this a whirl last night by changing the order and thought I would keep it running till this morning to see if it happens, I'm glad to say that with everything turned back on it doesn't seem to be happening. Everything is loading and displaying correctly in each browser.

I'm hoping that is the end of it, I will however keep checking every few hours to see if I can get it to trip up and break, seems too simple a fix, but here's hoping!

User avatar
pxforti
Joomla! Hero
Joomla! Hero
Posts: 2755
Joined: Wed Apr 04, 2007 8:54 pm
Location: Driggs, Idaho

Re: Broken images in site (is tinyMCE the problem?)

Post by pxforti » Tue Aug 23, 2011 7:35 pm

10-4. I just encounted the same problem. Due to a slower site, I enabled cache for the first time, and sure enough, I started having the image problem. Lucky for me, I had a direct relationship between turning on the cache and images breaking. then it was just a quick google search. Glad someone figured this out before me. Would be tough to figure out.

When I reordered the plugins so SEF came before cache, all was good. Note: I only had the problem with some pages, especially in a category list area.
Joomla Website Design / CS-Cart Website Design
http://writenowdesign.com


Locked

Return to “General Questions/New to Joomla! 1.5”