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 Plugin: Upload URL might be wrong or doesn't exist
Avatar
Sarwar Faruque
Rookie
Free Members
sp_UserOfflineSmall Offline
Apr 26, 2012 - 7:40 am

I'm getting this error when I try to upload an image:

Upload URL might be wrong or doesn't exist

- Checked the Storage Locations, and they point to the correct location and the folders do exist.

- Checked the Folders, permission for forum-image-uploads, forum-media-uploads and forum-file-uploads are set to 777

 

What am I missing?

 

Thanks!

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Apr 26, 2012 - 12:43 pm

I am on shaky ground here as I really need Steve (Mr Papa) involved in this one as I have not had anything to do with the coding of this plugin.

But - having said that - a search through the code shows this message to be coming from the plupload javascript runtime and is caused by an http error being returned. So - somewhere along the line your server is not liking things but I am unsure what!

I would start off my reducing the permissions on the upload folders from 777 to 775. Some hosts do have triggers that will stop writing to the disk if the folder is 777. I would also perhaps check the /tmp folder which can cause problems if it is full.

And Steve will be along later so we can get him involved.

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

0777 would not be the best permission...  should be 0755 but not likely the issue...

that is an internal plupload (the 3rd party app we use for uploading) error message...  not really sure why you are getting it - its never cropped up before...  Nor can I find any information on it at the plupload site...

can you verify that your php.ini does set up a tmp location for file uploads? normally is /tmp on servers...

anything unique about this file? how large?

Avatar
Sarwar Faruque
Rookie
Free Members
sp_UserOfflineSmall Offline
Apr 27, 2012 - 2:26 am

This is incredibly odd head scratcher, but I think I might have figured out what's going on.

After logging into my forums (as admin), I proceeded to upload a 2 files: an image and a text file

ipms_image_uploader.pngImage Enlarger

The above is what I see. It says that test-1.txt file uploaded properly, and Airplane1.jpg didn't.

 

Out of curiosity I decide to check out the contents of the upload folders, and to my surprise it's been uploaded! 

ftp-ipms.pngImage Enlarger

 

At this point, I turn on the error console on Chrome and retry the process. This is the error I get:

console_error.pngImage Enlarger

 

Now I've no idea what this means.

I've even uninstalled a the plupload plugin and reinstalled it.

Any advise? confused

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Apr 27, 2012 - 5:32 am

A '500 Internal Server Error' really needs to be taken up with your host company. I would send then this image and explain what was going on when it happened. It might come down to simple server configuration. Either way it needs to be looked at by the hosting.

I would ask them at the same time if it is possible that mod_security is installed on the serve and could this be the culprit. Also point out to them that this was an ajax call.

We would be interested in the response.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Sarwar Faruque
Rookie
Free Members
sp_UserOfflineSmall Offline
Apr 28, 2012 - 6:39 am

Ok I figured it out and fixed it. I'm on a VPS where I setup LAMP. I did however forget one small crucial part,

I forgot to install php-gd. Once I got that installed, everything worked perfectly!laugh

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Apr 28, 2012 - 12:44 pm

odd...  the php gd library should not be needed... will have to consult with the plupload folks...

but good find!

Avatar
Sarwar Faruque
Rookie
Free Members
sp_UserOfflineSmall Offline
Apr 29, 2012 - 1:56 am

I think it needs PHP-GD because PLUpload uses:

function imagecreatefromjpeg() in /plupload/library/sp-plupload-components.php

and from http://php.net/manual/en/funct.....omjpeg.php

Note: JPEG support is only available if PHP was compiled against GD-1.8 or later

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Apr 29, 2012 - 5:25 am

Yes - that is my understanding as well.
I realise yours was a local install bit I believe that it is most rare these days for a hosting php install not to include gd.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Apr 29, 2012 - 6:33 pm

yeah, I found the same this weekend when working with plupload...  just didnt know it before...

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