Author Topic: Error While Uploading  (Read 12086 times)

0 Members and 1 Guest are viewing this topic.

Offline jacksonuk

  • Pre-Newbie
  • Posts: 6
    • View Profile
Error While Uploading
« on: August 05, 2002, 01:07:26 AM »
Hi, when i try to upload an image to the script it says this:

Warning: SAFE MODE Restriction in effect. The script whose uid is 27904 is not allowed to access /mnt/host-users/ffviisite/4images/data/media/2 owned by uid 99 in /mnt/host-users/ffviisite/4images/includes/upload.php on line 111
Image 1  
  Error uploading image file: 7-barret-a.jpg
7-barret-a.jpg: Copy error. Please check the directory permissions.

No database entry!
 
 
 (where 7-barret-a.jpg is the picture) i have checked all directory CHMODs and they are all correct, what could be causing this?

Thanks :?

Offline Jan

  • Administrator
  • 4images Guru
  • *****
  • Posts: 5.024
    • View Profile
    • 4images - Image Gallery Management System
Error While Uploading
« Reply #1 on: August 05, 2002, 09:26:01 AM »
Strange...normally Safe Mode has no effect on the function move_uploded_file() which is used to copy the file to the category folder. Did you changed anything in the script? Which PHP version are you running?

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

Offline jacksonuk

  • Pre-Newbie
  • Posts: 6
    • View Profile
Error While Uploading
« Reply #2 on: August 05, 2002, 07:10:46 PM »
I don't think I changed anything, atleast not to MY knowledge. If you mean what PHP is my server running, it's PHP 4 and if you mean the script version it's 1.61. Do you suggest I re-try uploading the script of something?

Offline Jan

  • Administrator
  • 4images Guru
  • *****
  • Posts: 5.024
    • View Profile
    • 4images - Image Gallery Management System
Error While Uploading
« Reply #3 on: August 05, 2002, 08:08:28 PM »
I have to know the exact version number of PHP, not the 4images version.

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

Offline jacksonuk

  • Pre-Newbie
  • Posts: 6
    • View Profile
Error While Uploading
« Reply #4 on: August 05, 2002, 10:06:05 PM »
Yes certainly,

PHP Version 4.2.1

Build Date Jul 2 2002 14:04:13


That's the info I found at the hosting site. Is it any help?

 :?

Thanks!
 :)

Offline Jan

  • Administrator
  • 4images Guru
  • *****
  • Posts: 5.024
    • View Profile
    • 4images - Image Gallery Management System
Error While Uploading
« Reply #5 on: August 05, 2002, 10:18:30 PM »
Ok, thats a little bi strange. Safe Mode is enabled on your server, normally this should not have any to move_uploaded_file(). But in your case it seems that it does.

Try to upload the images via FTP to your category directories and add them with "check new images".
Jan
Your first three "must do" before you ask a question:
1. Forum rules
2. FAQ
3. Search

Offline jacksonuk

  • Pre-Newbie
  • Posts: 6
    • View Profile
Error While Uploading
« Reply #6 on: August 05, 2002, 10:51:46 PM »
Ok, i did that but now all i get is:

Warning: Unable to create './../data/media/1/barret.jpg': No such file or directory in /mnt/host-users/ffviisite/4images/admin/admin_functions.php on line 110

Warning: Unable to create './../data/thumbnails/1/.jpg': No such file or directory in /mnt/host-users/ffviisite/4images/admin/admin_functions.php on line 154

And the picture doesn't upload. Am I going to have to add them by URL, cause I did that with 2 other pictures and it worked...hmm :?:  :?  :(

Offline Jan

  • Administrator
  • 4images Guru
  • *****
  • Posts: 5.024
    • View Profile
    • 4images - Image Gallery Management System
Error While Uploading
« Reply #7 on: August 06, 2002, 08:06:22 AM »
Did you uploaded the images directly to the categorie folder? This should be data/media/1

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

Offline jacksonuk

  • Pre-Newbie
  • Posts: 6
    • View Profile
Error While Uploading
« Reply #8 on: August 07, 2002, 07:45:03 PM »
Hi,
   I made a directory in both media and thumbnails called "1" and CHMOD'd it to writeable etc and now everything works! It lets me upload files etc, thanks for all your help!  :D Great script  :!:

Offline snafumaster

  • Pre-Newbie
  • Posts: 1
    • View Profile
Re: Error While Uploading
« Reply #9 on: June 12, 2005, 03:14:00 PM »
I'm using an IIS 6.0 machine and I can't chmod (obviously).  However; adding a directory named "1" to the media and thumbnail directories with liberal permissions solved this problem for me.

Thanks,
Matty