PDA

View Full Version : error when uploading


Nito
October 11th, 2006, 02:36 AM
I get an error when uploading:
"Sorry, this image type () is not supported yet. "
i tried to upload a .jpg file?

it also looks like the file isn´t there:
Warning: copy(g:homejaktbilder.sewwwrootpp/data/500/Helge.jpg) [function.copy]: failed to open stream: No such file or directory in g:\home\jaktbilder.se\wwwroot\pp\uploadphoto.php on line 656

Warning: getimagesize(g:homejaktbilder.sewwwrootpp/data/500/Helge.jpg) [function.getimagesize]: failed to open stream: No such file or directory in g:\home\jaktbilder.se\wwwroot\pp\image-inc.php on line 247

Warning: getimagesize(g:homejaktbilder.sewwwrootpp/data/500/Helge.jpg) [function.getimagesize]: failed to open stream: No such file or directory in g:\home\jaktbilder.se\wwwroot\pp\image-inc.php on line 91

Chuck S
October 11th, 2006, 09:16 AM
In your global options in admin correct your uploads and data paths using forward slashes. Looks to me you used backslashes on install which can not be used with mysql hense they are removed.

Once you correct your global options then go to storage options and hit revert and save twice to load the new paths.

stevenskc
October 11th, 2006, 11:01 AM
Chuck, here's what I'm getting when I try to upload photo's:


Warning: copy() [function.copy]: SAFE MODE Restriction in effect. The script whose uid is 7666 is not allowed to access /misc/19/153/663/570/4/user/web/airbrushtech.net/AIRBRUSH/photogallery/data/502 owned by uid 48 in /misc/19/153/663/570/4/user/web/airbrushtech.net/AIRBRUSH/photogallery/uploadphoto.php on line 674

Warning: copy(/misc/19/153/663/570/4/user/web/airbrushtech.net/AIRBRUSH/photogallery/data/502/skc6.jpg) [function.copy]: failed to open stream: No such file or directory in /misc/19/153/663/570/4/user/web/airbrushtech.net/AIRBRUSH/photogallery/uploadphoto.php on line 674

Warning: getimagesize() [function.getimagesize]: Unable to access /misc/19/153/663/570/4/user/web/airbrushtech.net/AIRBRUSH/photogallery/data/502/skc6.jpg in /misc/19/153/663/570/4/user/web/airbrushtech.net/AIRBRUSH/photogallery/image-inc.php on line 247

Warning: getimagesize(/misc/19/153/663/570/4/user/web/airbrushtech.net/AIRBRUSH/photogallery/data/502/skc6.jpg) [function.getimagesize]: failed to open stream: No such file or directory in /misc/19/153/663/570/4/user/web/airbrushtech.net/AIRBRUSH/photogallery/image-inc.php on line 247

Warning: Division by zero in /misc/19/153/663/570/4/user/web/airbrushtech.net/AIRBRUSH/photogallery/image-inc.php on line 292

Warning: getimagesize() [function.getimagesize]: Unable to access /misc/19/153/663/570/4/user/web/airbrushtech.net/AIRBRUSH/photogallery/data/502/skc6.jpg in /misc/19/153/663/570/4/user/web/airbrushtech.net/AIRBRUSH/photogallery/image-inc.php on line 91

Warning: getimagesize(/misc/19/153/663/570/4/user/web/airbrushtech.net/AIRBRUSH/photogallery/data/502/skc6.jpg) [function.getimagesize]: failed to open stream: No such file or directory in /misc/19/153/663/570/4/user/web/airbrushtech.net/AIRBRUSH/photogallery/image-inc.php on line 91

Warning: unlink() [function.unlink]: SAFE MODE Restriction in effect. The script whose uid is 7666 is not allowed to access /misc/19/153/663/570/4/user/web/airbrushtech.net/AIRBRUSH/photogallery/data/502 owned by uid 48 in /misc/19/153/663/570/4/user/web/airbrushtech.net/AIRBRUSH/photogallery/image-inc.php on line 103


I contacted Bravenet (who by the way is absolutly no help at all) and they won't turn off safe mode. Is therer anyway to make this work.

Question #2: If this won't work, could Photopost be put on another sever (without vbulletins being on that server) but linked to vbulletins on the Bravenet server so they will work together. Or will I need to move my entire website. Which will be costly. I'm having to decide if keeping Photopost is worth the effort if I can't make this work.

Thanks

Chuck S
October 11th, 2006, 11:20 AM
If they will not turn off safe mode you need to move to a host that has safe mode off. You would need to move vbulletin as well.

GeneralAnders
October 12th, 2006, 03:17 PM
I'm having upload issues as well. I recently moved from a windows IIS server to linux and got the paths and SQL server working to the point of being able to view everything but uploading seems a problem now. In the above posts there are talks about safe mode- I wonder if that could be affecting me as well.

Anyway here are my error messages- any help or a point in the right direction would be very appreciated!

Warning: copy(/usr/www/users/lprocks/lp/gallery4/data577/learnmore2.jpg): failed to open stream: No such file or directory in /usr/www/users/lprocks/lp/gallery4/uploadphoto.php on line 509

Warning: getimagesize(/usr/www/users/lprocks/lp/gallery4/data577/learnmore2.jpg): failed to open stream: No such file or directory in /usr/www/users/lprocks/lp/gallery4/image-inc.php on line 214

Warning: copy(/usr/www/users/lprocks/lp/gallery4/data577/learnmore2.jpg): failed to open stream: No such file or directory in /usr/www/users/lprocks/lp/gallery4/image-inc.php on line 241

Warning: getimagesize(/usr/www/users/lprocks/lp/gallery4/data577/learnmore2.jpg): failed to open stream: No such file or directory in /usr/www/users/lprocks/lp/gallery4/image-inc.php on line 410

Warning: getimagesize(/usr/www/users/lprocks/lp/gallery4/data577/learnmore2.jpg): failed to open stream: No such file or directory in /usr/www/users/lprocks/lp/gallery4/image-inc.php on line 610

Warning: filesize(): Stat failed for /usr/www/users/lprocks/lp/gallery4/data577/learnmore2.jpg (errno=2 - No such file or directory) in /usr/www/users/lprocks/lp/gallery4/image-inc.php on line 618

Warning: fread(): supplied argument is not a valid stream resource in /usr/www/users/lprocks/lp/gallery4/image-inc.php on line 618

Chuck S
October 12th, 2006, 04:04 PM
Nope your data path is missing a trailing slash that it needs so update it in global options and then in storage options hit revert and save twice.

I am assuming your directory permissions are all set according

GeneralAnders
October 13th, 2006, 12:53 PM
Thanks for the help Chuck. It ended up being a permissions thing, and to compound the problem a few image categories had been added in the admin panel but since the "data" permissions were wrong it hadn't made folders for those categories.

Removed and re-added them after permissions were fixed and I'm good to go now!

Chuck S
October 13th, 2006, 12:58 PM
have a good weekend