Undefined variable: _SERVER Upload errors Undefined variable: _SERVER Upload errors
 

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

Undefined variable: _SERVER Upload errors

Started by CJHacker, September 17, 2004, 09:20:12 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

CJHacker

Hi, my first post here, so please be gentle.  I've been using the pnCPG on another site on the same server for a while now with no complaints.  Great piece of software.  I just installed a fresh stand alone version of Coppermine 1.3.2 and everything so far seems to work good with the exception of uploads.

When in Admin mode and I select Batch add files, it just shows a screen that says:

      This function allows you to add a batch of file that your have uploaded to your server by FTP.

      Select the directory where you have uploaded your files
 

...and stops there.

Also when I select Upload file from the users menu, it looks fine, but would not upload files.  When I turned on debug mode, I get the following errors:

Warning: Undefined variable: _SERVER in /home/.sites/4/site38/web/cgi-bin/cpg132/upload.php on line 876

Warning: Undefined offset: 2 in /home/.sites/4/site38/web/cgi-bin/cpg132/upload.php on line 250
Warning: Undefined offset: 3 in /home/.sites/4/site38/web/cgi-bin/cpg132/upload.php on line 256
Warning: Undefined offset: 4 in /home/.sites/4/site38/web/cgi-bin/cpg132/upload.php on line 256


Here's my debug info:

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

==========================
USER DATA:
------------------
Array
(
   [user_id] => 1
   [user_group] => 1
   [user_active] => YES
   [user_name] => cjhacker
   [user_password] => ********
   [user_lastvisit] => 2004-09-17 13:11:05
   [user_regdate] => 2004-09-17 13:11:05
   [user_group_list] =>
   [user_email] =>
   [user_website] =>
   [user_location] =>
   [user_interests] =>
   [user_occupation] =>
   [user_actkey] =>
   [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 topcpg132_filetypes;
       [1] => SELECT * FROM topcpg132_users WHERE user_id='1'AND user_active = 'YES' AND user_password != '' AND BINARY MD5(user_password) = '**************************'
       [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 topcpg132_usergroups WHERE group_id in (1)
       [3] => SELECT group_name FROM  topcpg132_usergroups WHERE group_id= 1
       [4] => DELETE FROM topcpg132_banned WHERE expiry < 1095447854
       [5] => SELECT * FROM topcpg132_banned WHERE ip_addr='216.239.29.205' OR ip_addr='216.239.29.205' OR user_id=1
    )

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

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

    ==========================
    VERSION INFO :
    ------------------
    PHP version: 4.0.6 - OK
    ------------------
    mySQL version: 3.23.56-Max
    ------------------
    Coppermine version: 1.3.2
    ==========================
    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 |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
    ==========================
    email
    ------------------
    Directive | Local Value | Master Value |  |  |  |  |  |  |  |
    ==========================
    Size and Time
    ------------------
    Directive | Local Value | Master Value |  |  |  |  |  |  |  |
    ==========================
    Page generated in 0.091 seconds - 6 queries in 0.003 seconds - Album set : [/i]

    Not sure why this would not work on here, but does under postnuke on the other site I'm running.  I don't have access to change on php config on this server, but should I need to since the other install seems to be working fine?

    Thanks,
    CJ

Nibbler

Your version of PHP is too old, you need at least version 4.1.0 to run coppermine.

CJHacker

Now I see that...What's the newest version that I can run with this version of PHP?  I see that 1.1.0 seems to run fine.

Nibbler

You're going to have problems with other scripts if you are unable to upgrade. 1.1.0 is unsupported now.