4images Forum & Community

4images Issues / Ausgaben => Installation, Update & Configuration => Topic started by: Sammy2002 on May 09, 2002, 09:45:41 AM

Title: No Such File
Post by: Sammy2002 on May 09, 2002, 09:45:41 AM
Hallo,

I wonder why i get this error when ever i try to upload a picture
Code: [Select]
Warning: Unable to create './data/media/1/logo.gif': No such file or directory in /home/www/public_html/4images/includes/upload.php on line 121



in line 121 there is this code here
Code: [Select]
$this->file_name = $this->name.$copy.".".$this->extension;
      $ok = move_uploaded_file($this->upload_file, $this->upload_path[$this->image_type]."/".$this->file_name);


I have tried to change the permissions but it didnt work  :!:

What can you advice me to do?
Title: No Such File
Post by: Jan on May 09, 2002, 09:47:40 AM
Are you sure that folder "1" exists?

Jan
Title: No Such File
Post by: Sammy2002 on May 09, 2002, 09:52:42 AM
yes, its under includes?
Title: No Such File
Post by: Jan on May 09, 2002, 09:57:20 AM
Warning: Unable to create './data/media/1/logo.gif': No such file or directory

Check this path. If you add categories, the programm will create a folder in "data/media" and "data/thumbnails" with the ID of the category as name. The required foldes should be created for the first category with ID 1. If not, create it and chmod 777.

Jan
Title: No Such File
Post by: Sammy2002 on May 09, 2002, 11:14:17 AM
The script doesnt want to create any files under media, i wounder why? so i had to do it manually, but the other problem is i get this now
Code: [Select]
DB Error: Bad SQL Query: INSERT INTO 4images_images (cat_id, user_id, image_name, image_description, image_keywords, image_date, image_media_file, image_thumb_file, image_download_url) VALUES (, , '', '', '', 1020930990, '4.', '', '')
You have an error in your SQL syntax near ' , '', '', '', 1020930990, '4.', '', '')' at line 4
Fehler beim Hinzufügen des Bildes: (4.)
Bild erfolgreich hinzugefügt: dsfdsf (logo1.gif)


I wonder why is that?


Suggestion, postmessage isnt included in the english version, so i had to move it from the german files to the english files.

How can i make the ligh box work?
Title: No Such File
Post by: fajt on May 12, 2002, 08:48:41 PM
are you sure that your webhost supports PHP Upload ?
I got the same problem with Tripod (se) and the reason was that tripod aint supporting php upload ....
Title: No Such File
Post by: Sammy2002 on May 12, 2002, 09:23:45 PM
I have many other scripts in my server and they are working fine, I tried it in too different servers, but i am haivng problems.

My webhost is a good one, his website addresse is www.webleben.com.
Title: No Such File
Post by: Jan on May 13, 2002, 08:49:00 AM
Hi,

I tried to upload images, no problem! Take a look at your gallery!

Greets Jan
Title: No Such File
Post by: Sammy2002 on May 13, 2002, 10:50:59 AM
Ich bin da gewesen und ich hab den hier gefunden

Warning: SAFE MODE Restriction in effect. The script whose uid is 663 is not allowed to access ./data/media/1/Palme.jpg owned by uid 30 in /home/www/web16/html/4images/includes/functions.php on line 284

Warning: getimagesize: Unable to open './data/media/1/Palme.jpg' for reading. in /home/www/web16/html/4images/includes/functions.php on line 284

Warning: SAFE MODE Restriction in effect. The script whose uid is 663 is not allowed to access ./data/media/1/Palme.jpg owned by uid 30 in /home/www/web16/html/4images/includes/functions.php on line 284

Warning: getimagesize: Unable to open './data/media/1/Palme.jpg' for reading. in /home/www/web16/html/4images/includes/functions.php on line 284

Warning: SAFE MODE Restriction in effect. The script whose uid is 663 is not allowed to access ./data/media/1/Tulpe.jpg owned by uid 30 in /home/www/web16/html/4images/includes/functions.php on line 284

Warning: getimagesize: Unable to open './data/media/1/Tulpe.jpg' for reading. in /home/www/web16/html/4images/includes/functions.php on line 284
Title: No Such File
Post by: Jan on May 13, 2002, 11:14:15 AM
See: http://www.4homepages.de/forum/viewtopic.php?p=1295#1295

Greets Jan