Hi guys, nice to be here!
I just installed PhpWebGallery and when I'm trying to upload a picture (small one, just for test) I get a message says:
Warning: Unable to create '001.JPG': Permission denied in /home/virtual/site43/fst/var/www/html/gallery/upload.php on line 58
Warning: Unable to move '/tmp/phpYuW9A4' to '001.JPG' in /home/virtual/site43/fst/var/www/html/gallery/upload.php on line 58
Warning: Invalid argument supplied for foreach() in /home/virtual/site43/fst/var/www/html/gallery/include/functions_category.inc.php on line 395
I searched the forum data base and I found 2 simullar posts:
http://forum.phpwebgallery.net/viewtopic.php?id=2844
and
http://forum.phpwebgallery.net/viewtopic.php?id=928
but unfortunatelly I can't understand france language. Does anybody knows anything about this problem?? Any help is welcome.
Offline
Warning: Unable to create '001.JPG': Permission denied in /home/virtual/site43/fst/var/www/html/gallery/upload.php on line 58
this means the directory you're trying to upload a picture in is not writable. You need to change access rights on it (chmod 777)
Offline
Thanks very much for your answer. Do you mean the /galleries directory or another one?? By the way, as soon as I make (with your help of course) this script work, please accept my offer to translate it to greek language.
Best regards,
m
Offline
you need to make writable all directories under galleries directory
Offline
I see. But the problem is that there is no other directory in "galleries" and I allready chmoded "galleries" to 777 but this doesnt work.
Offline
mastergr wrote:
there is no other directory in "galleries"
So where are your pictures ?
Offline
There are no pictures, it is a new installation and when I tried to upload the first one the problem came up. I'm afraid of doing something wrong but I can not understand what could it be!... I'll try to do everything from the begining, by the book and I'll inform you for the results...
How did you create any physical category if you have no sub-directory under galleries?? Remember it is not possible to upload pictures on virtual categories (those created from adminisation page)
You need to create some physical categories first: for this add some sub-directories under galleries with you ftp client.
Sided-note: uploading photo with ftp client is much more efficient than uploading one by one with the web page interface :)
Thierry.
Offline
So, I think this is the problem. Can anyone please explain to me wich is the best way to upload some pictures? I.e. first create some directories, then upload, then go to the admin panel (?) and...
**
Also: in upload.php page there is this message
Warning: Invalid argument supplied for foreach()
in /home/virtual/site43/fst/var/www/html/gallery/include/functions_category.inc.php on line 395
You can find it here:
http://www.radiopontos.gr/gallery/upload.php
The line 395 (functions_category.inc.php) is this:
foreach ( $array_cat_names as $i => $name ) {
I can not understand what must I change on this.
Any help is veeery welcome!!
Thanks!!
Offline