Bad content_image path on html output after 1.8.2->1.9.2
Posted: Fri Feb 04, 2011 3:20 pm
Hey all,
I have just upgraded from 1.8.2 to 1.9.2 and I'm running into a problem with the {content_image} tags in my templates. After the upgrade content_images are broken on my website because the path shows a double uploads path "uploads/uploads" in the html output.
Example:
- <img src="http://www.mysite.net/[b]uploads/uploads[/b]/images/headers/header1.jpg" name="header" alt="nicegraph" />
It should look like:
- <img src="http://www.mysite.net/[b]uploads[/b]/images/headers/header1.jpg" name="header" alt="nicegraph" />
Also in the content-editor in the control panel all previously selected and saved images are forgotten after the upgrade (as in not set). I can select the images again and save the page, but I really don't want to do that for all of my content.
Any ideas to what's causing this and how to fix this? Any help would be greatly appreciated.
Config.php entries:
Content_image block as defined in template:
I have just upgraded from 1.8.2 to 1.9.2 and I'm running into a problem with the {content_image} tags in my templates. After the upgrade content_images are broken on my website because the path shows a double uploads path "uploads/uploads" in the html output.
Example:
- <img src="http://www.mysite.net/[b]uploads/uploads[/b]/images/headers/header1.jpg" name="header" alt="nicegraph" />
It should look like:
- <img src="http://www.mysite.net/[b]uploads[/b]/images/headers/header1.jpg" name="header" alt="nicegraph" />
Also in the content-editor in the control panel all previously selected and saved images are forgotten after the upgrade (as in not set). I can select the images again and save the page, but I really don't want to do that for all of my content.
Any ideas to what's causing this and how to fix this? Any help would be greatly appreciated.
Config.php entries:
Code: Select all
#Document root as seen from the webserver. No slash at the end
#If page is requested with https use https as root url
#e.g. http://blah.com
$config['root_url'] = 'http://www.mysite.net';
#Default path and URL for uploaded images in the image manager
$config['image_uploads_path'] = '/home/myaccount/domains/mysite.net/public_html/uploads/images';
$config['image_uploads_url'] = $config['root_url'] . '/uploads/images';
Code: Select all
{content_image block="Header_afbeelding" dir="images/headers" alt="nicegraph"}