images with relative URLs not displaying in editor

Need help with a WYSIWYG-editor in Joomla! 1.0.x? This is the place to be.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
User avatar
scranson
Joomla! Apprentice
Joomla! Apprentice
Posts: 34
Joined: Sat Nov 03, 2007 3:54 pm
Location: Toronto, Ontario, Canada

images with relative URLs not displaying in editor

Post by scranson » Mon Feb 25, 2008 5:23 pm

Hi,

I have just installed JoomlaFCKeditor 2.5.1a for Joomla 1.0.13.

Unfortunately, I've hit a problem straight away - all my existing entries have images with relative URLs (e.g. images/stories/picture.jpg). I used TinyMCE WYSIWYG Editor with URLs set to Absolute to originally create the entries. When I go to edit the article in JoomlaFCK, the image is not displayed (Firefox shows a blank "broken _link_" image). They do apear in the Preview and the front-end but not in the edit box of JoomlaFCK. Then, if I browse for the image using the server browser, it uses an absolute path, and the image is then correctly displayed.

I have a lot of entries and don't want to go through changing each image to an absolute path.

Also, I don't want to use absolute paths at all, if possible. Currently, my joomla installation is off the root (e.g. http://www.site.com/joomla), and I can move/rename it to anywhere else without _link_s breaking. I would like to keep this flexibility.

Am I missing something obvious in the configuration of JoomlaFCK?

I also tried installing JoomlaFCK2_109 and it has the same issue.

Can anyone suggest where I can find a solution.
Steve Cranson                                [email protected]
Efficiency Management Group    "Catalyst for Change: Moving Vision to Action"

User avatar
scranson
Joomla! Apprentice
Joomla! Apprentice
Posts: 34
Joined: Sat Nov 03, 2007 3:54 pm
Location: Toronto, Ontario, Canada

Re: images with relative URLs not displaying in editor

Post by scranson » Mon Feb 25, 2008 5:33 pm

Hi,

Me again. I tried changing the Location of the Images? parameter from 'images/stories/' to blank but it kept getting reset so I then tried '/'. but that didn't change anything, still no images displayed.

The html code for the images are similar to this: <img width="100" height="83" border="0" src="images/logos/logo.gif" alt="logo" title="logo" />

Images display in preview and front-end but not in the edit box of the content item.
Steve Cranson                                [email protected]
Efficiency Management Group    "Catalyst for Change: Moving Vision to Action"

User avatar
smapan
Joomla! Ace
Joomla! Ace
Posts: 1880
Joined: Wed Mar 07, 2007 6:19 am
Location: Online marketing in Thailand.
Contact:

Re: images with relative URLs not displaying in editor

Post by smapan » Thu Jun 05, 2008 3:31 pm

lol i got same problem ... how to fix ??? :D

User avatar
avibad
Joomla! Fledgling
Joomla! Fledgling
Posts: 3
Joined: Mon Jul 14, 2008 9:46 pm
Location: Mumbai
Contact:

Re: images with relative URLs not displaying in editor

Post by avibad » Sat Jan 17, 2009 11:12 am

I am getting nearly smae problem:

I am providing relative path : images/stories/xxx.jpg
It shown by internal preview.
But when I actualy browse the website- the images not displayed and they ask for Absolute path :
http://www.xxx.com/index.php/images/stories/xxx.jpg
now I am not sure why "index.php/" -this is taken?

Can you please explain below:
I am having a website which has article URLs as follows->
http://xxx.com/index.php?option=com_con ... Itemid=117
and my new website is having articles URL as ->
http://www.YYY.com/index.php/profile or
http://www.YYY.com/index.php/products/extension-springs

How can I get my all URL paths as per first example as [http://xxx.com/index.php?option=com_con ... Itemid=117
].
I am sure that will solve my problem.

agentgill
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Wed Sep 30, 2009 7:31 pm

Re: images with relative URLs not displaying in editor

Post by agentgill » Wed Sep 30, 2009 7:36 pm

I am getting the same issue

