Advanced search  

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]

Pages: [1]   Go Down

Author Topic: Upload issues; Failed to move and Parse error  (Read 2372 times)

0 Members and 1 Guest are viewing this topic.

altagame

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 37
Upload issues; Failed to move and Parse error
« on: May 21, 2007, 10:04:22 pm »

Hello everyone, having problems uploading files. I have followed the instuctions on the troubleshoot page and to no avail it hasn't helped. I have tried changing the folder permissions between 755 & 777 as well. If you require anything more then I have posted here, please let me know and I will get the information for you. I am not a great PHP or database person, I can basically set things up and follow your instruction.
 
My Gallery:

http://www.albertagame.com/gallery/index.php

Test Account:

Username: SixShooter
Password: test

Here is the debug code:

Code: [Select]

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

)

==========================
USER DATA:
------------------
Array
(
    [user_id] => 2
    [user_name] => AltaGame
    [groups] => Array
        (
            [0] => 1
        )

    [disk_max] => 0
    [disk_min] => 0
    [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] => 0
    [can_post_comments] => 1
    [can_upload_pictures] => 1
    [can_create_albums] => 1
    [has_admin_access] => 1
    [pub_upl_need_approval] => 1
    [priv_upl_need_approval] => 1
    [group_name] => Administrators
    [upload_form_config] => 0
    [group_quota] => 0
    [can_see_all_albums] => 1
    [group_id] => 1
)

==========================
Queries:
------------------
Array
(
    [0] => SELECT extension, mime, content, player FROM cpg143_filetypes; (0s)
    [1] => select * from cpg143_plugins order by priority asc; (0s)
    [2] => SELECT * FROM cpg143_bridge (0s)
    [3] => SELECT u.user_id AS user_id, u.user_password AS password, u.user_level FROM `alberta_phpbb1`.phpbb_users AS u, `alberta_phpbb1`.phpbb_sessions AS s WHERE u.user_id=s.session_user_id AND s.session_id = 'ae8dfc540755902a54d5606deef0b2e9' AND u.user_id > 0 (0s)
    [4] => SELECT u.user_id AS id, u.username AS username, u.user_password AS password, ug.group_id AS group_id FROM `alberta_phpbb1`.phpbb_users AS u, `alberta_phpbb1`.phpbb_user_group AS ug WHERE u.user_id=ug.user_id AND u.user_id='2' (0s)
    [5] => 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 cpg143_usergroups WHERE group_id in (1) (0s)
    [6] => SELECT group_name FROM  cpg143_usergroups WHERE group_id= 1 (0s)
    [7] => SELECT user_favpics FROM cpg143_favpics WHERE user_id = 2 (0s)
    [8] => DELETE FROM cpg143_banned WHERE expiry < '2007-05-22 01:58:30' (0s)
    [9] => SELECT * FROM cpg143_banned WHERE (ip_addr='199.126.134.232' OR ip_addr='199.126.134.232' OR user_id=2) AND brute_force=0 (0s)
    [10] => SELECT cid, name, description, thumb FROM cpg143_categories WHERE parent = ''  ORDER BY pos (0s)
    [11] => SELECT aid FROM cpg143_albums as a WHERE category>=10000 (0s)
    [12] => SELECT count(*) FROM cpg143_pictures as p, cpg143_albums as a WHERE p.aid = a.aid AND category >= 10000 (0s)
    [13] => SELECT cid, name, description, thumb FROM cpg143_categories WHERE parent = '1'  ORDER BY pos (0s)
    [14] => SELECT aid FROM cpg143_albums WHERE category = 4 (0s)
    [15] => SELECT count(*) FROM cpg143_pictures as p, cpg143_albums as a WHERE p.aid = a.aid AND category = 4 (0s)
    [16] => SELECT cid, name, description, thumb FROM cpg143_categories WHERE parent = '4'  ORDER BY pos (0s)
    [17] => SELECT aid FROM cpg143_albums WHERE category = 7 (0s)
    [18] => SELECT count(*) FROM cpg143_pictures as p, cpg143_albums as a WHERE p.aid = a.aid AND category = 7 (0s)
    [19] => SELECT aid FROM cpg143_albums WHERE category = 5 (0s)
    [20] => SELECT count(*) FROM cpg143_pictures as p, cpg143_albums as a WHERE p.aid = a.aid AND category = 5 (0s)
    [21] => SELECT aid FROM cpg143_albums as a WHERE category = '0' (0s)
    [22] => SELECT count(*) FROM cpg143_albums as a WHERE 1 (0s)
    [23] => SELECT count(*) FROM cpg143_pictures as p LEFT JOIN cpg143_albums as a ON a.aid=p.aid WHERE 1 (0.001s)
    [24] => SELECT count(*) FROM cpg143_comments as c LEFT JOIN cpg143_pictures as p ON c.pid=p.pid LEFT JOIN cpg143_albums as a ON a.aid=p.aid WHERE 1 (0.001s)
    [25] => SELECT count(*) FROM cpg143_categories WHERE 1 (0s)
    [26] => SELECT sum(hits) FROM cpg143_pictures as p LEFT JOIN cpg143_albums as a ON p.aid=a.aid WHERE 1 (0.003s)
    [27] => SELECT COUNT(*) FROM cpg143_pictures WHERE approved = 'NO' (0s)
    [28] => SELECT count(*) FROM cpg143_albums as a WHERE category = '0' (0s)
    [29] => SELECT COUNT(*) from cpg143_pictures WHERE approved = 'YES'  (0s)
    [30] => SELECT * FROM cpg143_pictures WHERE approved = 'YES'  ORDER BY RAND() LIMIT 8 (0.012s)
    [31] => SELECT count(*) from cpg143_comments where pid=226 and msg_id!=0 (0s)
    [32] => SELECT count(*) from cpg143_comments where pid=935 and msg_id!=0 (0s)
    [33] => SELECT count(*) from cpg143_comments where pid=1433 and msg_id!=0 (0s)
    [34] => SELECT count(*) from cpg143_comments where pid=124 and msg_id!=0 (0s)
    [35] => SELECT count(*) from cpg143_comments where pid=816 and msg_id!=0 (0s)
    [36] => SELECT count(*) from cpg143_comments where pid=1167 and msg_id!=0 (0s)
    [37] => SELECT count(*) from cpg143_comments where pid=1283 and msg_id!=0 (0s)
    [38] => SELECT count(*) from cpg143_comments where pid=1105 and msg_id!=0 (0s)
    [39] => SELECT COUNT(*) from cpg143_pictures WHERE approved = 'YES'  (0s)
    [40] => SELECT * FROM cpg143_pictures WHERE approved = 'YES'  ORDER BY pid DESC  LIMIT 0 ,8 (0s)
    [41] => SELECT count(*) from cpg143_comments where pid=1537 and msg_id!=0 (0s)
    [42] => SELECT count(*) from cpg143_comments where pid=1536 and msg_id!=0 (0s)
    [43] => SELECT count(*) from cpg143_comments where pid=1535 and msg_id!=0 (0s)
    [44] => SELECT count(*) from cpg143_comments where pid=1534 and msg_id!=0 (0s)
    [45] => SELECT count(*) from cpg143_comments where pid=1533 and msg_id!=0 (0s)
    [46] => SELECT count(*) from cpg143_comments where pid=1532 and msg_id!=0 (0s)
    [47] => SELECT count(*) from cpg143_comments where pid=1531 and msg_id!=0 (0s)
    [48] => SELECT count(*) from cpg143_comments where pid=1530 and msg_id!=0 (0s)
)

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

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

