Announcement

#1 2005-02-20 17:15:03

mastergr
Member
2005-02-20
4

line 395 problem

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

 

#2 2005-02-20 18:34:06

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13791

Re: line 395 problem

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

 

#3 2005-02-22 21:22:26

mastergr
Member
2005-02-20
4

Re: line 395 problem

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

 

#4 2005-02-22 23:52:03

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13791

Re: line 395 problem

you need to make writable all directories under galleries directory

Offline

 

#5 2005-02-24 21:05:36

mastergr
Member
2005-02-20
4

Re: line 395 problem

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

 

#6 2005-02-24 21:23:59

Sephi
Former Piwigo Team
Suisse
2004-11-28
430

Re: line 395 problem

mastergr wrote:

there is no other directory in "galleries"

So where are your pictures ?

Offline

 

#7 2005-02-25 10:25:33

master_gr
Guest

Re: line 395 problem

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...

 

#8 2005-02-25 14:59:01

tlegras
Member
2005-02-02
177

Re: line 395 problem

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

 

#9 2005-02-26 20:21:26

mastergr
Member
2005-02-20
4

Re: line 395 problem

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

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact