Problem with batch add Problem with batch add
 

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

Problem with batch add

Started by charmed88, July 22, 2004, 01:34:40 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

charmed88

Hi

I have just installed the photogallery and everything went fine. I set permissions on all the correct folders and the added my folders to /albums.

I then go into the batch add bit and select the folder i want to upload. It loads with all the files names but the little pics dont load and if i try to add them all they dont add. Any idea whats going wrong? ???

thanks

kegobeer

Turn on debug and post the errors you get.  Also, a link to your site will help.  And did you search the forums for this problem, to see if it's been talked about before?
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

charmed88

USER:
------------------
Array
(
    [ID] => 81f2e5206a1c9659d757e7454436c1b8
    [am] => 1
)

==========================
USER DATA:
------------------
Array
(
    [user_id] => 1
    [user_group] => 1
    [user_active] => YES
    [user_name] => Charmed88
    [user_password] => ********
    [user_lastvisit] => 2004-07-21 19:19:11
    [user_regdate] => 2004-07-21 18:39:41
    [user_group_list] =>
    [user_email] =>
    [user_website] =>
    [user_location] =>
    [user_interests] =>
    [user_occupation] =>
    [user_actkey] =>
    [user_favpics] =>
    [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
    [groups] => Array
        (
            [1] => 1
        )

)

==========================
Queries:
------------------
Array
(
   
  • => SELECT extension, mime, content FROM photo_filetypes;
        [1] => SELECT * FROM photo_users WHERE user_id='1'AND user_active = 'YES' AND user_password != '' AND BINARY MD5(user_password) = 'c4d1a92307512c4e342a5c025b0fabe2'
        [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 photo_usergroups WHERE group_id in (1)
        [3] => SELECT group_name FROM  photo_usergroups WHERE group_id= 1
        [4] => DELETE FROM photo_banned WHERE expiry < 1090454668
        [5] => SELECT * FROM photo_banned WHERE ip_addr='80.4.224.4' OR ip_addr='80.6.236.155' OR user_id=1
        [6] => SELECT filepath, filename FROM photo_pictures WHERE filepath LIKE 'Azatiprime%'
        [7] => SELECT aid, title FROM photo_albums WHERE category = 0 ORDER BY title
        [8] => SELECT DISTINCT a.aid as aid, a.title as title, c.name as cname FROM photo_albums as a, photo_categories as c WHERE a.category = c.cid AND a.category < '10000' ORDER BY cname,title
        [9] => SELECT aid, CONCAT('(', user_name, ') ', title) AS title FROM photo_albums AS a INNER JOIN photo_users AS u ON category = (10000 + user_id) ORDER BY title
    )

    ==========================
    GET :
    ------------------
    Array
    (
        [startdir] => Azatiprime
    )

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

    ==========================
    VERSION INFO :
    ------------------
    PHP version: 4.3.8 - OK
    ------------------
    mySQL version: 4.0.20-standard
    ------------------
    Coppermine version: 1.3.1
    ==========================
    Module: gd
    ------------------
    module doesn't exist
    ==========================
    Module: mysql
    ------------------
    Active Persistent Links 0
    Active Links 1
    Client API version 3.23.49
    MYSQL_MODULE_TYPE builtin
    MYSQL_SOCKET /var/tmp/mysql.sock
    MYSQL_INCLUDE no value
    MYSQL_LIBS no value
    ==========================
    Module: zlib
    ------------------
    ZLib Support enabled
    Compiled Version 1.1.4
    Linked Version 1.1.4
    ==========================
    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/lib/php:/usr/local/lib/php | .:/usr/lib/php:/usr/local/lib/php
    open_basedir | no value | 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 | -1 | -1
    upload_max_filesize | 2M | 2M
    post_max_size | 55M | 55M
    ==========================
    Page generated in 0.088 seconds - 10 queries in 0.003 seconds - Album set :

Joachim Müller

Quote from: charmed88 on July 22, 2004, 02:05:26 AM
[...]
Module: gd
------------------
module doesn't exist
[...]
Do you have Image Magick? Try uploading one pic with http upload first, and see if this works for you. My guess is you don't have the minimum requirements for Coppermine.

GauGau

Casper

Hmmmm,

this has thrown up a problem with the debug mode, as the debug info is not always correct, see the 2 pics, both from my test site, and the same install.
One shows the true php info, and as you can see, has GD1 installed, which is in use, as there is no IM.
The second shows the debug info, which says GD not installed, clearly incorrect.  Note, it also shows mySQL doesn't exist, which is also wrong.

So I suggest charmed88 looks at the full php info first.

But we need to find out why the debug is not working.
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

Joachim Müller

@Casper: please create a plain phpinfo page (a page with just <?php phpinfo(); ?> in it) and send me the html output it generates by PM.

GauGau

charmed88

I tried a HTTP upload and go this:

Error Report
The following uploads encountered errors: 
File Uploads: 
File Name/URL Error Message
1. 2589_100.gif Not a GD extension.

Joachim Müller

You can not upload GIFs using GD, as GD has only GIF read support, but no GIF write support. Try uploading a known-good jpeg instead.

GauGau

charmed88

I tried a HTTP Jpeg upload and it worked

Joachim Müller

is your albums dir and everything within it writable for the script (CHMOD!)?

GauGau

charmed88

the album folder and everything in it is set to 777

Joachim Müller

That's not exactly what I was asking (although related); is it writable by the script? This could as well mean CHMOD 755 or other (on "exotic" server setups). Please post more details on your server as well, and check if the "edit" sub-dir exists and is CHMODed as well to be writable for the script.

GauGau

charmed88

The edit folder is there and is 777

sdamon

Ive been on IM with charmed...his host dosent have GD installed.

Joachim Müller

then why did charmed report a jpeg upload worked?
Quote from: charmed88 on July 22, 2004, 05:03:41 PM
I tried a HTTP Jpeg upload and it worked
I couldn't have worked if there is no GD lib on his server (as I suggested before btw.).

@Charmed: make sure you have the minimum requirements for running coppermine (contact your webhost if you must). If you think you have the minimum requirements, report back here please.

GauGau