==========================
VERSION INFO :
------------------
PHP version: 4.4.6 - OK
------------------
mySQL version: 4.0.27-standard
------------------
Coppermine version: 1.4.3(stable)
==========================
Module: GD
------------------
GD Version: bundled (2.0.28 compatible)
FreeType Support: 1
FreeType Linkage: with freetype
T1Lib Support:
GIF Read Support: 1
GIF Create Support: 1
JPG Support: 1
PNG Support: 1
WBMP Support: 1
XBM Support: 1
JIS-mapped Japanese Font Support:

==========================
Module: mysql
------------------
MySQL Supportenabled
Active Persistent Links 0
Active Links 2
Client API version 4.0.27
MYSQL_MODULE_TYPE external
MYSQL_SOCKET /var/lib/mysql/mysql.sock
MYSQL_INCLUDE -I/usr/include/mysql
MYSQL_LIBS -L/usr/lib64 -lmysqlclient 
==========================
Module: zlib
------------------
ZLib Support enabled
Compiled Version 1.2.1.2
Linked Version 1.2.1.2
==========================
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.079 seconds - 49 queries in 0.017 seconds - Album set : ; Meta set: ;


For whatever reason, I am now getting the following error when trying to upload;

Parse error: syntax error, unexpected T_DEFAULT in /home/alberta/public_html/gallery/db_input.php on line 413

No idea why this is now happening, I just created the test account above and went to post this message and went back to get the debug code for this post and this is now showing up.


Any help with this would be great!

Sincerely,

Chris
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Upload issues; Failed to move and Parse error
« Reply #1 on: May 22, 2007, 07:56:54 am »

You're running cpg1.4.3, while the most recent version is cpg1.4.10, so you're running 7 versions behind. It is absolutely mandatory that you upgrade as suggested in the docs.

When uploading, I get
Quote
Parse error: syntax error, unexpected T_DEFAULT in /home/alberta/public_html/gallery/db_input.php on line 413
, which means that a file is corrupted. This will be fixed when upgrading as well.
Logged

altagame

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 37
Re: Upload issues; Failed to move and Parse error
« Reply #2 on: May 23, 2007, 01:24:48 am »

Thanks GauGau, I guess I missed that. I know why I haven't upgraded yet, I have not been able to find just an, "update" download. All I can find is the entire script with no notes on how to upgrade. I also checked the admin panel and it doesn't have an upgrade feature.

Can you point my in the right for upgrading?

Thanks.

Chris
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Upload issues; Failed to move and Parse error
« Reply #3 on: May 23, 2007, 06:43:54 am »

There's no particular upgrade package, you need to download the cpg1.4.10 package. The documentation contains a section that explains upgrading, do exactly as suggested there.
Logged
Pages: [1]   Go Up
 

Page created in 0.104 seconds with 20 queries.