Author Topic: Error uploading image file  (Read 10619 times)

0 Members and 1 Guest are viewing this topic.

Offline DJ-Tisho

  • Newbie
  • *
  • Posts: 16
    • View Profile
Error uploading image file
« on: September 24, 2005, 09:57:11 AM »
When I install the gallery, and try to upload some file, the error message was:
"Error uploading image file"
URL is: http://dj-tisho.marvin.zavinagi.com/4images/
User: test
pass: test

And this is the permmisions of the Gallery:
/4images~$ ls -l
total 232
-rw-rw-rw-  1 dj-tisho wwwall  1669 Oct 14  2004 Readme.txt
drwxrwxrwx  4 dj-tisho wwwall  4096 Oct 14  2004 admin
drwxrwxrwx  2 dj-tisho wwwall    22 Oct 14  2004 cache
-rw-rw-rw-  1 dj-tisho wwwall  8003 Oct 13  2004 categories.php
-rw-r--r--  1 dj-tisho wwwall  1861 Sep 23 15:29 config.php
drwxrwxrwx  7 dj-tisho wwwall    87 Oct 14  2004 data
-rw-rw-rw-  1 dj-tisho wwwall 26784 Aug 31  2004 details.php
drwxrwxrwx  2 dj-tisho wwwall  4096 Oct 20  2004 docs
-rw-rw-rw-  1 dj-tisho wwwall 10466 Nov 30  2004 download.php
-rw-rw-rw-  1 dj-tisho wwwall 11991 Oct 13  2004 global.php
drwxrwxrwx  2 dj-tisho wwwall  4096 Oct 14  2004 includes
-rw-rw-rw-  1 dj-tisho wwwall  7103 Oct 13  2004 index.php
drwxrwxrwx  4 dj-tisho wwwall    34 Oct 14  2004 lang
-rw-rw-rw-  1 dj-tisho wwwall  7465 Aug 31  2004 lightbox.php
-rw-rw-rw-  1 dj-tisho wwwall  2956 Aug 30  2004 login.php
-rw-rw-rw-  1 dj-tisho wwwall  2143 Aug 30  2004 logout.php
-rw-rw-rw-  1 dj-tisho wwwall 58804 Oct 13  2004 member.php
-rw-rw-rw-  1 dj-tisho wwwall 14942 Aug 30  2004 postcards.php
-rw-rw-rw-  1 dj-tisho wwwall 15834 Aug 30  2004 register.php
-rw-rw-rw-  1 dj-tisho wwwall 14486 Oct 11  2004 search.php
drwxrwxrwx  8 dj-tisho wwwall   115 Sep 23 19:40 templates
-rw-rw-rw-  1 dj-tisho wwwall 14140 Oct 13  2004 top.php

WHAT IS THE PROBLEM ?!

Offline Acidgod

  • Moderator
  • 4images Guru
  • *****
  • Posts: 2.421
  • It's me?
    • View Profile
    • Flash-Webdesign
Re: Error uploading image file
« Reply #1 on: September 24, 2005, 10:24:17 AM »
And the Subfolder Permissions ?

Offline DJ-Tisho

  • Newbie
  • *
  • Posts: 16
    • View Profile
Re: Error uploading image file
« Reply #2 on: September 24, 2005, 10:48:20 AM »
For witch subfolders exactly want to see permmisions ?

Offline Acidgod

  • Moderator
  • 4images Guru
  • *****
  • Posts: 2.421
  • It's me?
    • View Profile
    • Flash-Webdesign
Re: Error uploading image file
« Reply #3 on: September 24, 2005, 10:50:06 AM »
all in /data/


Quote
  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"

Offline DJ-Tisho

  • Newbie
  • *
  • Posts: 16
    • View Profile
Re: Error uploading image file
« Reply #4 on: September 24, 2005, 10:57:59 AM »
/4images/data]~$ ls -l
total 0
drwxrwxrwx  3 dj-tisho users 36 Oct 14  2004 database
drwxrwxrwx  2 dj-tisho users 23 Oct 14  2004 media
drwxrwxrwx  2 dj-tisho users 23 Oct 14  2004 thumbnails
drwxrwxrwx  2 dj-tisho users 23 Oct 14  2004 tmp_media
drwxrwxrwx  2 dj-tisho users 23 Oct 14  2004 tmp_thumbnails

