Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
plugins-topic
File Uploader: the displays "[Image Can Not Be Found]" instead of the image
Avatar
Cristian Livadiotti
Member
Free Members
sp_UserOfflineSmall Offline
Mar 28, 2012 - 12:01 pm

I just tried to comment the return line, and the image displays (not a thumb, large image is displayed within the post).

Maybe there is something wrong with my PHP config?

Note that it's a PNG image, maybe that makes a difference?

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Mar 28, 2012 - 12:17 pm

You can see that we are simply trying to establish the image width...

Good thinking on the debug numbers as well.

is there a chance you could ask you host about the getimagesize() function? This should NOT require the GD library to be compiled into your php but should be in the standard core. I would assume that if it did not exist we would get a fatal error so I doubt it is that. But they may know why we are unable to use it...

And meanwhile I will look into any method to bypass that if there is a problem...

andy-signature.png
YELLOW
SWORDFISH
Avatar
Cristian Livadiotti
Member
Free Members
sp_UserOfflineSmall Offline
Mar 31, 2012 - 3:26 am

Hi, I did not find a reason explaining that the getimagesize would not work. I have a dedicated server I administer myself, maybe there is some configuration I need to change somewhere, but I did not find anything to date. Nor did I find a lot of people complaining that this information would not work.

The environment part of simple-press toolbox gives this - I don't know if something is useful here:

Simple:Press

Version: 5.0.4
Build: 8189
Release: Release

WordPress

Version: 3.3.1
Language: en-US
Character Set: UTF-8
Theme: Optimize

PHP

Version: 5.3.8-pl0-gentoo
Memory: 128M
Max Upload: 50M
Timeout: 300

MySQL

Version: 5.0.44
Prefix: wp_

Server

Version: Apache/2.2.20 (Unix) mod_ssl/2.2.20 OpenSSL/0.9.8o

WP Plugins

CodeStyling Localization (1.99.16)
Share and Follow (1.80.3)
ShortCode - Get Child List (0.4)
Simple:Press (5.0.4)
Theme My Login (6.1.4)
Wordpress Download Monitor (3.3.5.4)
WordPress FAQ Manager (1.14)
WordPress Importer (0.6)
WP Easy Uploader (1.0.11)

SP Plugins

Admin Bar (1.0.12)
File Uploader (using Plupload) (1.0.8)
Subscriptions (1.0.12)
Template Tags and Widgets (1.0.10)

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Mar 31, 2012 - 5:28 am

Most peculiar. And clearly a rare occurrence - you are, as I said, just the second user to have this issue.

I am going to have to ask you to bear with me on this one. I have been giving it quite a lot of thought since you raised the issue to see if I can come up with a differemt solution. One or two ideas but they are going to take me a littler while to write up and test out.

In the meantime, you should be able to avoid the issue by ensuring that all image tags have a width attribute. But I do assure you I am on the case!

andy-signature.png
YELLOW
SWORDFISH
Avatar
Cristian Livadiotti
Member
Free Members
sp_UserOfflineSmall Offline
Mar 31, 2012 - 9:16 am

No problem I can wait!

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Mar 31, 2012 - 9:19 am

its most add as every php install should include getimagesize()... it does not require any other libraries...  I am not even sure how php could be compiled without it...  you are not running safe mode or anything are you?

Avatar
Cristian Livadiotti
Member
Free Members
sp_UserOfflineSmall Offline
Mar 31, 2012 - 11:09 am

Mr Papa said
its most add as every php install should include getimagesize()... it does not require any other libraries...  I am not even sure how php could be compiled without it...  you are not running safe mode or anything are you?

Well, it seems included, it's just that it answers 0 if that's possible. I have no other issue with wordpress - I guess I would have some if I was running in safe mode. But I'm no expert in server admin, unfortunately. I'll continue to look...

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Mar 31, 2012 - 11:22 am

we continue to research too... 0 is only returned if the image is not a valid image or the file contains multiple images...

sorry, if mentioned before, but what kind of image are we talking about here?

Avatar
Cristian Livadiotti
Member
Free Members
sp_UserOfflineSmall Offline
Apr 2, 2012 - 12:21 am

Mr Papa said
we continue to research too... 0 is only returned if the image is not a valid image or the file contains multiple images...

sorry, if mentioned before, but what kind of image are we talking about here?

It's a PNG made from a Mac screenshot. But I tried to save it as JPG as well. I'll make some other trials with other types of images.

Avatar
Cristian Livadiotti
Member
Free Members
sp_UserOfflineSmall Offline
Apr 2, 2012 - 12:33 am

... for an unknown reason, it just started to work.

The only thing that I did was to add the TinyMCE editor, can that be linked???

Or maybe it is the PHP caching that was preventing me from seeing the changes I did?

Anyway, the image not shown has now disappeared and images are displayed correctly...

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 619
Members: 17362
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625