1. installed a clean copy
2. uploaded my jpg
3. edited template.css
4. changed image name url(../images/inuvolo.jpg)
5. Apply

No image displayed now, tried to revert back. no image being displayed.

Any ideas

hotani
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Wed Oct 21, 2009 7:14 pm

Re: images with relative URLs not displaying in editor

Post by hotani » Wed Oct 21, 2009 7:20 pm

I'm having the same problem. Images entered into stories have absolute paths which will NOT work when the site address is changed. This means we cannot have a dev/test and production environment without having to go in and manually re-import every picture in an article.

Is there really no fix for this?

farmeunit
Joomla! Intern
Joomla! Intern
Posts: 61
Joined: Sat Dec 24, 2005 12:23 am
Location: Missouri
Contact:

Re: images with relative URLs not displaying in editor

Post by farmeunit » Mon Nov 09, 2009 4:29 pm

We have same problem. Joomla 1.5.15. We've probably had a while, but the person doing our website has always done the URL manually anyway. We try inserting pictures using the image button and it leaves off the domain. We can put the domain in, and the image works. Would be nice for our less experienced people to use the insert image button.

Jabe64
Joomla! Apprentice
Joomla! Apprentice
Posts: 10
Joined: Sat Aug 01, 2009 6:08 am

Re: images with relative URLs not displaying in editor

Post by Jabe64 » Sat Nov 14, 2009 11:54 pm

Hi!

I also almost have the same problem, images are not displaying on the website, the bug occurs only with onmouseover and onmouseout images.

It happens on Joomla! 1.5.15 and even after what update seemed to fix:
I still have the same bug but on onmouseover and onmouseout images only.

Here is my code (or kind of):

Code: Select all

<img src="images/icons/image_off.gif" alt="image" onmouseover="src='images/icons/image_on.gif" onmouseout="src='images/icons/image_off.gif" border="0" height="80" width="80" />
What happens is that image is displayed on homepage but if I'm on a other page it's displayed too but…

When I go over the image with the mouse it's replaced by alternative text and my image_on.gif doesn't appear. (And if I go back to homepage, it's OK.)

When I go out of the image, the image doesn't go back neither (onmouseout doesn't work, but from homepage it does).

If I turn explicit url (SEF) off I don't have any image problem.

Do you have the same bug?

Do you know how to fix it?

Please let me know…

vdowsett
Joomla! Apprentice
Joomla! Apprentice
Posts: 14
Joined: Sat Mar 01, 2008 3:19 am

Re: images with relative URLs not displaying in editor

Post by vdowsett » Thu Mar 11, 2010 10:10 pm

I have to same problem, would be great for someone to share their ideas on how to fix it.

farmeunit
Joomla! Intern
Joomla! Intern
Posts: 61
Joined: Sat Dec 24, 2005 12:23 am
Location: Missouri
Contact:

Re: images with relative URLs not displaying in editor

Post by farmeunit » Thu Mar 11, 2010 10:27 pm

We still haven't found a satisfactory answer, but always hoping :-[

vdowsett
Joomla! Apprentice
Joomla! Apprentice
Posts: 14
Joined: Sat Mar 01, 2008 3:19 am

Re: images with relative URLs not displaying in editor

Post by vdowsett » Fri Mar 12, 2010 5:22 pm

Ok, I have managed to fix the problem.

The problem arose because I have several websites all within the same hosting server at GoDaddy, with different domains pointing to different subfolders containing joomla.

Here's my theory, correct me if I'm wrong. The code in joomla calls for the domain name using php, but it is calling the main domain name on the server, rather than the domain name pointing to the folder, therefor no images were showing. It's all way to confusing to me, and I'm not really sure if my fix addresses the actual problem, but my images are now showing so I guess that's the important thing.

I added the following line to my configuration.php file, and that fixed the problem:

Code: Select all

var $live_site = 'http://yourdomainhere.com';
I'm no php guru, so I can't say for sure it will work for everyone, but it's worth a go.

