images with relative URLs not displaying in editor
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.
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.
- scranson
- Joomla! Apprentice
- Posts: 34
- Joined: Sat Nov 03, 2007 3:54 pm
- Location: Toronto, Ontario, Canada
images with relative URLs not displaying in editor
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.
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"
Efficiency Management Group "Catalyst for Change: Moving Vision to Action"
- scranson
- 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
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.
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"
Efficiency Management Group "Catalyst for Change: Moving Vision to Action"
- smapan
- 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
lol i got same problem ... how to fix
- avibad
- Joomla! Fledgling
- Posts: 3
- Joined: Mon Jul 14, 2008 9:46 pm
- Location: Mumbai
- Contact:
Re: images with relative URLs not displaying in editor
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.
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.
-
- Joomla! Fledgling
- Posts: 1
- Joined: Wed Sep 30, 2009 7:31 pm
Re: images with relative URLs not displaying in editor
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
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
-
- Joomla! Fledgling
- Posts: 1
- Joined: Wed Oct 21, 2009 7:14 pm
Re: images with relative URLs not displaying in editor
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?
Is there really no fix for this?
-
- Joomla! Intern
- Posts: 61
- Joined: Sat Dec 24, 2005 12:23 am
- Location: Missouri
- Contact:
Re: images with relative URLs not displaying in editor
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.
-
- Joomla! Apprentice
- Posts: 10
- Joined: Sat Aug 01, 2009 6:08 am
Re: images with relative URLs not displaying in editor
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:
Here is my code (or kind of):
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…
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" />
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…
-
- Joomla! Apprentice
- Posts: 14
- Joined: Sat Mar 01, 2008 3:19 am
Re: images with relative URLs not displaying in editor
I have to same problem, would be great for someone to share their ideas on how to fix it.
-
- Joomla! Intern
- Posts: 61
- Joined: Sat Dec 24, 2005 12:23 am
- Location: Missouri
- Contact:
Re: images with relative URLs not displaying in editor
We still haven't found a satisfactory answer, but always hoping
-
- Joomla! Apprentice
- Posts: 14
- Joined: Sat Mar 01, 2008 3:19 am
Re: images with relative URLs not displaying in editor
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:
I'm no php guru, so I can't say for sure it will work for everyone, but it's worth a go.
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';
-
- Joomla! Fledgling
- Posts: 3
- Joined: Wed Mar 31, 2010 6:15 am
Re: images with relative URLs not displaying in editor
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.
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.
-
- Joomla! Intern
- Posts: 61
- Joined: Sat Dec 24, 2005 12:23 am
- Location: Missouri
- Contact:
Re: images with relative URLs not displaying in editor
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.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.
-
- Joomla! Fledgling
- Posts: 2
- Joined: Tue Apr 06, 2010 7:20 am
Re: images with relative URLs not displaying in editor
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?
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?
-
- Joomla! Fledgling
- Posts: 2
- Joined: Tue Apr 06, 2010 7:20 am
Re: images with relative URLs not displaying in editor
I tried this code in the config file but it didn't work.
var $live_site = 'http://yourdomainhere.com';
Anyone have any other suggestions?
var $live_site = 'http://yourdomainhere.com';
Anyone have any other suggestions?
-
- Joomla! Fledgling
- Posts: 2
- Joined: Thu Oct 22, 2009 12:15 pm
Re: images with relative URLs not displaying in editor
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.
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.
-
- Joomla! Enthusiast
- Posts: 143
- Joined: Mon Aug 31, 2009 9:50 am
Re: images with relative URLs not displaying in editor
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...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.
-
- Joomla! Fledgling
- Posts: 1
- Joined: Thu Aug 26, 2010 6:15 pm
Re: images with relative URLs not displaying in editor
I was having the same problem with Joomla v1.5.20. The fix I just found was to disable the "System - Cache" plugin.
- Jeff
- Jeff
-
- Joomla! Apprentice
- Posts: 11
- Joined: Sun Dec 10, 2006 3:12 pm
Re: images with relative URLs not displaying in editor
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.
- timmiller
- 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
All,
Along with system cache disabled, make sure system sef is ENABLED.
This fixed all images on my site.
Along with system cache disabled, make sure system sef is ENABLED.
This fixed all images on my site.
Tim Miller
timmiller.net
timmiller.net
-
- Joomla! Apprentice
- Posts: 5
- Joined: Mon Dec 28, 2009 9:54 pm
Re: images with relative URLs not displaying in editor
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
-
- Joomla! Intern
- Posts: 94
- Joined: Fri Nov 04, 2011 11:33 pm
- Location: Sydney
- Contact:
Re: images with relative URLs not displaying in editor
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
can someone help me about this
Forum Rules on Signature: http://forum.joomla.org/viewtopic.php?f=8&t=65
-
- Joomla! Apprentice
- Posts: 5
- Joined: Thu Jul 28, 2011 5:33 pm
Re: images with relative URLs not displaying in editor
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.
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.
-
- Joomla! Fledgling
- Posts: 4
- Joined: Tue Nov 09, 2010 9:11 pm
Re: images with relative URLs not displaying in editor
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"
In Global Configuration / Cashe Settings / Cashe = "No"
Plugin Manager / System Sef / Enabled = "Yes"
Plugin Manager / System Cashe / Enabled = "No"
-
- Joomla! Fledgling
- Posts: 3
- Joined: Tue May 08, 2012 11:34 am
Re: images with relative URLs not displaying in editor
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.
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.
-
- Joomla! Apprentice
- Posts: 23
- Joined: Sat Feb 17, 2007 6:40 pm
Re: images with relative URLs not displaying in editor
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.
-
- Joomla! Apprentice
- Posts: 14
- Joined: Thu Mar 24, 2011 6:50 am
Re: images with relative URLs not displaying in editor
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.
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.
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>
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.
-
- Joomla! Fledgling
- Posts: 1
- Joined: Thu Mar 13, 2014 12:11 am
Re: images with relative URLs not displaying in editor
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.
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?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>
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
- Per Yngve Berg
- Joomla! Master
- Posts: 30888
- Joined: Mon Oct 27, 2008 9:27 pm
- Location: Romerike, Norway
Re: images with relative URLs not displaying in editor
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.
Use the forum that matches your version of Joomla.
- pe7er
- 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
This forum is for Joomla 1.0 and version 1.0 is extremely old. It's end-of-life for some years now.Tomtech wrote:Is there a newer forum? These pages are mostly extremely old.
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
Peter Martin, Global Moderator
Company website: https://db8.nl/en/ - Joomla specialist, Nijmegen, Netherlands
The best website: https://the-best-website.com