Movie and file upload is not working right Movie and file upload is not working right
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Movie and file upload is not working right

Started by duca, July 30, 2004, 10:42:05 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

duca

hi there
I am using cpg 1.3.1 everything is working fine with picture upload. But now i am trying to make a movie and file gallery.
I Uploaded via FTP different files( movies, html, and others) and there is no way i got a thumbnail picture. is it a possible bug, because i updated from 1.2.1 to 1.3.1? do i have to make i new install of the gallery?
the link to the gallery: http://dcmpictures.com/cgallery
under virtual reality

here the bugreport

USER:
------------------
Array
(
    [ID] => 4c301010392d51b03538077788f40f48
    [am] => 1
    [liv] => Array
        (
           
  • => 13
                [1] => 14
                [2] => 17
                [3] => 82
                [4] => 230
            )

    )

    ==========================
    USER DATA:
    ------------------
    Array
    (
        [user_id] => 1
        [user_group] => 1
        [user_active] => YES
        [user_name] => ++++
        [user_password] =>++++++
        [user_lastvisit] => 2004-07-30 10:39:03
        [user_regdate] => 2004-07-13 14:18:15
        [user_group_list] => 3,4,2
        [user_email] =>
        [user_website] =>
        [user_location] =>
        [user_interests] =>
        [user_occupation] =>
        [user_actkey] =>
        [user_favpics] =>
        [disk_max] => 3096
        [disk_min] => 0
        [can_rate_pictures] => 1
        [can_send_ecards] => 1
        [ufc_max] => 3
        [ufc_min] => 3
        [custom_user_upload] => 1
        [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
        [groups] => Array
            (
               
  • => 3
                [1] => 4
                [2] => 2
                [3] => 1
            )

    )

    ==========================
    Queries:
    ------------------
    Array
    (
       
  • => SELECT extension, mime, content FROM cpg11d_filetypes;
        [1] => SELECT * FROM cpg11d_users WHERE user_id='1'AND user_active = 'YES' AND user_password != '' AND BINARY MD5(user_password) = '6537a91d878c9cb0a6c362c61df95c17'
        [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 cpg11d_usergroups WHERE group_id in (3,4,2,1)
        [3] => SELECT group_name FROM  cpg11d_usergroups WHERE group_id= 1
        [4] => DELETE FROM cpg11d_banned WHERE expiry < 1091176787
        [5] => SELECT * FROM cpg11d_banned WHERE ip_addr='62.2.255.16' OR ip_addr='62.2.255.16' OR user_id=1
        [6] => SELECT category, title, aid, keyword, description FROM cpg11d_albums WHERE aid='13'
        [7] => SELECT name, parent FROM cpg11d_categories WHERE cid = '6'
        [8] => SELECT title,keyword from cpg11d_albums WHERE aid='13'
        [9] => SELECT COUNT(*) from cpg11d_pictures WHERE aid='13'   
        [10] => SELECT pid, filepath, filename, url_prefix, filesize, pwidth, pheight, ctime, aid, title, caption,hits,owner_id,owner_name from cpg11d_pictures WHERE aid='13'    ORDER BY filename ASC  LIMIT 0 ,4
    )

    ==========================
    GET :
    ------------------
    Array
    (
        [album] => 13
    )

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

    ==========================
    VERSION INFO :
    ------------------
    PHP version: 4.2.3 - OK
    ------------------
    mySQL version: 3.23.53a
    ------------------
    Coppermine version: 1.3.1
    ==========================
    Module: gd
    ------------------
    module doesn't exist
    ==========================
    Module: mysql
    ------------------
    module doesn't exist
    ==========================
    Module: zlib
    ------------------
    module doesn't exist
    ==========================
    Server restrictions (safe mode)?
    ------------------
    Directive | Local Value | Master Value
    safe_mode | On | On
    safe_mode_exec_dir | /data/kunde/php_safe_bin/ | /data/kunde/php_safe_bin/
    safe_mode_gid | On | On
    safe_mode_include_dir | no value | no value
    safe_mode_exec_dir | /data/kunde/php_safe_bin/ | /data/kunde/php_safe_bin/
    sql.safe_mode | Off | Off
    disable_functions | no value | no value
    file_uploads | 1 | 1
    include_path | .:/usr/local/lib/php | .:/usr/local/lib/php
    open_basedir | no value | no value
    ==========================
    email
    ------------------
    Directive | Local Value | Master Value
    sendmail_from | postmaster@mail-mx.ip-tech.ch | postmaster@mail-mx.ip-tech.ch
    sendmail_path | /var/qmail/bin/sendmail_php | /var/qmail/bin/sendmail_php
    SMTP | localhost | localhost |  |
    ==========================
    Size and Time
    ------------------
    Directive | Local Value | Master Value
    max_execution_time | 30 | 30 |  |
    upload_max_filesize | 2M | 2M
    post_max_size | 8M | 8M
    ==========================
    Page generated in 0.134 seconds - 11 queries in 0.008 seconds - Album set :


    thanx for your help!!!!!!!!!!!!

kegobeer

Have you read the documentation about custom thumbnails?  The custom thumbnail for movies is also covered in various posts on this board.
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

duca

yes i did but did'nt work out i any way. allways got no thumbnail

kegobeer

#3
Please create a test user, and post the login/password here.
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

kegobeer

Are you uploading jpg/png or gif thumbnails?  Are you naming the thumbnails like this: thumb_filename.jpg, and putting them in the same directory as the uploaded movie?
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

Casper

I also see you said you are uploading html files.

These are not allowed filetypes, unless you have modified your database, as they are a security risk, along with php, js files etc.
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

duca

#6
i also tryed to that but didn't work
here is the login/password for the test user:*********
thanx

Casper

Hi duca,

first, you must NEVER post an admin account details on the open board.  If it is required, we will ask you to send it by pm.
I have edited your post above to remove it, but also suggest you delete that account now, for your security.

I have found the cause of your problems.  It is because you have changed the name of your thumbs in config.

You will need to use that prefix, for the thumbnails, not just 'thumb_', and you will also have to change the name of the default thumbs in the images folder to match.  Alternately, you could return the thumb setting to normal, and then rename all the thumbs already created.
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

omniscientdeveloper

Quotechange the name of the default thumbs in the images folder to match

maybe I should apply the system thumb changes that I made in devel to stable also. since no language/config variables are affected, it should be ok.


-omni

duca

thanx guys your great!!!!!!!!!
the Gallery is also a great work keep on rockin' ;D