gebersole
Joomla! Fledgling
Joomla! Fledgling
Posts: 3
Joined: Wed Mar 31, 2010 6:15 am

Re: images with relative URLs not displaying in editor

Post by gebersole » Wed Mar 31, 2010 8:14 pm

Tried the link of code but got a MySQL error. Any other solutions?

Home page is OK--but sub pages displaying URL as:

http://www.enteraevents.com/index.php/media#media

and when I click to go back to the home page, I get this URL:

http://www.enteraevents.com/index.php/index.php

As you can see, an extra index.php is added.

The site was recently transferred from another hosting company.

farmeunit
Joomla! Intern
Joomla! Intern
Posts: 61
Joined: Sat Dec 24, 2005 12:23 am
Location: Missouri
Contact:

Re: images with relative URLs not displaying in editor

Post by farmeunit » Thu Apr 01, 2010 12:56 am

gebersole wrote:Tried the link of code but got a MySQL error. Any other solutions?

Home page is OK--but sub pages displaying URL as:

http://www.enteraevents.com/index.php/media#media

and when I click to go back to the home page, I get this URL:

http://www.enteraevents.com/index.php/index.php

As you can see, an extra index.php is added.

The site was recently transferred from another hosting company.
I've never seen that before. I was going to try that code on our site, but forgot about it. Who moved your site? AkeebaBackup (formerly Joomlapack) is a great way to backup and move sites.

Petath
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Tue Apr 06, 2010 7:20 am

Re: images with relative URLs not displaying in editor

Post by Petath » Wed Apr 14, 2010 5:38 am

I am having the same problem.
My home page is showing
http://www.biodiversesolutions.com.au/index.php/home
and all image links/links to files are putting the index.php in the url too
http://www.biodiversesolutions.com.au/i ... ochure.pdf

I tried manually putting the full URL into the html within the story within the CMS but Joomla stripped it out
i.e. this
http://www.biodiversesolutions.com.au/s ... ochure.pdf
got stripped back to
<a href="stories/Bio_Diverse_Brochure.pdf"> and the index.php appeared in the URL and hence couldn't be found.

Anyone have any ideas?

Petath
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Tue Apr 06, 2010 7:20 am

Re: images with relative URLs not displaying in editor

Post by Petath » Tue Apr 27, 2010 2:08 pm

I tried this code in the config file but it didn't work.

var $live_site = 'http://yourdomainhere.com';

Anyone have any other suggestions?

Ctrl-Alt-Delete
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Thu Oct 22, 2009 12:15 pm

Re: images with relative URLs not displaying in editor

Post by Ctrl-Alt-Delete » Tue Aug 17, 2010 12:10 pm

Hi guys,

I experienced this problem after upgrading to Version 1.5.20 and came across this thread while looking for a quick fix. I'd already tried all the suggestions though, with no success.

After much head scratching I did manage to fix it though, by simply moving the 'System - SEF' plugin to the start of the plugin ordering (order 0).

I don't know if this fix is relevant to others having problems, or other versions of Joomla! , but give it a try if you haven't already.

emal011
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 143
Joined: Mon Aug 31, 2009 9:50 am

Re: images with relative URLs not displaying in editor

Post by emal011 » Tue Aug 24, 2010 1:03 pm

Ctrl-Alt-Delete wrote:Hi guys,

I experienced this problem after upgrading to Version 1.5.20 and came across this thread while looking for a quick fix. I'd already tried all the suggestions though, with no success.

After much head scratching I did manage to fix it though, by simply moving the 'System - SEF' plugin to the start of the plugin ordering (order 0).

I don't know if this fix is relevant to others having problems, or other versions of Joomla! , but give it a try if you haven't already.
already made it... nothing happends, it´s all the same.. I try to write the complete address and when i save it i see it´s automatically short...

dairyland
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Thu Aug 26, 2010 6:15 pm

Re: images with relative URLs not displaying in editor

Post by dairyland » Thu Aug 26, 2010 6:19 pm

I was having the same problem with Joomla v1.5.20. The fix I just found was to disable the "System - Cache" plugin.

