Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
general-topic
Image Can Not Be Found
Avatar
fiddlerman
Member
Free Members
sp_UserOfflineSmall Offline
Jan 3, 2014 - 12:41 pm

I recently moved my site to a new dedicated server and am now receiving this warning when members, including myself upload pictures. We can get the pictures to show up but it still shows as [Image Can Not Be Found].

What kind of housekeeping should I do after moving the site? Any idea as to what causes this?

Here is a link to the last one that I saw:
http://fiddlerman.com/forum/fiddle-violin-repair-making-and-set-up/string-sized-files/#p52913

"The richest person is not the one who has the most, but the one who needs the least."


Learn to Play Violin for Free - http://www.fiddlerman.com

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Jan 3, 2014 - 2:52 pm

The problem comes about because if you are using the auto-pop-up-enlargment feature then SP needs to know the width of the image file. The width should really be an attribute of the image tag but sadly a lot of users do not include it. The way SP tries to find out is to send a request to the server hosting the image using a getimagesize() php function call. But to use this successfully then the setting 'allow_url_fopen' in your php ini file has to be turned on. It sounds like yours may not be and I would ask your host if it can be turned on.

We are looking into this to see if there is an alternative method but so far we haven't found anything as good!

andy-signature.png
YELLOW
SWORDFISH
Avatar
fiddlerman
Member
Free Members
sp_UserOfflineSmall Offline
Jan 3, 2014 - 10:26 pm

Thanks YS,

I have a dedicated server, is this not something I can do my self in the cPanel? Or by changing the php file?

Pierre

"The richest person is not the one who has the most, but the one who needs the least."


Learn to Play Violin for Free - http://www.fiddlerman.com

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Jan 4, 2014 - 12:59 am

yes, its a setting in the php.ini file...  Andy was asking you to check its current setting...  we suspect that it may be causing these issues on a few servers (most dont disable it)...

Avatar
fiddlerman
Member
Free Members
sp_UserOfflineSmall Offline
Jan 4, 2014 - 6:48 pm

root@Fiddlerm [~]# cat /usr/local/lib/php.ini | grep allow_url_fopen
allow_url_fopen = On
root@Fiddlerm [~]#

"The richest person is not the one who has the most, but the one who needs the least."


Learn to Play Violin for Free - http://www.fiddlerman.com

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Jan 5, 2014 - 12:07 am

then a bit of a puzzle... is the url to the image correct?  you will need to check the database for the post in question... you can use the forum tools for the properties function and get the post id...

the php function getimagesize() is failing to return info on the image...

I think you stated earlier the permissions looked correct... please check the owner (uid, gid) too... and check wp-content, sp-resources and the image uploads directory...   they should all basically match wp-content

Avatar
fiddlerman
Member
Free Members
sp_UserOfflineSmall Offline
Jan 5, 2014 - 8:24 pm

The url is correct.

http://fiddlerman.com/wp-conte.....-files.jpg

I just tried to upload a picture as well. It no longer shows after uploading it. The HTML editor shows this:

<p><img title="longhairbandana.JPG" alt="longhairbandana.JPG" src="http://fiddlerman.com/wp-content/forum-image-uploads/admin/2014/01/longhairbandana.JPG" width="0" height="0" /></p>

http://fiddlerman.com/forum/fi.....es/#p52995

Obviously I can edit the code on each post to get it to work but it's not working correctly automatically.

"The richest person is not the one who has the most, but the one who needs the least."


Learn to Play Violin for Free - http://www.fiddlerman.com

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Jan 6, 2014 - 12:16 am

so yeah still confused as to why getimagesize() is unable to reach the file... its seems web accessible...

can you paste the contents of a phpinfo() run here?

Avatar
Meztli
Sweden
Member
sp_UserOfflineSmall Offline
Jan 10, 2014 - 8:03 am

Yellow Swordfish said
We are looking into this to see if there is an alternative method but so far we haven't found anything as good!

That's a pity.

I would not recommend enabling the allow_url_fopen directive. PHP scripts that can access remote files are potentially vulnerable to arbitrary code injection.

I am still hoping for an alternative method. :)

Cheers

P.S.

By the way, Happy New Year!

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Jan 10, 2014 - 12:26 pm

Still looking...

andy-signature.png
YELLOW
SWORDFISH
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: 17361
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625