TinyPortal

Development => Support => Topic started by: Rafferty on May 22, 2009, 05:01:00 AM

Title: Losing picture addresses in Articles
Post by: Rafferty on May 22, 2009, 05:01:00 AM
Link to my site: https://aadaa.asn.au
SMF version: SMF ver. 1.1.9
TP version: TP ver. 1.0 beta 3
Theme name and version: Default
Browser Name and Version: Firefox 3.0.10
Mods installed: too numerous +100

I have just upgraded from PHP4 to 5. All seems ok with the exception of existing articles which stopped displaying uploaded pictures/photos. On checking the articles, I noted that all the full addresses had been shortened ie:

from http://mydomain/forum/tp-images/image.jpg
to:
/tp-images/image.jpg

Even when i re-point the picture using the editor, it still shortens it after i save. When I go into the code and put it in manually its fine.

What has happened here and was the PHP upgrade the cause or the editor?
Title: Re: Losing picture addresses in Articles
Post by: IchBin on May 22, 2009, 06:18:50 AM
I wonder if this will fix your issue. Seems similar, but not exact.
http://www.tinyportal.net/index.php/topic,28788.msg229572.html#msg229572
Title: Re: Losing picture addresses in Articles
Post by: Rafferty on May 22, 2009, 06:59:48 AM
Thanks but I have already done that Ich, after initially upgrading to beta 3. It worked fine up until the point of upgrading to PHP5 last night, before that it was fine unless the smf 1.1.9 upgrade had anything to do with it. .

Title: Re: Losing picture addresses in Articles
Post by: Ianedres on May 22, 2009, 06:38:02 PM
May be related to the register_globals change in php 5 from php 4.

http://www.php.net/manual/en/security.globals.php

Form may not be POSTing the value properly under php 5; you may could try turning it on in your php.ini file just for a quick check.
Title: Re: Losing picture addresses in Articles
Post by: Rafferty on May 23, 2009, 12:50:31 AM
Done so and no change. The second I save the article, it reverts back to the shortened link.
Title: Re: Losing picture addresses in Articles
Post by: Rafferty on May 25, 2009, 10:16:22 AM
Pretty quiet out there now. Any other suggestions, the problem still exists.
Title: Re: Losing picture addresses in Articles
Post by: Rafferty on May 27, 2009, 09:31:13 AM
Guys this is really getting kinda annoying now. No images are saving correctly in Articles. Same problem, shortens the address on saving. I need to go into html code and change each one manually then save it whilst in html mode, if i go back to hide html and save it, it shortens them again. 
Title: Re: Losing picture addresses in Articles
Post by: G6Cad on May 27, 2009, 09:35:47 AM
Upgrade to beta4 and see if it helps
Title: Re: Losing picture addresses in Articles
Post by: Rafferty on May 27, 2009, 09:40:01 AM
pre-emted that, no change, same thing
Title: Re: Losing picture addresses in Articles
Post by: G6Cad on May 27, 2009, 09:46:20 AM
Ok, then i think it's a bug report time then.
Add this issue to the bughtracker with all the info you can give, and link back to this topic and let Bloc look at it when he get the time to,  :)
Title: Re: Losing picture addresses in Articles
Post by: Rafferty on May 27, 2009, 10:04:17 AM
Thx G6, done.