- Jeff

nmincone
Joomla! Apprentice
Joomla! Apprentice
Posts: 11
Joined: Sun Dec 10, 2006 3:12 pm

Re: images with relative URLs not displaying in editor

Post by nmincone » Wed Nov 24, 2010 5:13 pm

Tip: Be sure all your images file names are lowercase/alpha numeric only, try not to use spaces or special characters as well as this can also lead to problems with images not displaying properly.

User avatar
timmiller
Joomla! Apprentice
Joomla! Apprentice
Posts: 38
Joined: Tue Oct 17, 2006 2:22 pm
Location: Roanoke, TX (DFW)
Contact:

Re: images with relative URLs not displaying in editor

Post by timmiller » Wed Jan 12, 2011 3:04 pm

All,

Along with system cache disabled, make sure system sef is ENABLED.

This fixed all images on my site.
Tim Miller
timmiller.net

motrellik
Joomla! Apprentice
Joomla! Apprentice
Posts: 5
Joined: Mon Dec 28, 2009 9:54 pm

Re: images with relative URLs not displaying in editor

Post by motrellik » Fri Jan 14, 2011 9:35 pm

Thanks for the solutions guys, disabling the system cache fixed it for me, its a shame that there was such a conflicting problem though :S

Yourtechneed
Joomla! Intern
Joomla! Intern
Posts: 94
Joined: Fri Nov 04, 2011 11:33 pm
Location: Sydney
Contact:

Re: images with relative URLs not displaying in editor

Post by Yourtechneed » Thu Jan 19, 2012 9:52 pm

I want to show a absolute URL in for the image. But when i paste the absolute url and save it. it changes to relative URL.

can someone help me about this

bainst
Joomla! Apprentice
Joomla! Apprentice
Posts: 5
Joined: Thu Jul 28, 2011 5:33 pm

Re: images with relative URLs not displaying in editor

Post by bainst » Sat Feb 18, 2012 8:03 pm

I have a new post about this problem, here:
http://forum.joomla.org/viewtopic.php?f=32&t=696950

My system cache was already disabled. (per suggestion made in this post)

My system sef was already ENABLED, and I set it to (0) in load order (per suggestion made in this post).

I tried adding the full URL for the link...just broke the link.

Nothing is working. I've done the forum search, but only come up with this thread. The search terms are too common, otherwise, to generate a useful list. If you know of a post with the answer, or know of a search term that will generate a fix for this problem, please post it.

Edited out my snarkiness. Apologies.

ggpolk
Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Tue Nov 09, 2010 9:11 pm

Re: images with relative URLs not displaying in editor

Post by ggpolk » Thu Apr 12, 2012 2:00 am

Not sure if this helps, but my image path problem was fixed by changing / ensuring the following settings:

In Global Configuration / Cashe Settings / Cashe = "No"

Plugin Manager / System Sef / Enabled = "Yes"

Plugin Manager / System Cashe / Enabled = "No"

OPNSRCRLS
Joomla! Fledgling
Joomla! Fledgling
Posts: 3
Joined: Tue May 08, 2012 11:34 am

Re: images with relative URLs not displaying in editor

Post by OPNSRCRLS » Tue May 08, 2012 11:48 am

I fixed my problem with index.php in URL's by turning off "Search Engine Friendly URLs" option in Global Configuration.

