Impossible to move () to albums/userpics/ ! Impossible to move () to albums/userpics/ !
 

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 () to albums/userpics/ !

Started by Tom Jacobsen, January 08, 2007, 11:43:45 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Tom Jacobsen

Version: 1.4.10
Site: www.sluttstykket.com/blinkskudd/


When I try to upload some images have this Critical Error message:
Impossible to move smileWeb.jpg to albums/userpics/ !
File: /home/sluttstykket/public_html/blinkskudd/db_input.php - Line: 355


Quote from: Debug InfoUSER:
------------------
Array
(
    [ID] => f6dfc6336904a9dfcd77ecad8b204f02
    [am] => 1
    [lang] => english
    [liv] => Array
        (
           
  • => 42
            )

    )

    ==========================
    USER DATA:
    ------------------
    Array
    (
        [user_id] => 2
        [user_name] => Tom Jacobsen
        [groups] => Array
            (
               
  • => 2
            )

        [disk_max] => 1024
        [disk_min] => 1024
        [can_rate_pictures] => 1
        [can_send_ecards] => 1
        [ufc_max] => 0
        [ufc_min] => 0
        [custom_user_upload] => 0
        [num_file_upload] => 1
        [num_URI_upload] => 1
        [can_post_comments] => 1
        [can_upload_pictures] => 1
        [can_create_albums] => 0
        [has_admin_access] => 0
        [pub_upl_need_approval] => 0
        [priv_upl_need_approval] => 0
        [group_name] => Registered
        [upload_form_config] => 0
        [group_quota] => 1024
        [can_see_all_albums] => 0
        [group_id] => 2
    )

    ==========================
    Queries:
    ------------------
    Array
    (
       
  • => SELECT extension, mime, content, player FROM cpg132_filetypes; (0s)
        [1] => select * from cpg132_plugins order by priority asc; (0s)
        [2] => delete from `sluttstykket`.cpg132_sessions where time<1168249181 and remember=0; (0.001s)
        [3] => delete from `sluttstykket`.cpg132_sessions where time<1167043181; (0s)
        [4] => select user_id from `sluttstykket`.cpg132_sessions where session_id=md5("6963273aaaa4dfd9fb6ca56668fb90ddd02efbb6395b4142940853c5a135f91d"); (0s)
        [5] => select user_id as id, user_password as password from `sluttstykket`.cpg132_users where user_id=2 (0s)
        [6] => SELECT u.user_id AS id, u.user_name AS username, u.user_password AS password, u.user_group+100 AS group_id FROM `sluttstykket`.cpg132_users AS u INNER JOIN `sluttstykket`.cpg132_usergroups AS g ON u.user_group=g.group_id WHERE u.user_id='2' (0s)
        [7] => SELECT user_group_list FROM `sluttstykket`.cpg132_users AS u WHERE user_id='2' and user_group_list <> ''; (0s)
        [8] => 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 cpg132_usergroups WHERE group_id in (2) (0s)
        [9] => SELECT group_name FROM  cpg132_usergroups WHERE group_id= 2 (0s)
        [10] => update `sluttstykket`.cpg132_sessions set time='1168252781' where session_id=md5('6963273aaaa4dfd9fb6ca56668fb90ddd02efbb6395b4142940853c5a135f91d'); (0s)
        [11] => SELECT user_favpics FROM cpg132_favpics WHERE user_id = 2 (0s)
        [12] => DELETE FROM cpg132_banned WHERE expiry < '2007-01-08 11:39:41' (0s)
        [13] => SELECT * FROM cpg132_banned WHERE (ip_addr='85.19.31.162' OR ip_addr='85.19.31.162' OR user_id=2) AND brute_force=0 (0s)
        [14] => SELECT category FROM cpg132_albums WHERE aid='13' and (uploads = 'YES' OR category = '10002') (0.001s)
    )

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

    ==========================
    POST :
    ------------------
    Array
    (
        [album] => 13
        [MAX_FILE_SIZE] => 1048576
        [title] => Smil
        [caption] =>
        [keywords] =>
        [event] => picture
    )

    ==========================
    Page generated in 0.188 seconds - 15 queries in 0.002 seconds - Album set : ; Meta set: ;

Tom Jacobsen

Some additional information.

It has been working fin before (version 1.3.XX) and I encounter this problem after my webhost upgrade his version of MySql 5.0.30. I tried to upgrade to 1.4.10 and this problem still appear.
http://www.sluttstykket.com/blinkskudd/info.php

Tom Jacobsen

