Advanced search  

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

Pages: [1]   Go Down

Author Topic: Coppermine Critical Error Message  (Read 6600 times)

0 Members and 1 Guest are viewing this topic.

AJMerritt

  • Coppermine newbie
  • Offline Offline
  • Posts: 1
Coppermine Critical Error Message
« 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?
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Coppermine Critical Error Message
« Reply #1 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.
Logged

springdesigns

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Re: Coppermine Critical Error Message
« Reply #2 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
        (
           
  • => 30
  • [1] => 29
                [2] => 55
                [3] => 94
                [4] => 97
            )

    )

    ==========================
    USER DATA:
    ------------------
    Array
    (
       
[user_id] => 2
    [user_name] => Alister
    [groups] => Array
        (
           
  • => 1

        )

    [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
(
   
  • => SELECT extension, mime, content, player FROM cpg143_filetypes; (0.027s)
  • [1] => select * from cpg143_plugins order by priority asc; (0.026s)
        [2] => delete from `LSPGallery2006`.cpg143_sessions where time<1144014969 and remember=0; (0.026s)
        [3] => delete from `LSPGallery2006`.cpg143_sessions where time<1142808969; (0.026s)
        [4] => select user_id from `LSPGallery2006`.cpg143_sessions where session_id=md5("2231434ec9d43dad8a075bc27e4e8d11a45f53e511b51f4d91af5ca3c0911956"); (0.027s)
        [5] => select user_id as id, user_password as password from `LSPGallery2006`.cpg143_users where user_id=2 (0.026s)
        [6] => SELECT u.user_id AS id, u.user_name AS username, u.user_password AS password, u.user_group+100 AS group_id FROM `LSPGallery2006`.cpg143_users AS u INNER JOIN `LSPGallery2006`.cpg143_usergroups AS g ON u.user_group=g.group_id WHERE u.user_id='2' (0.026s)
        [7] => SELECT user_group_list FROM `LSPGallery2006`.cpg143_users AS u WHERE user_id='2' and user_group_list <> ''; (0.026s)
        [8] => 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) (0.027s)
        [9] => SELECT group_name FROM  cpg143_usergroups WHERE group_id= 1 (0.027s)
        [10] => update `LSPGallery2006`.cpg143_sessions set time='1144018569' where session_id=md5('2231434ec9d43dad8a075bc27e4e8d11a45f53e511b51f4d91af5ca3c0911956'); (0.026s)
        [11] => SELECT user_favpics FROM cpg143_favpics WHERE user_id = 2 (0.026s)
        [12] => DELETE FROM cpg143_banned WHERE expiry < '2006-04-02 22:56:09' (0.026s)
        [13] => SELECT * FROM cpg143_banned WHERE (ip_addr='86.132.3.72' OR ip_addr='86.132.3.72' OR user_id=2) AND brute_force=0 (0.026s)
        [14] => SELECT COUNT(*) FROM cpg143_pictures WHERE approved = 'NO' (0.027s)
        [15] => INSERT INTO cpg143_albums (category, title, uploads, pos) VALUES ('8', 'Mike', 'NO',  '1') (0.026s)
    )

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

==========================
POST :
------------------
Array
(
    [delete_album] =>
    [sort_order] =>
    [cat] => 8
    [to] => Array
        (
           
  • => album_no=0,album_nm=\'Mike\',album_sort=1,action=1

        )

    [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
« Last Edit: April 03, 2006, 01:02:06 am by springdesigns »
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Coppermine Critical Error Message
« Reply #3 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
Logged

springdesigns

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Re: Coppermine Critical Error Message
« Reply #4 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
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Coppermine Critical Error Message
« Reply #5 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!
Logged

springdesigns

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Re: Coppermine Critical Error Message
« Reply #6 on: April 11, 2006, 11:59:43 pm »

OK mate. Was only after some help... Chill
Logged
Pages: [1]   Go Up
 

Page created in 0.032 seconds with 19 queries.