Impossible to move Impossible to move
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Impossible to move

Started by caravans, August 18, 2005, 05:46:45 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

caravans

cpg 1.3.3

Search the forum and tried out different given solutions but still the problem is not solved.

Error:
Impossible to move picture.jpg to albums/userpics/10106/ !
File: /home/httpd/vhosts/mysite.com/httpdocs/db_input.php - Line: 267

Troubleshooting:
Checking PHP-config

upload_max_filesize: "20M"
checked

upload_tmp_dir: "no value"
checked
(note: the person who manage my webserver told me that "no value" is the default value and is equal tot "/tmp"

CHMOD:
album 777
album/edit 777
album/userpics 777
(all defined by psadn, not as root)

Did also the "rename "edit" to "edit_old" and create a new edit folder, CHMOD it as suggested and try again"


http://coppermine-gallery.net/tutorial/uploads/troubleshooting.php
checked and set config as told

Then made this loggin:
USER:
------------------
Array
(
    [ID] => bf678d16df5a39a6ffb16ba8d1be85d4
    [am] => 1
)

==========================
USER DATA:
------------------
Array
(
    [user_id] => 106
    [user_group] => 2
    [user_active] => YES
    [user_name] => xxxxxxx
    [user_password] => ********
    [user_lastvisit] => 2005-08-18 17:13:40
    [user_regdate] => 2005-08-18 17:11:08
    [user_group_list] =>
    [user_email] =>
    [user_website] =>
    [user_location] =>
    [user_interests] =>
    [user_occupation] =>
    [user_actkey] =>
    [user_favpics] =>
    [disk_max] => 3072
    [disk_min] => 3072
    [can_rate_pictures] => 1
    [can_send_ecards] => 0
    [ufc_max] => 0
    [ufc_min] => 0
    [custom_user_upload] => 0
    [num_file_upload] => 5
    [num_URI_upload] => 3
    [can_post_comments] => 1
    [can_upload_pictures] => 1
    [can_create_albums] => 1
    [has_admin_access] => 0
    [pub_upl_need_approval] => 0
    [priv_upl_need_approval] => 0
    [group_name] => Registered
    [upload_form_config] => 0
    [group_quota] => 3072
    [can_see_all_albums] => 0
    [group_id] => 2
    [groups] => Array
        (
            [1] => 2
        )

)

==========================
Queries:
------------------
Array
(
   
  • => SELECT extension, mime, content FROM cpg_filetypes;
        [1] => SELECT * FROM cpg_users WHERE user_id='106'AND user_active = 'YES' AND user_password != '' AND BINARY MD5(user_password) = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
        [2] => SELECT MAX(group_quota) as disk_max, MIN(group_quota) as disk_min, MAX(can_rate_pictures) as can_rate_pictures, MAX(can_send_ecards) as can_send_ecards, MAX(upload_form_config) as ufc_max, MIN(upload_form_config) as ufc_min, MAX(custom_user_upload) as custom_user_upload, MAX(num_file_upload) as num_file_upload, MAX(num_URI_upload) as num_URI_upload, MAX(can_post_comments) as can_post_comments, MAX(can_upload_pictures) as can_upload_pictures, MAX(can_create_albums) as can_create_albums, MAX(has_admin_access) as has_admin_access, MIN(pub_upl_need_approval) as pub_upl_need_approval, MIN( priv_upl_need_approval) as  priv_upl_need_approval FROM cpg_usergroups WHERE group_id in (2)
        [3] => SELECT group_name FROM  cpg_usergroups WHERE group_id= 2
        [4] => DELETE FROM cpg_banned WHERE expiry < '2005-08-18 17:15:23'
        [5] => SELECT * FROM cpg_banned WHERE ip_addr='xxx.xx.xx.xx' OR ip_addr='xxx.xx.xx.xx' OR user_id=106
        [6] => SELECT category FROM cpg_albums WHERE aid='178' and (uploads = 'YES' OR category = '10106')
    )

    ==========================
    GET :
    ------------------
    Array
    (
    )

    ==========================
    POST :
    ------------------
    Array
    (
        [album] => 178
        [MAX_FILE_SIZE] => 307200
        [title] => test
        [caption] => test
        [keywords] =>
        [event] => picture
    )

    ==========================
    Page generated in 0.076 seconds - 7 queries in 0.004 seconds - Album set : [/color]

Nibbler

Please post a link and test user account as requested in the tutorial.

caravans

#2
www.mysite.com*

user: guest
password: testuser

group: registered

*edited this because it's no more need to test.

caravans

Here is some extra info:

==========================
VERSION INFO :
------------------
PHP version: 4.3.10 - OK
------------------
mySQL version: 3.23.58
------------------
Coppermine version: 1.3.3
==========================
Module: gd
------------------
GD Support enabled
GD Version bundled (2.0.28 compatible)
FreeType Support enabled
FreeType Linkage with freetype
GIF Read Support enabled
GIF Create Support enabled
JPG Support enabled
PNG Support enabled
WBMP Support enabled
XBM Support enabled
==========================
Module: mysql
------------------
Active Persistent Links 0
Active Links 1
Client API version 3.23.58
MYSQL_MODULE_TYPE external
MYSQL_SOCKET /var/lib/mysql/mysql.sock
MYSQL_INCLUDE -I/usr/include/mysql
MYSQL_LIBS -L/usr/lib/mysql -lmysqlclient 
==========================
Module: zlib
------------------
ZLib Support enabled
Compiled Version 1.2.1.1
Linked Version 1.2.1.2
==========================
Server restrictions (safe mode)?
------------------
Directive | Local Value | Master Value
safe_mode | On | On
safe_mode_exec_dir | no value | no value
safe_mode_gid | Off | Off
safe_mode_include_dir | no value | no value
safe_mode_exec_dir | no value | no value
sql.safe_mode | Off | Off
disable_functions | no value | no value
file_uploads | On | On
include_path | .:/usr/share/pear | .:/usr/share/pear
open_basedir | /home/httpd/vhosts/caravanalbum.nl/httpdocs:/tmp | no value
==========================
email
------------------
Directive | Local Value | Master Value
sendmail_from | no value | no value
sendmail_path | /usr/sbin/sendmail -t -i | /usr/sbin/sendmail -t -i
SMTP | localhost | localhost
smtp_port | 25 | 25
==========================
Size and Time
------------------
Directive | Local Value | Master Value
max_execution_time | 30 | 30
max_input_time | 60 | 60
upload_max_filesize | 20M | 20M
post_max_size | 8M | 8M
==========================
Page generated in 0.068 seconds - 14 queries in 0.007 seconds - Album set : AND aid IN (-1)

Joachim Müller

@supporters: Confirming error on upload with known-good file and all settings as requested in the tutorial.
@caravans: Did you try CHMODing to 755 instead of 777?

caravans

Set CHMOD to 755

albums
albums/edit
albums/userpics
include

No changes, error keeps the same.
Changed CHMOD back to 777

More troubleshooting

Find out that users after a certain date (9 june) cannot upload. Users that are registered before that date don't access "the impossibele to upload" problem. Upload works fine for them. After 9 june there was a servermigration (from dedicated server tot dedicated server). Is there a problem in serversettings (PHP-config) as not discussed sofar?

Note: when I entered the problem just some days ago, cpg 1.3.2. was installed. First I did a upgrade to 1.3.3., according to the instructions in the online documentation.

Joachim Müller

OK, let's make sure then that your file versions are OK. Use versioncheck.php to verify you have replaced all cpg1.3.2 files with the ones from cpg1.3.3 and report back.

caravans

#7
Versioninfo:

You have currently installed: 1.3.3

CHECKBOXES = CHECKED
show optional folders/files
show mandatory files
show additional information
show file versions
show folders/files with errors only
coppermine is installed in the webroot
show folder permissions

SUMMARY
Total files/folders checked:      228
Mandatory files missing:    0
Optional files missing:    48
*Files left over from outdated Coppermine version:    1
Outdated file versions:    0


*anycontent.php   1.3.2  ?    1.3.3

Optinal missing files = not installed themes

Note:
albums
albums/edit
albums/userpics
include/

are all reported writable

Joachim Müller

hm, not sure what to recommend... Anyone else has got an idea?

Serapis

Quote from: caravans on August 18, 2005, 05:46:45 PM
Did also the "rename "edit" to "edit_old" and create a new edit folder, CHMOD it as suggested and try again"

I tested the upload with a known good file and got the same error message.

One suggestion would be to to the same from the quote with Ur userpics folder, since the errror message appears there.
Rename your 'userpics' to e.g. 'userpics_old', copy the content of 'userpics_old' to 'userpics'.
If this does not work, then move on to the subfolders and do the same procedure. ALways doublecheck the permissions of  the newly created files and folders.

At least it helped my with a different problem, where no solution was in sight !


Serapis
Nostradamus is nothing compared to George Orwell ...

caravans

After renaming the latest userpics folder en created a new one with CHMOD 777 upload did work for that folder/user!

Did it again on another "problem" folder and the result was the same: upload did work.

But... After creating a new user the problem is back :(

It is no option to edit the userpics folder everytime a new user registers.

What next? 

Serapis

Hmm, that sounds familiar to me and I didn't find rhe reason yet.
I doubt it is sth. regarding to coppermine, since it seems to be a issue of access rights.
It could helo to ask Ur hoster to CHOWN the 'root' folder for you. wiht root I mean the homefolder of Urs and all subdirectories.
That may help. At least I hope so :/

Serapis
Nostradamus is nothing compared to George Orwell ...

caravans

#12
CHOWN did reset all folders to the correct user:mysite and group:psadn.

After a new user has registered, accessrights (userfolder) are set to  user:apache and group:apache
The upload problem is back for that specific userfolder.

What next?

Joachim Müller

then everything should be owned by apache. This is a matter of improper server setup, ask your webhost for support.

caravans

#14
It's clear now. I'll just have done a request to change the serversetup, according to your suggestion.

Just received feedback that serversetup has been changed.

Everything is working fine now!

Thankz for helping me out to capture the source of the problem.

Topic closed