Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Sep 2003
Posts: 6
Lurker
Lurker
Offline
Joined: Sep 2003
Posts: 6
We have a problem, whereby users cannot upload images - the images are not being added to the /uploads folder.

The users profile is being updated so an image is called by threads, but as it was not uploaded nothing is displayed.

Attachments are uploaded to the same folder - these work fine.

We get no errors, when the images are not added to the folder.

I also added Dave_L's mod to allow admins to upload images for users, but this also fails saying file must be gif, jpg or ping - which they are. (this is the only error we can produce)

If I run the test under the config setting in admin, then the test works, and all is well.

So as attachments work, as does the test - it must be a script error (I think)

Perhaps someone could give me a clue as to where to look for an answer...


Sponsored Links
Joined: Jun 2001
Posts: 3,273
That 70's Guy
That 70's Guy
Offline
Joined: Jun 2001
Posts: 3,273
What's the URL to your forum? It could be a path issue?

Joined: Apr 2001
Posts: 3,266
Member
Member
Offline
Joined: Apr 2001
Posts: 3,266
Path issue no doubt. Avatars work fine on an unhacked copy of Threads as long as path is correct and permissions set.

Joined: Sep 2003
Posts: 6
Lurker
Lurker
Offline
Joined: Sep 2003
Posts: 6
I think the path is correct as when I run the test under config within admin, it places a test.file in the uploads folder, which would not happen if the path was wrong. I use the same folder (uploads) for both attachments and uploaded avatars from members.

Joined: Apr 2002
Posts: 1,768
Addict
Addict
Offline
Joined: Apr 2002
Posts: 1,768
Which Upload Avatar error do you get, 'FILE MUST BE GIF, JPG OR PNG IMAGE' or 'IMAGE TYPE MUST BE GIF, JPG OR PNG'?

UBB.threads version?
Upload Avatar version?
PHP version?
Server - Linux/Windows?


Sponsored Links
Joined: Sep 2003
Posts: 6
Lurker
Lurker
Offline
Joined: Sep 2003
Posts: 6
Error is - FILE MUST BE GIF, JPG OR PNG IMAGE

UBB.threads version? 6.3.1
Upload Avatar version? 1.0.3
PHP version? 4.3.2
Server - Linux/Windows? Linux

Joined: Apr 2002
Posts: 1,768
Addict
Addict
Offline
Joined: Apr 2002
Posts: 1,768
FILE MUST BE GIF, JPG OR PNG IMAGE

Ok, that error message is displayed if the PHP function getimagesize() either failed to read the file, or if it read it and decided from the file's content that the file was not one of the image file types that it supports.

Are you sure that the files are valid images? Could you attach a zip file containing one or two of the files that resulted in that error message?


Joined: Sep 2003
Posts: 6
Lurker
Lurker
Offline
Joined: Sep 2003
Posts: 6
If I upload the same image as an attachment then it works fine, and it uploads to the same folder (/uploads) - I can also download the same attachment, and open it in photoshop One of the test images is attached. Nothing abnormal.
Attachments
95408-frustrated-avatar.gif (0 Bytes, 16 downloads)

Joined: Apr 2002
Posts: 1,768
Addict
Addict
Offline
Joined: Apr 2002
Posts: 1,768
Could you zip it, and attach it the .zip? I just want to eliminate one possible problem.

Joined: Sep 2003
Posts: 6
Lurker
Lurker
Offline
Joined: Sep 2003
Posts: 6
Like this?
Attachments
95411-frustrated-avatar.zip (0 Bytes, 3 downloads)

Sponsored Links
Joined: Apr 2001
Posts: 3,266
Member
Member
Offline
Joined: Apr 2001
Posts: 3,266
There is an error with PHP in winows. I see though you are running on a linux server HMM

I saw this problem trying to upload images in Photopost IMAGECREATFROMGIF would not work. What was happening in windows builds of PHP is that GIF READ was saying it was enabled but truly was not.

Joined: Sep 2003
Posts: 10
Newbie
Newbie
Offline
Joined: Sep 2003
Posts: 10
I think I kind of have the same problem. User avatar images don't show up. Paths have been checked in the admin console. The file just won't upload the folder i've chosen. Permissions are ok too, even the testfile works!

Joined: Sep 2003
Posts: 6
Lurker
Lurker
Offline
Joined: Sep 2003
Posts: 6
sounds like the same problem


Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Gizmo
Gizmo
Portland, OR, USA
Posts: 5,833
Joined: January 2000
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)