forum.coppermine-gallery.net

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Installation & Setup => Topic started by: AJMerritt on March 07, 2006, 04:49:09 pm

Title: Coppermine Critical Error Message
Post by: AJMerritt on March 07, 2006, 04:49:09 pm
Hello

I really need someone's help.  My web hosting company iPowerweb shut down my mySQL database and when they turned it back on I cannot get into my Coppermine Photo Gallery.  Below is the error message I get.

Critical Error: There was an error while processing a database query.

Any sugguestions on how I can fix this?
Title: Re: Coppermine Critical Error Message
Post by: Joachim Müller on March 07, 2006, 06:48:40 pm
enable debug_mode. If you can't log in as admin to enable debug_mode in coppermine's config screen, then use a tool like phpMyAdmin or similar, browse coppermine's config table and set "debug_mode" there manually from "0" to "1". This way, you will get a more meaningfull error message - post it here (the error message, not the debug_output). Leave notices turned off (as they are). For details, you might want to post a link to your site as well.
Title: Re: Coppermine Critical Error Message
Post by: springdesigns on April 03, 2006, 12:50:49 am
Hi,

I am also getting this same message, which only occured last week, prior to that everything worked OK.

I have enabled debug Mode in Config and get the following Debug & mySQL message :-
USER:
------------------
Array
(
    [ID] => 9fe5fe59ea6b9e7db63fd266a90243d5
    [am] => 1
    [lang] => english
    [liv] => Array
        (
            [user_id] => 2
    [user_name] => Alister
    [groups] => Array
        (
           
        )

    [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
)

==========================
Queries:
------------------
Array
(
    [what] => albmgr
)

==========================
POST :
------------------
Array
(
    [delete_album] =>
    [sort_order] =>
    [cat] => 8
    [to] => Array
        (
           
        )

    [album_nm] => Mike
)

==========================
VERSION INFO :
------------------
PHP version: 4.4.1 - OK
------------------
mySQL version: 5.0.19-max-log
------------------
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 1
Client API version 4.1.11
MYSQL_MODULE_TYPE external
MYSQL_SOCKET /var/lib/mysql/mysql.sock
MYSQL_INCLUDE -I/usr/include/mysql
MYSQL_LIBS -L/usr/lib -lmysqlclient 
==========================
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 | shell_exec,exec,system,passthru,popen,pcntl_exec,set_time_limit,proc_open | shell_exec,exec,system,passthru,popen,pcntl_exec,set_time_limit,proc_open
file_uploads | On | On
include_path | .:/usr/share/pear | .:/usr/share/pear
open_basedir | /tmp:/usr/share/pear:/home/fhlinux218/l/littlesaverpets.org/user | no value
==========================
email
------------------
Directive | Local Value | Master Value
sendmail_from | postmaster@littlesaverpets.org | 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 | 60 | 60
upload_max_filesize | 4M | 4M
post_max_size | 8M | 8M
==========================
Page generated in 0.697 seconds - 16 queries in 0.421 seconds - Album set : ; Meta set: ;

"mySQL error: Field 'description' doesn't have a default value"

Any ideas?

Mike
Title: Re: Coppermine Critical Error Message
Post by: Joachim Müller on April 03, 2006, 07:31:36 am
I told you not to post debug_output, but the actual error message only. You mustn't use cpg1.3.x with mysql5. Either downgrade mysql or upgrade from cpg1.3.x to cpg1.4.x
Title: Re: Coppermine Critical Error Message
Post by: springdesigns on April 04, 2006, 07:14:54 pm
I'm sorry.

The actual message is mySQL error: Field 'description' doesn't have a default value"

Using 1.4.3 version and SQL 5.

Everything was working OK until last week whrn client wished to insert a new Album to a selected Catergory.

Mike
Title: Re: Coppermine Critical Error Message
Post by: Joachim Müller on April 05, 2006, 07:33:37 am
upgrade to cpg1.4.4 then. Do as I suggested and post a link to your site. If you have cpg1.4.x, then you shouldn't have posted in a board that deals with another coppermine version nor try to hijack someone else's thread.  In the future, please post on the proper support board!
Title: Re: Coppermine Critical Error Message
Post by: springdesigns on April 11, 2006, 11:59:43 pm
OK mate. Was only after some help... Chill