Even more information.
QuoteUSER:
------------------
Array
(
    [ID] => f6dfc6336904a9dfcd77ecad8b204f02
    [am] => 1
    [lang] => english
    [liv] => Array
        (
           
  • => 42
            )

    )

    ==========================
    USER DATA:
    ------------------
    Array
    (
        [user_id] => 1
        [user_name] => tomjac
        [groups] => Array
            (
               
  • => 1
            )

        [disk_max] => 0
        [disk_min] => 0
        [can_rate_pictures] => 1
        [can_send_ecards] => 1
        [ufc_max] => 3
        [ufc_min] => 3
        [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] => 1
        [pub_upl_need_approval] => 0
        [priv_upl_need_approval] => 0
        [group_name] => Administrators
        [upload_form_config] => 3
        [group_quota] => 0
        [can_see_all_albums] => 1
        [group_id] => 1
    )

    ==========================
    Queries:
    ------------------
    Array
    (
       
  • => SELECT extension, mime, content, player FROM cpg132_filetypes; (0s)
        [1] => select * from cpg132_plugins order by priority asc; (0s)
        [2] => delete from `sluttstykket`.cpg132_sessions where time<1168249361 and remember=0; (0.001s)
        [3] => delete from `sluttstykket`.cpg132_sessions where time<1167043361; (0s)
        [4] => select user_id from `sluttstykket`.cpg132_sessions where session_id=md5("6963273aaaa4dfd9fb6ca56668fb90ddd02efbb6395b4142940853c5a135f91d"); (0s)
        [5] => select user_id as id, user_password as password from `sluttstykket`.cpg132_users where user_id=1 (0s)
        [6] => SELECT u.user_id AS id, u.user_name AS username, u.user_password AS password, u.user_group+100 AS group_id FROM `sluttstykket`.cpg132_users AS u INNER JOIN `sluttstykket`.cpg132_usergroups AS g ON u.user_group=g.group_id WHERE u.user_id='1' (0s)
        [7] => SELECT user_group_list FROM `sluttstykket`.cpg132_users AS u WHERE user_id='1' and user_group_list <> ''; (0s)
        [8] => 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 cpg132_usergroups WHERE group_id in (1) (0s)
        [9] => SELECT group_name FROM  cpg132_usergroups WHERE group_id= 1 (0s)
        [10] => update `sluttstykket`.cpg132_sessions set time='1168252961' where session_id=md5('6963273aaaa4dfd9fb6ca56668fb90ddd02efbb6395b4142940853c5a135f91d'); (0s)
        [11] => SELECT user_favpics FROM cpg132_favpics WHERE user_id = 1 (0s)
        [12] => DELETE FROM cpg132_banned WHERE expiry < '2007-01-08 11:42:41' (0s)
        [13] => SELECT * FROM cpg132_banned WHERE (ip_addr='85.19.31.162' OR ip_addr='85.19.31.162' OR user_id=1) AND brute_force=0 (0s)
        [14] => SELECT COUNT(*) FROM cpg132_pictures WHERE approved = 'NO' (0s)
        [15] => SELECT value FROM cpg132_config WHERE name = 'theme' (0s)
    )

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

    ==========================
    POST :
    ------------------
    Array
    (
    )

    ==========================
    VERSION INFO :
    ------------------
    PHP version: 4.4.4-8 - OK
    ------------------
    mySQL version: 5.0.30-Debian_2-log
    ------------------
    Coppermine version: 1.4.10(stable)
    ==========================
    Module: gd
    ------------------
    module doesn't exist
    ==========================
    Module: mysql
    ------------------
    MySQL Supportenabled
    Active Persistent Links 0
    Active Links 1
    Client API version 5.0.30
    MYSQL_MODULE_TYPE external
    MYSQL_SOCKET /var/run/mysqld/mysqld.sock
    MYSQL_INCLUDE -I/usr/include/mysql
    MYSQL_LIBS -L/usr/lib -lmysqlclient 
    ==========================
    Module: zlib
    ------------------
    ZLib Support enabled
    Compiled Version 1.2.1.1
    Linked Version 1.2.3
    ==========================
    Server restrictions (safe mode)?
    ------------------
    Directive | Local Value | Master Value
    safe_mode | Off | Off
    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/php:/usr/share/pear | .:/usr/share/php:/usr/share/pear
    open_basedir | /home/sluttstykket/public_html | 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 | 10M | 10M
    post_max_size | 16M | 16M
    ==========================
    Page generated in 0.14 seconds - 16 queries in 0.001 seconds - Album set : ; Meta set: ;

Joachim Müller

Do not post debug_output unless requested. Instead, do as suggested in the upload troubleshooting section of the docs.

Tom Jacobsen

Sorry for my incompetence.

I have now followed the "upload troubleshooting section" step by step and I have the same error message.
Quote from: Critical Error
Impossible to move smileWeb.jpg to albums/userpics/ !
File: /home/sluttstykket/public_html/blinkskudd/db_input.php - Line: 355

Permissions on the "albums" and "include" is set to 777.

Test user account: Test
Password on request.

Nibbler


Tom Jacobsen

The folder userpics and sub-folders have all chmod 777.

Tom Jacobsen

BTW.. After some investigation I did come across this.. The upload_tmp_dir is not set in the php.ini.. Could this cause problem like this??

Nibbler

Not necessarily. If it is not set in php.ini it will use the system's temp dir. Have you verified that uploading files works outside of Coppermine with a simple upload script?

Tom Jacobsen


Joachim Müller


Tom Jacobsen

Thanks..

I've have tried this http://www.hotscripts.com/Detailed/31396.html and I receive this error message: change permission to 777 failed.


The script is ready to run here: http://www.sluttstykket.com/upload/upload.php


Joachim Müller

You might consider to post what you actually did to solve your issue for the benefit of others - that's the point of a support board.

Tom Jacobsen

Quote from: Tom Jacobsen on January 09, 2007, 07:43:12 PM
BTW.. After some investigation I did come across this.. The upload_tmp_dir is not set in the php.ini.. Could this cause problem like this??
Quote from: Nibbler on January 09, 2007, 09:15:00 PM
Not necessarily. If it is not set in php.ini it will use the system's temp dir. Have you verified that uploading files works outside of Coppermine with a simple upload script?
It was the upload_tmp_dir that was not set in the php.ini.