Author Topic: No Such File  (Read 8697 times)

0 Members and 1 Guest are viewing this topic.

Offline Sammy2002

  • Newbie
  • *
  • Posts: 18
    • View Profile
    • http://www.webleben.com
No Such File
« 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?

Offline Jan

  • Administrator
  • 4images Guru
  • *****
  • Posts: 5.024
    • View Profile
    • 4images - Image Gallery Management System
No Such File
« Reply #1 on: May 09, 2002, 09:47:40 AM »
Are you sure that folder "1" exists?

Jan
Your first three "must do" before you ask a question:
1. Forum rules
2. FAQ
3. Search

Offline Sammy2002

  • Newbie
  • *
  • Posts: 18
    • View Profile
    • http://www.webleben.com
No Such File
« Reply #2 on: May 09, 2002, 09:52:42 AM »
yes, its under includes?

Offline Jan

  • Administrator
  • 4images Guru
  • *****
  • Posts: 5.024
    • View Profile
    • 4images - Image Gallery Management System
No Such File
« Reply #3 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
Your first three "must do" before you ask a question:
1. Forum rules
2. FAQ
3. Search

Offline Sammy2002

  • Newbie
  • *
  • Posts: 18
    • View Profile
    • http://www.webleben.com
No Such File
« Reply #4 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?

Offline fajt

  • Pre-Newbie
  • Posts: 3
    • View Profile
No Such File
« Reply #5 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 ....

Offline Sammy2002

  • Newbie
  • *
  • Posts: 18
    • View Profile
    • http://www.webleben.com
No Such File
« Reply #6 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.

Offline Jan

  • Administrator
  • 4images Guru
  • *****
  • Posts: 5.024
    • View Profile
    • 4images - Image Gallery Management System
No Such File
« Reply #7 on: May 13, 2002, 08:49:00 AM »
Hi,

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

Greets Jan
Your first three "must do" before you ask a question:
1. Forum rules
2. FAQ
3. Search

Offline Sammy2002

  • Newbie
  • *
  • Posts: 18
    • View Profile
    • http://www.webleben.com
No Such File
« Reply #8 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

Offline Jan

  • Administrator
  • 4images Guru
  • *****
  • Posts: 5.024
    • View Profile
    • 4images - Image Gallery Management System
No Such File
« Reply #9 on: May 13, 2002, 11:14:15 AM »
Your first three "must do" before you ask a question:
1. Forum rules
2. FAQ
3. Search