forum.coppermine-gallery.net

Support => Older/other versions => cpg1.3.x Support => Topic started by: YiLi on April 27, 2005, 03:19:08 am

Title: Help!! Critical error!!
Post by: YiLi on April 27, 2005, 03:19:08 am
Help~!!
My CPG has "Critical error"...and shows...
"There was an error while processing a database query."

http://yili.no-ip.com/gallery/
I don't really know PHP and mySQL...but I do try to read some solutions...
however, not working at all.... :\'(

PLEASE HELP ME~~~~~~
Thanks
===========================================

While executing query "SELECT aid, category, IF(user_name IS NOT NULL, CONCAT('(', user_name, ') ',title), CONCAT(' - ', title)) AS title FROM cpg132_albums AS a LEFT JOIN cpg132_users AS u ON category = (10000 + user_id) ORDER BY category, title" on 0

mySQL error: Table 'gallery.cpg132_albums' doesn't exist

===========================================



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

==========================
USER DATA:
------------------
Array
(
    [user_id] => 1
    [user_group] => 1
    [user_active] => YES
    [user_name] => yili
    [user_password] => ********
    [user_lastvisit] => 2005-04-25 17:10:20
    [user_regdate] => 2004-12-18 15:15:22
    [user_group_list] =>
    [user_email] =>
    [user_website] => http://yili.no-ip.com/gallery
    [user_location] => Taichung & HsinChu
    [user_interests] =>
    [user_occupation] => Engineer
    [user_actkey] =>
    [user_favpics] =>
    [disk_max] => 500000
    [disk_min] => 500000
    [can_rate_pictures] => 1
    [can_send_ecards] => 1
    [ufc_max] => 3
    [ufc_min] => 3
    [custom_user_upload] => 1
    [num_file_upload] => 10
    [num_URI_upload] => 10
    [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] => 1
    [group_name] => Administrators
    [upload_form_config] => 3
    [group_quota] => 500000
    [can_see_all_albums] => 1
    [group_id] => 1
    [groups] => Array
        (
            [1] => 1
        )

)

==========================
Queries:
------------------
Array
(
    [lang] => english
)

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

==========================
VERSION INFO :
------------------
PHP version: 4.2.3 - OK
------------------
mySQL version: 3.23.52-max-nt
------------------
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
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 | 1 | 1
include_path | .;c:\php4\pear | .;c:\php4\pear
open_basedir | no value | no value
==========================
email
------------------
Directive | Local Value | Master Value
sendmail_from | me@localhost.com | me@localhost.com
sendmail_path | no value | no value
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 2.566 seconds - 7 queries in 0.005 seconds - Album set :
Title: Re: Help!! Critical error!!
Post by: CapriSkye on April 28, 2005, 11:15:26 am
for some reason his cpg132_albums table got deleted. i created a new albums table and was able to get rid of that error.
but all his albums got wipe out so there's still a problem. all his pictures are still there, just without albums, and click on a picture would show no album for the picture can be found.
if he was to create new albums with the same names as before, i wonder if that would automatically put pictures into those albums....
Title: Re: Help!! Critical error!!
Post by: Nibbler on April 28, 2005, 04:45:58 pm
They would have to have the same `aid` as previously.