Page 1 of 2

Images not working after upgrade

Posted: Tue Nov 06, 2012 9:36 am
by CapereSpiritum
Hi
Just upgraded from 1.10.3 to 1.11.2

All fine except for images.
I can upload images ok.
WYSIWYG editor inserts full URL instead of local
There are no image widths & heights inserted by WYSIWYG

I tried setting Image Path in Site Admin/Content Editing Settings to: /uploads/images (same for thumbnails)

Images don't show in pages, just the image not found icon.

What do I need to adjust to fix.

Help please :-[

Re: Images not working after upgrade

Posted: Tue Nov 06, 2012 10:06 am
by Jos
Do you use mod_rewrite for pretty urls and do you have a {metadata} tag in your page template?

Re: Images not working after upgrade

Posted: Tue Nov 06, 2012 10:10 am
by velden
What does the source-code of your webpage show regarding those images? <img src=... />

Re: Images not working after upgrade

Posted: Tue Nov 06, 2012 12:01 pm
by CapereSpiritum
Hi

To Jos: No we don't use a mod_rewrite and yes there is the {metadata} on all pages. The same applied to both before the upgrade

To Velden: this is the source code

Code: Select all

<img src="http:/Militree/uploads/images/Cookies.png" alt="" />
If I manually remove the domain name and leavce the local path, the image shows...

Re: Images not working after upgrade

Posted: Tue Nov 06, 2012 12:08 pm
by Jos
did you check your config.php for the root url?

Re: Images not working after upgrade

Posted: Tue Nov 06, 2012 12:12 pm
by CapereSpiritum
Hi Jos

Yes, this is it

Code: Select all

$config['root_url'] = 'http://www.militree.co.uk';

Re: Images not working after upgrade

Posted: Tue Nov 06, 2012 12:29 pm
by CapereSpiritum
And these are the modules that were added. Most prior to the upgrade.

Blogs 0.3.3.1
CGEcommerceBase 1.3.11
CGExtensions 1.31.1
CGJobMgr 1.2.10
CGPaymentGatewayBase 1.1
CGSimpleSmarty 1.5.2
Cart 1.8.4
CustomContent 1.8.3
DestinationBasedShipping 1.1
FrontEndUsers 1.20
JQueryTools 1.1.1
NMS 2.6.4
Orders 1.13.3
PaypalGateway 2.3.9
Products 2.18.4
SelfRegistration 1.7
SiteMapMadeSimple 1.2.6
ThemeManager 1.1.7

Re: Images not working after upgrade

Posted: Tue Nov 06, 2012 12:46 pm
by CapereSpiritum
My config.php has these variables... There is no Image/uploads path or url..!

Code: Select all

$config['dbms'] = 'mysql';
$config['db_hostname'] = 'xxx';
$config['db_username'] = 'xxx';
$config['db_password'] = 'xxx';
$config['db_name'] = 'xxx';
$config['db_prefix'] = 'cms_';
$config['db_port'] = 3306;
$config['root_url'] = 'http://www.militree.co.uk';
$config['timezone'] = 'Europe/London';
$config['default_encoding'] = 'utf-8';
Should I add Image/Uploads paths & URL's ?

Re: Images not working after upgrade

Posted: Tue Nov 06, 2012 1:27 pm
by velden
CapereSpiritum wrote: To Velden: this is the source code

Code: Select all

<img src="http:/Militree/uploads/images/Cookies.png" alt="" />
Well, it´s obvious that that won´t work.

To be sure: is that what you see when looking at the source of the browser, or when looking at the source of the WYSIWYG editor?

There's something deciding to forget a '/' in the protocol, and skip the 'www.' and '.co.uk'

Re: Images not working after upgrade

Posted: Tue Nov 06, 2012 1:41 pm
by CapereSpiritum
Yes I know...

That's what you see in the WYSIWYG, page HTML and the source code in the browser.

If I manually remove all upto and inc the / before uploads, all is fine...

I have no idea what's causing the ommissions. The full URL should not be called in the WYSIWYG anyway...

Config file is the same prior to upgrade and everything else is fine.

Note the uppercase 'M' in the URL... Only other place this is the same is in Site Admin/Global Settings/Site Name...

Re: Images not working after upgrade

Posted: Tue Nov 06, 2012 1:54 pm
by velden
I am just trying to understand:

When you ADD an image using WYSIWYG, and after that BEFORE applying and you look at the source code of WYSIWYG, is that url than already malformed?

If NOT then it must be some post processing of the content (I think). Then you might have a look at the Event Manager in the Extension Menu and check 'ContentEditPre' etc. Maybe some call's to procedures that should be changed/not used anymore.

Another question: what about existing pages you did not change? They are not affected?

Re: Images not working after upgrade

Posted: Tue Nov 06, 2012 2:00 pm
by calguy1000
Is this MicroTiny or TinyMCE?

Re: Images not working after upgrade

Posted: Tue Nov 06, 2012 2:07 pm
by CapereSpiritum
Hi

To Velden: Yes the URL is malformed BEFORE applying
Image

Existing pages and images are unaffected.

To Calguy1000: I'm using MicroTiny WYSIWYG editor

Re: Images not working after upgrade

Posted: Tue Nov 06, 2012 2:22 pm
by calguy1000
is Advanced mode on in FileManager module? if so, try disabling it.

Re: Images not working after upgrade

Posted: Tue Nov 06, 2012 2:27 pm
by CapereSpiritum
Hi Calguy

That fixed it....!

Can the issue be fixed without disabling File Manager advanced mode?