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
Uploaded Avatar image failing to load?
Avatar
B E Thrower
Member
Free Members
sp_UserOfflineSmall Offline
May 23, 2012 - 6:05 pm

I have just uploaded an avatar image and it's failing to display / load the image. 

I'm wondering if it has anything to do with the numbers it prefixes to the name? 

any thoughts?

http://www.time4advice.co.uk/c.....avatar.png

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
May 23, 2012 - 9:00 pm

well, since you cannot even view the image in a browser, there may be an issue on your server...

have you looked to see if the file actually exists?   worth checking forum - integration - storage locations and make sure you avatar storage location is set up correctly...

Avatar
B E Thrower
Member
Free Members
sp_UserOfflineSmall Offline
May 24, 2012 - 4:56 am

Thanks for getting back to me,

the file does exist (first thing I checked) I think it may be a server issue as the image does load to the avatar folder on the server and all my default avatar images are displaying ok.

at first I thought it was due to file format or no apended .png /.jpg but that wasn't the case which makes me think it's either the server doesn't like the numbers prefixed to the file name or when uploading the image the server is setting the file permissions to deny all access hence the faile to load/display.

 

just thought I would post the question to see if anyone else had come across this issue?

 

Will update once I have investigate more.

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
May 24, 2012 - 6:37 am

We are certainly not aware of any issues and have no other reports of such behaviour. The numbers added as a prefix is a numeric representation of the date (i.e., unix timestamp) and is added to ensure uniqueness. I doubt this should cause any problem.
again - please do let us know if you find anything.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
May 24, 2012 - 10:20 pm

wait... the file exists?  then it should open up in your browser via the direct link...

so you need to check your permissions and owners (uid and gid) on the sp-resources directory...  they dont seem web accessible...

Avatar
B E Thrower
Member
Free Members
sp_UserOfflineSmall Offline
May 25, 2012 - 5:40 am

Thanks for the info, I have just been working with our dev guys and we now have got to the route of the issue.

it's actually a little more complex than initially thought but it is due to permission settings.

Were running on a windows server so use IIS7 to run PHP

as standard php uses the default root "tmp" folder permissions for upload files the default on windows had limited permissions which needs to remain as is (as we require quite strick access protocal on other parts of the site).

So the dev guys had to update the ini.php (serverside php file) settings to pull the permissions form a different folder (which they set up with the correct permissions) this should now resolve the permission issue on all uploaded files.

we need to restart IIS on the server but can't do this till later on today.

So essentially the issue is with using windows IIS7 + the server Set-up, and PHP.

Will update to confirm if this was successful.

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
May 25, 2012 - 6:57 am

IIS users always seem to go through these hoops when using WP...

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: 620
Members: 17365
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10128
Posts: 79626