The problem is somewhere else...... :(

Offline Acidgod

  • Moderator
  • 4images Guru
  • *****
  • Posts: 2.421
  • It's me?
    • View Profile
    • Flash-Webdesign
Re: Error uploading image file
« Reply #5 on: September 24, 2005, 11:12:47 AM »
is the owner of the folders the same or have the script owner permissions to the folders?

Offline DJ-Tisho

  • Newbie
  • *
  • Posts: 16
    • View Profile
Re: Error uploading image file
« Reply #6 on: September 24, 2005, 11:19:33 AM »
/4images/data]~$ ls -la
total 4
drwxrwxrwx  7 dj-tisho wwwall   87 Oct 14  2004 .
drwxr-sr-x  9 dj-tisho wwwall 4096 Sep 24 10:46 ..
drwxrwxrwx  3 dj-tisho users    36 Oct 14  2004 database
drwxrwxrwx  2 dj-tisho users    23 Oct 14  2004 media
drwxrwxrwx  2 dj-tisho users    23 Oct 14  2004 thumbnails
drwxrwxrwx  2 dj-tisho users    23 Oct 14  2004 tmp_media
drwxrwxrwx  2 dj-tisho users    23 Oct 14  2004 tmp_thumbnails

Hmmmmm I think this is the problem, but:
/4images]~$ chown dj-tisho.wwwall data/
chown: changing ownership of `data/': Operation not permitted

And another ugly situation is here:
http://dj-tisho.marvin.zavinagi.com/4images/member.php?action=uploadform
(UPLOAD) page

How can I fix It ?

Offline Acidgod

  • Moderator
  • 4images Guru
  • *****
  • Posts: 2.421
  • It's me?
    • View Profile
    • Flash-Webdesign
Re: Error uploading image file
« Reply #7 on: September 24, 2005, 11:33:48 AM »
you meen the layout problem?

i think the member_uploadform.html has not enough width give the table 100% width...

Offline DJ-Tisho

  • Newbie
  • *
  • Posts: 16
    • View Profile
Re: Error uploading image file
« Reply #8 on: September 24, 2005, 11:40:38 AM »
member_uploadform.html
Code: [Select]
<form method="post" action="{url_member}" enctype="multipart/form-data" onsubmit="uploadbutton.disabled=true;">
  <input type="hidden" name="action" value="uploadimage" />
  <input type="hidden" name="cat_id" value="{cat_id}" />
  <table width="100%" border="0" cellspacing="0" cellpadding="1">
    <tr>
      <td valign="top" class="head1">
        <table width="100%" border="0" cellpadding="4" cellspacing="0">
          <tr>
            <td colspan="2" valign="top" class="head1">{lang_user_upload}</td>
          </tr>
          <tr>
            <td class="row1"><b>{lang_category}</b></td>
            <td class="row1">{cat_name}</td>
          </tr>

The History:
Before few days, my 4images gallery was been hacked, and everything was been deleted, but exception MySQL databse...
And now I start new 4images 1.7.1 gallery with old database and users.
The template is from mantra, but why formating of the new template on the new installed site is so bad !?

Offline Acidgod

  • Moderator
  • 4images Guru
  • *****
  • Posts: 2.421
  • It's me?
    • View Profile
    • Flash-Webdesign
Re: Error uploading image file
« Reply #9 on: September 24, 2005, 11:54:47 AM »
for the future make backups with cron...

                  <table width="100%" border="5" cellpadding="0" cellspacing="0">
                    <tr>
                      <td width="37" class="sambakiri"><img src="./templates/4images_dark/images/spacer.gif" alt="" width="37" height="19" /></td>
                      <td width="100%"><br>
                      </td>
                      <td width="19" rowspan="2"><img src="./templates/4images_dark/images/spacer.gif" alt="" width="19" height="19" /></td>
                      <td width="100%" height="113" valign="top">&nbsp;</td>
                    </tr>
                    <tr>
                      <td valign="top">&nbsp;</td>
                    </tr>
                  </table>

this table make the problems i think...

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: Error uploading image file
« Reply #10 on: September 24, 2005, 05:44:12 PM »
1) your server does not allow upload
2) the temp folder for upload files (in php.ini) is not set properly/does not exists.

contact your hoster.
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)