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: "mySQL error: Field 'keyword' doesn't have a default value"  (Read 77471 times)

0 Members and 1 Guest are viewing this topic.

_Lion

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
"mySQL error: Field 'keyword' doesn't have a default value"
« on: January 09, 2006, 09:28:35 pm »

Hai!

I couldn't find this problem anywhere else on the forum, so I posted it myself.

I just upgraded to cpg 1.4.3 and MySQL 5.0.17 and all sorts of errors pop up now. They all seem to be related on the same thing, because the error is (except for a variable) the same.

This one is from creating a new album (which didn't work though)

While executing query "INSERT INTO cpg11d_albums (category, title, uploads, pos) VALUES ('0', 'Test', 'NO',  '103')" on 0

mySQL error: Field 'keyword' doesn't have a default value


And the debug info is (is this usefull ?):

USER:
------------------
Array
(
    [ID] => babb7e649e69799b6a9b5c0527142b90
    [am] => 1
)

==========================
USER DATA:
------------------
Array
(
    [user_id] => 2
    [user_name] => roderick
    [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 cpg11d_filetypes; (0.001s)
  • [1] => select * from cpg11d_plugins order by priority asc; (0.001s)
        [2] => delete from `coppermine`.cpg11d_sessions where time<1136825765 and remember=0; (0.001s)
        [3] => delete from `coppermine`.cpg11d_sessions where time<1135619765; (0s)
        [4] => select user_id from `coppermine`.cpg11d_sessions where session_id=md5("4d2b1632d4b9b2598e617ee9586f0924d9888851e8ed4554eb436c85897a0c41"); (0.001s)
        [5] => select user_id as id, user_password as password from `coppermine`.cpg11d_users where user_id=2 (0.001s)
        [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 `coppermine`.cpg11d_users AS u INNER JOIN `coppermine`.cpg11d_usergroups AS g ON u.user_group=g.group_id WHERE u.user_id='2' (0.001s)
        [7] => SELECT user_group_list FROM `coppermine`.cpg11d_users AS u WHERE user_id='2' and user_group_list <> ''; (0.001s)
        [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 cpg11d_usergroups WHERE group_id in (1) (0.001s)
        [9] => SELECT group_name FROM  cpg11d_usergroups WHERE group_id= 1 (0.001s)
        [10] => update `coppermine`.cpg11d_sessions set time='1136829365' where session_id=md5('4d2b1632d4b9b2598e617ee9586f0924d9888851e8ed4554eb436c85897a0c41'); (0.001s)
        [11] => SELECT user_favpics FROM cpg11d_favpics WHERE user_id = 2 (0.001s)
        [12] => DELETE FROM cpg11d_banned WHERE expiry < '2006-01-09 17:56:06' (0.001s)
        [13] => SELECT * FROM cpg11d_banned WHERE (ip_addr='192.168.2.1' OR ip_addr='192.168.2.1' OR user_id=2) AND brute_force=0 (0.001s)
        [14] => SELECT COUNT(*) FROM cpg11d_pictures WHERE approved = 'NO' (0.001s)
        [15] => UPDATE cpg11d_albums SET pos='100' WHERE aid='35'  LIMIT 1 (0.001s)
        [16] => UPDATE cpg11d_albums SET pos='101' WHERE aid='32'  LIMIT 1 (0s)
        [17] => UPDATE cpg11d_albums SET pos='102' WHERE aid='29'  LIMIT 1 (0s)
        [18] => INSERT INTO cpg11d_albums (category, title, uploads, pos) VALUES ('0', 'Test', 'NO',  '103') (0s)
    )

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

==========================
POST :
------------------
Array
(
    [delete_album] =>
    [sort_order] => 35@100,32@101,29@102,
    [cat] => 0
    [to] => Array
        (
           
  • => album_no=0,album_nm=\'Test\',album_sort=103,action=1

        )

    [album_nm] => Test
)

==========================
VERSION INFO :
------------------
PHP version: 4.4.1 - OK
------------------
mySQL version: 5.0.17-nt
------------------
Coppermine version: 1.4.2(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 3.23.49
==========================
Module: zlib
------------------
ZLib Support enabled
Compiled Version 1.2.3
Linked Version 1.2.3
==========================
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 | .;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
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 | 2M | 2M
post_max_size | 8M | 8M
==========================
Page generated in 0.203 seconds - 19 queries in 0.015 seconds - Album set : ; Meta set: ;


Hope anyone van help me with this, of point me in the right direction anyway...

Sitting and waiting.......

Oh... I'm running PHP 4.4.1

Regards,

_Lion
« Last Edit: January 11, 2006, 12:09:04 am by GauGau »
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: "mySQL error: Field 'keyword' doesn't have a default value"
« Reply #1 on: January 10, 2006, 09:13:27 am »

http://forum.coppermine-gallery.net/index.php?topic=25090.msg115364#msg115364
Don't post debug_output unless requested, it clutters the thread.
Logged

_Lion

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Re: "mySQL error: Field 'keyword' doesn't have a default value"
« Reply #2 on: January 10, 2006, 06:28:19 pm »

http://forum.coppermine-gallery.net/index.php?topic=25090.msg115364#msg115364
Don't post debug_output unless requested, it clutters the thread.

I'm sorry. In Coppermine it said to post the info when posting an error in the forum.

But about the problem, the solution found in the link you posted (I didn't find it in a search) solved the problem. Thanx!  ;D
Logged

feifeiokoko

  • Coppermine newbie
  • Offline Offline
  • Posts: 1
Re: "mySQL error: Field 'keyword' doesn't have a default value"
« Reply #3 on: November 23, 2009, 11:16:04 am »

把hbm2ddl.auto中的update改为create,然后在改回来,就ok了!
Logged

phill104

  • Administrator
  • Coppermine addict
  • *****
  • Country: gb
  • Offline Offline
  • Gender: Male
  • Posts: 4885
    • Windsurf.me
Re: "mySQL error: Field 'keyword' doesn't have a default value"
« Reply #4 on: November 23, 2009, 11:44:12 am »

Locking.

Banned user  feifeiokoko
Logged
It is a mistake to think you can solve any major problems just with potatoes.
Pages: [1]   Go Up
 

Page created in 0.02 seconds with 19 queries.