Images not working after upgrade

Help with getting the CMS CORE package up and running. This does not include 3rd party modules, PHP scripts, anything downloaded via module manager or from any external source.
CapereSpiritum
Forum Members
Forum Members
Posts: 223
Joined: Wed Dec 28, 2011 12:11 pm

Images not working after upgrade

Post 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 :-[
Jos
Support Guru
Support Guru
Posts: 4017
Joined: Wed Sep 05, 2007 8:03 pm
Location: The Netherlands

Re: Images not working after upgrade

Post by Jos »

Do you use mod_rewrite for pretty urls and do you have a {metadata} tag in your page template?
User avatar
velden
Dev Team Member
Dev Team Member
Posts: 3483
Joined: Mon Nov 28, 2011 9:29 am
Location: The Netherlands

Re: Images not working after upgrade

Post by velden »

What does the source-code of your webpage show regarding those images? <img src=... />
CapereSpiritum
Forum Members
Forum Members
Posts: 223
Joined: Wed Dec 28, 2011 12:11 pm

Re: Images not working after upgrade

Post 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...
Jos
Support Guru
Support Guru
Posts: 4017
Joined: Wed Sep 05, 2007 8:03 pm
Location: The Netherlands

Re: Images not working after upgrade

Post by Jos »

did you check your config.php for the root url?
CapereSpiritum
Forum Members
Forum Members
Posts: 223
Joined: Wed Dec 28, 2011 12:11 pm

Re: Images not working after upgrade

Post by CapereSpiritum »

Hi Jos

Yes, this is it

Code: Select all

$config['root_url'] = 'http://www.militree.co.uk';
CapereSpiritum
Forum Members
Forum Members
Posts: 223
Joined: Wed Dec 28, 2011 12:11 pm

Re: Images not working after upgrade

Post 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
CapereSpiritum
Forum Members
Forum Members
Posts: 223
Joined: Wed Dec 28, 2011 12:11 pm

Re: Images not working after upgrade

Post 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 ?
User avatar
velden
Dev Team Member
Dev Team Member
Posts: 3483
Joined: Mon Nov 28, 2011 9:29 am
Location: The Netherlands

Re: Images not working after upgrade

Post 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'
CapereSpiritum
Forum Members
Forum Members
Posts: 223
Joined: Wed Dec 28, 2011 12:11 pm

Re: Images not working after upgrade

Post 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...
User avatar
velden
Dev Team Member
Dev Team Member
Posts: 3483
Joined: Mon Nov 28, 2011 9:29 am
Location: The Netherlands

Re: Images not working after upgrade

Post 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?
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm
Location: Fernie British Columbia, Canada

Re: Images not working after upgrade

Post by calguy1000 »

Is this MicroTiny or TinyMCE?
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
CapereSpiritum
Forum Members
Forum Members
Posts: 223
Joined: Wed Dec 28, 2011 12:11 pm

Re: Images not working after upgrade

Post 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
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm
Location: Fernie British Columbia, Canada

Re: Images not working after upgrade

Post by calguy1000 »

is Advanced mode on in FileManager module? if so, try disabling it.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
CapereSpiritum
Forum Members
Forum Members
Posts: 223
Joined: Wed Dec 28, 2011 12:11 pm

Re: Images not working after upgrade

Post by CapereSpiritum »

Hi Calguy

That fixed it....!

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

Return to “[locked] Installation, Setup and Upgrade”