Author Topic: error in php 5  (Read 4046 times)

0 Members and 1 Guest are viewing this topic.

Offline laurica

  • Newbie
  • *
  • Posts: 17
    • View Profile
error in php 5
« on: January 09, 2007, 03:57:30 PM »
hi,

i've jus updated to 1.7.4, but i still get an error when i try to upload, here it is :

Warning: move_uploaded_file(./data/media/15/untitled.JPG) [function.move-uploaded-file]: failed to open stream: Permission denied in /home/acvarist/public_html/4images/includes/upload.php on line 113

Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move '/tmp/phpQqfgoL' to './data/media/15/untitled.JPG' in /home/acvarist/public_html/4images/includes/upload.php on line 113


i also get an error when i try to make a new category, here it is:

Warning: mkdir() [function.mkdir]: Permission denied in /home/acvarist/public_html/4images/admin/categories.php on line 84

Warning: mkdir() [function.mkdir]: Permission denied in /home/acvarist/public_html/4images/admin/categories.php on line 87

Warning: mkdir() [function.mkdir]: Permission denied in /home/acvarist/public_html/4images/admin/categories.php on line 84

Warning: mkdir() [function.mkdir]: Permission denied in /home/acvarist/public_html/4images/admin/categories.php on line 87

Warning: Cannot modify header information - headers already sent by (output started at /home/acvarist/public_html/4images/admin/categories.php:84) in /home/acvarist/public_html/4images/includes/functions.php on line 114



also when i delete a category:

Category deleted test (ID: 96)
-» Image deleted

Warning: unlink(./../data/media/96) [function.unlink]: No such file or directory in /home/acvarist/public_html/photo/admin/categories.php on line 107

Warning: unlink(./../data/thumbnails/96) [function.unlink]: No such file or directory in /home/acvarist/public_html/photo/admin/categories.php on line 107
-» Comments deleted

here's the url: http://www.acvarist.ro/photo

can i do anything?
any idea is welcome, thanks


Offline Acidgod

  • Moderator
  • 4images Guru
  • *****
  • Posts: 2.421
  • It's me?
    • View Profile
    • Flash-Webdesign
Re: error in php 5
« Reply #1 on: January 09, 2007, 05:36:50 PM »
i think you must chmod the folders...

Code: [Select]
  5. Set permissions for the following directories:

     chmod 777 (drwxrwxrwx) : data
     chmod 777 (drwxrwxrwx) : data/database
     chmod 777 (drwxrwxrwx) : data/media
     chmod 777 (drwxrwxrwx) : data/thumbnails
     chmod 777 (drwxrwxrwx) : data/tmp_media
     chmod 777 (drwxrwxrwx) : data/tmp_thumbnails
     chmod 777 (drwxrwxrwx) : templates
     chmod 777 (drwxrwxrwx) : templates/default
     chmod 777 (drwxrwxrwx) : templates/default/media

     Set permissions for the following files:

     chmod 666 (-rw-rw-rw-) : all files in the directory "templates/default"
     chmod 666 (-rw-rw-rw-) : all files in the directory "templates/default/media"

     You can do this with FTP programs such as CuteFTP or WS_FTP.

Offline laurica

  • Newbie
  • *
  • Posts: 17
    • View Profile
Re: error in php 5
« Reply #2 on: January 10, 2007, 01:46:32 PM »
ok that solved it a little, but there is one more error (as i see now)


Warning: imagejpeg() [function.imagejpeg]: Unable to open './data/tmp_thumbnails/pic__07.jpg' for writing in /home/acvarist/public_html/photo/includes/image_utils.php on line 88

the upload is made, but i can't see the files from tmp_thumbnails, the folder is 777 but i guess the images don't get the right permission (i have no idea why)