In my case pictures added with javascript inside articles were prefixed with index.php and therefore not shown. Since i don`t know how to import them with absolute path this solution was easier. If anyone knows how to solve this issue without turning off SEF URLs please post it here.

Cheers.

motorbelly
Joomla! Apprentice
Joomla! Apprentice
Posts: 23
Joined: Sat Feb 17, 2007 6:40 pm

Re: images with relative URLs not displaying in editor

Post by motorbelly » Wed Jun 06, 2012 5:45 am

I am upgrading a site but have not published the 2.5 yet. Somehow in the process I turned off the 1.5 Plugin SEF in Extensions, Plugins. Turning it back on fixed me. All is well. Don't change search engine friendly in Global Configuration.

Tomtech
Joomla! Apprentice
Joomla! Apprentice
Posts: 14
Joined: Thu Mar 24, 2011 6:50 am

Re: images with relative URLs not displaying in editor

Post by Tomtech » Thu Feb 13, 2014 8:41 pm

Is there a newer forum? These pages are mostly extremely old.

Back to topic. I found that I can use relative addressing some of the time.

Configuration:
Search Engine Friendly URL's: Yes
Use URL rewriting: Yes
Adds Suffix to URL: No
Unicode Aliases: No

Cache doesn't have an affect.

Code: Select all

<?php
$user = JFactory::getUser();
?>
// This works on all pages
<a href='menu_name'></a>

// These doesn't work
<a href='?userid=' <?php echo $user->get('id') ?></a>
<a href='?userid=' <?php echo $user('id') ?></a> 
I tried adding "public $live_site = 'http://mysite/" to the root configuration php file but it caused a complete site crash. Is there a schema somwhere which is limiting what can be defined in the configuration?

Anytime i use the question mark I get it appended to the page's Friendy URL.
No matter what I have tried, I can't get the users' id appended after the equal sign.

Help me out.

outlaw410
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Thu Mar 13, 2014 12:11 am

Re: images with relative URLs not displaying in editor

Post by outlaw410 » Thu Mar 13, 2014 12:17 am

Tomtech wrote:Is there a newer forum? These pages are mostly extremely old.

Back to topic. I found that I can use relative addressing some of the time.

Configuration:
Search Engine Friendly URL's: Yes
Use URL rewriting: Yes
Adds Suffix to URL: No
Unicode Aliases: No

Cache doesn't have an affect.

Code: Select all

<?php
$user = JFactory::getUser();
?>
// This works on all pages
<a href='menu_name'></a>

// These doesn't work
<a href='?userid=' <?php echo $user->get('id') ?></a>
<a href='?userid=' <?php echo $user('id') ?></a> 
I tried adding "public $live_site = 'http://mysite/" to the root configuration php file but it caused a complete site crash. Is there a schema somwhere which is limiting what can be defined in the configuration?

Anytime i use the question mark I get it appended to the page's Friendy URL.
No matter what I have tried, I can't get the users' id appended after the equal sign.

Help me out.

I just had the same issue and this worked for me:

..same configuration settings as above. (Joomla 3.2.3)

Then took these steps.

Configuration.php; changed live site var to ' '. (nothing)
Plugins - system sef reordered to first
clear Joomla Cache
Clear Browser cache.
Reload site and that worked for me

User avatar
Per Yngve Berg
Joomla! Master
Joomla! Master
Posts: 30888
Joined: Mon Oct 27, 2008 9:27 pm
Location: Romerike, Norway

Re: images with relative URLs not displaying in editor

Post by Per Yngve Berg » Thu Mar 13, 2014 7:10 am

Joomla 1.0 went EOL for more than 3 years ago. It's not supported any more.
Use the forum that matches your version of Joomla.

User avatar
pe7er
Joomla! Master
Joomla! Master
Posts: 24974
Joined: Thu Aug 18, 2005 8:55 pm
Location: Nijmegen, Netherlands
Contact:

Re: images with relative URLs not displaying in editor

Post by pe7er » Thu Mar 13, 2014 8:20 am

Tomtech wrote:Is there a newer forum? These pages are mostly extremely old.
This forum is for Joomla 1.0 and version 1.0 is extremely old. It's end-of-life for some years now.

Maybe you could test this problem with a recent Joomla version like 2.5 or 3.2.
If it does not have the problems as you were having on your Joomla 1.0 website,
than you might have an extra argument to migrate your 1.0 site to 2.5 or 3.2 ;)
Kind Regards,
Peter Martin, Global Moderator
Company website: https://db8.nl/en/ - Joomla specialist, Nijmegen, Netherlands
The best website: https://the-best-website.com


Locked

Return to “WYSIWYG Editors - 1.0.x”