Member
Member
advmedia   2007-03-29, 11:58
#1

when I try to upload a image, i get this error:

Warning: mkdir(/home/id1181/domains/advmedia.nl/public_html/school/hanenburcht/album/zenphoto/albums/123) [function.mkdir]: Permission denied in /home/id1181/domains/advmedia.nl/public_html/school/hanenburcht/album/zenphoto/zen/admin.php on line 106

Warning: move_uploaded_file(/home/id1181/domains/advmedia.nl/public_html/school/hanenburcht/album/zenphoto/albums/123/1.jpg) [function.move-uploaded-file]: failed to open stream: No such file or directory in /home/id1181/domains/advmedia.nl/public_html/school/hanenburcht/album/zenphoto/zen/admin.php on line 118

Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move '/tmp/php9cPkJP' to '/home/id1181/domains/advmedia.nl/public_html/school/hanenburcht/album/zenphoto/albums/123/1.jpg' in /home/id1181/domains/advmedia.nl/public_html/school/hanenburcht/album/zenphoto/zen/admin.php on line 118
MySQL Query ( INSERT INTO `(title`) VALUES ('123'); ) Failed. Error: Incorrect table name ''

plz can someone help me??

Developer
Developer
trisweb   2007-03-29, 16:55
#2

Your /albums folder needs to be writable by the server. You can change that in FTP by accessing the permissions options for the folder, usually by right-clicking it. Make sure it has all the permission boxes checked.

Or if you have SSH shell access, run chmod 777 albums from the zenphoto directory.

Also, check your zp-config.php to see if you have the correct database name, it looks like that's going to be a possible problem (unrelated to this one).

Member
Member
advmedia   2007-03-30, 11:16
#3

the db information is the same, checked it twice..

After chmodding 'albums', i got this error (probably the same):

Warning: move_uploaded_file() [function.move-uploaded-file]: SAFE MODE Restriction in effect. The script whose uid is 1007 is not allowed to access /home/id1181/domains/advmedia.nl/public_html/school/hanenburcht/album/zenphoto/albums/pand owned by uid 1001 in /home/id1181/domains/advmedia.nl/public_html/school/hanenburcht/album/zenphoto/zen/admin.php on line 118

Warning: Cannot modify header information - headers already sent by (output started at /home/id1181/domains/advmedia.nl/public_html/school/hanenburcht/album/zenphoto/zen/admin.php:118) in /home/id1181/domains/advmedia.nl/public_html/school/hanenburcht/album/zenphoto/zen/admin.php on line 133

Developer
Developer
trisweb   2007-03-30, 17:04
#4

Uploading is not supported under SAFE MODE, because safe mode does not allow a script to write to any directories that it creates itself, which is quite stupid.

I would ask your host to disable safe mode, and if they don't, I'd personally consider them not worth paying for. It's a crippled PHP installation you've got there.

That said, you can still upload just fine using FTP, but I'm not sure about your clients...

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.