New Users Can't Register - error New Users Can't Register - error
 

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

New Users Can't Register - error

Started by abcs123, March 22, 2007, 11:06:47 PM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

abcs123

I just recently made a new Coppermine gallery and everything seems to be working fine, except people can't register and this error message is displayed:

Parse error: syntax error, unexpected T_ARRAY, expecting T_STRING in /home/vhosts/ovgallery.ctrlalthost.com/cpg1410/include/mailer.inc.php on line 2171

What can I do to fix it?

Please help! Thanks!

abcs123

Then I went to debug mode and it displayed this:

USER:
------------------
Array
(
    [ID] => 73c672793d1522f90845d329a82d9612
    [am] => 1
    [lang] => english
    [liv] => Array
        (
        )

)

==========================
USER DATA:
------------------
Array
(
    [user_id] => 0
    [user_name] => Guest
    [groups] => Array
        (
           
  • => 3
            )

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

    ==========================
    Queries:
    ------------------
    Array
    (
       
  • => SELECT extension, mime, content, player FROM cpg1410_filetypes; (0s)
        [1] => select * from cpg1410_plugins order by priority asc; (0s)
        [2] => delete from `2977`.cpg1410_sessions where time<1174599599 and remember=0; (0s)
        [3] => delete from `2977`.cpg1410_sessions where time<1173393599; (0s)
        [4] => select user_id from `2977`.cpg1410_sessions where session_id=md5("771a7d45278903abafb38ab80e2cd29392b03c348b127406bc6b8c63f9a691f3"); (0s)
        [5] => select user_id as id, user_password as password from `2977`.cpg1410_users where user_id=0 (0s)
        [6] => 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 cpg1410_usergroups WHERE group_id in (3) (0s)
        [7] => SELECT group_name FROM  cpg1410_usergroups WHERE group_id= 3 (0s)
        [8] => update `2977`.cpg1410_sessions set time='1174603199' where session_id=md5('771a7d45278903abafb38ab80e2cd29392b03c348b127406bc6b8c63f9a691f3'); (0s)
        [9] => DELETE FROM cpg1410_banned WHERE expiry < '2007-03-22 22:39:59' (0s)
        [10] => SELECT * FROM cpg1410_banned WHERE (ip_addr='71.217.44.215' OR ip_addr='71.217.44.215' OR user_id=0) AND brute_force=0 (0s)
        [11] => SELECT aid FROM cpg1410_albums WHERE visibility != '0' AND visibility !='10000' AND visibility NOT IN (3) (0s)
        [12] => SELECT aid FROM cpg1410_albums (0s)
        [13] => SELECT cid, name, description, thumb FROM cpg1410_categories WHERE parent = ''  ORDER BY pos (0s)
        [14] => SELECT aid FROM cpg1410_albums as a WHERE category>=10000 (0s)
        [15] => SELECT count(*) FROM cpg1410_pictures as p, cpg1410_albums as a WHERE p.aid = a.aid AND approved='YES' AND category >= 10000 (0s)
        [16] => SELECT cid, name, description, thumb FROM cpg1410_categories WHERE parent = '1'  ORDER BY pos (0s)
        [17] => SELECT aid FROM cpg1410_albums as a WHERE category = '0' (0s)
        [18] => SELECT count(*) FROM cpg1410_albums as a WHERE 1 (0s)
        [19] => SELECT count(*) FROM cpg1410_pictures as p LEFT JOIN cpg1410_albums as a ON a.aid=p.aid WHERE 1 AND approved='YES' (0s)
        [20] => SELECT count(*) FROM cpg1410_comments as c LEFT JOIN cpg1410_pictures as p ON c.pid=p.pid LEFT JOIN cpg1410_albums as a ON a.aid=p.aid WHERE 1 (0s)
        [21] => SELECT count(*) FROM cpg1410_categories WHERE 1 (0s)
        [22] => SELECT sum(hits) FROM cpg1410_pictures as p LEFT JOIN cpg1410_albums as a ON p.aid=a.aid WHERE 1 (0s)
        [23] => SELECT count(*) FROM cpg1410_albums as a WHERE category = '0' (0s)
        [24] => SELECT a.aid, a.title, a.description, category, visibility, filepath, filename, url_prefix, pwidth, pheight FROM cpg1410_albums as a LEFT JOIN cpg1410_pictures as p ON a.thumb=p.pid WHERE category=0 ORDER BY a.pos LIMIT 0,2 (0s)
        [25] => SELECT a.aid, count( p.pid )  AS pic_count, max( p.pid )  AS last_pid, max( p.ctime )  AS last_upload, a.keyword FROM cpg1410_albums AS a  LEFT JOIN cpg1410_pictures AS p ON a.aid = p.aid AND p.approved =  'YES' WHERE a.aid IN (1, 2)GROUP BY a.aid (0s)
        [26] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg1410_pictures WHERE pid='3' (0s)
    )

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

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

    ==========================
    Page generated in 0.035 seconds - 27 queries in 0 seconds - Album set : ; Meta set: AND aid IN (1,2) ;

Joachim Müller

Post a link. I tried to guess it, but http://ovgallery.ctrlalthost.com/cpg1410/index.php doesn't work for me. Don't post debug_output unless requested. Looks like at least one file got corrupted - re-upload all files from a fresh copy, making sure to overwrite the existing ones on the server. Make sure to use a real FTP app (not some crap like MS Frontpage) and to use the proper FTP mode.

abcs123

Oh sorry about the debug thing, I didn't know. (I'm such a noob)

Also, that was the correct link until I reuploaded the entire thing because I was so frustrated, and now its http://ovgallery.ctrlalthost.com/imagegallery/ . I tried reuploading just that file too, and it still doesn't seem to be working. And the FTP app that I use is WS_FTP.  :(


Stramm

I'm not able to open the link you posted (404 error)