Projects ⇒ Bugs ⇒ #950: Can not add a forum post in MySQL 5.0 Strict Mode ⇒ CPG Dragonfly™ CMS
Bug #950 Can not add a forum post in MySQL 5.0 Strict Mode
Project: Dragonfly 9.0.3 -> 9.3 Category: SQL
Submitted: Tuesday, April 03, 2007 (09:43:50) Modified: Friday, May 11, 2007 (14:31:16)
Status: Closed Assigned to: NanoCaiordo
PHP Version: 4.4.4 HTTPD Server: Apache 1.3

View/Vote Add Comment

by: BrokenCrust
Description:
------------
It is not possible to add a new post in the forums (either a replay or a new thread) with MySQL 5.0 Strict Mode. An SQL error is displayed for the poster_ip field.

Reproduce code:
---------------
Error Text (for a reply)

MS Warning line 75: On /index.php?name=Forums&file=posting While executing query
"INSERT INTO cpg_bbposts (topic_id, forum_id, poster_id, post_username, post_time, poster_ip, enable_bbcode, enable_html, enable_smilies, enable_sig) VALUES (1, 1, 2, '', 1175504578, '192.168.1.1', 1, 0, 1, 1)"
the following error occured: Data too long for column 'poster_ip' at row 1 In: c:cpgtesthtmlincludesphpBBfunctions_post.php on line: 150

Expected result:
----------------
Can add a new post.

Actual result:
--------------
Can't add a new post (either a reply or a new thread) and an SQL error is displayed.
by: Phoenix
Something is amiss - it should be inserting a varbinary IP address?
by: NanoCaiordo
Please try using one of these CVS snapshots:

Latest tar.gz
Latest tar.bz2
by: BrokenCrust
This now generates the following error when posting a new message.

CMS Warning line 75: On /index.php?name=Forums&file=posting While executing query "INSERT INTO cpg_bbposts_text (post_id, post_subject, post_text) VALUES (1382, 'Re: Who the heck is out there?', 'This is a test')" the following error occured: Field 'bbcode_uid' doesn't have a default value In: c:\web\html\includes\phpBB\functions_post.php on line: 156
by: NanoCaiordo
This bug has been fixed in the CVS.

Snapshots of the sources are packaged every 6 hours; this change
will be in the next snapshot. You can grab the snapshot at the
Downloads section.

Thank you for the report, and for helping us to make Dragonfly 9.0.3 -> 9.1 better.
User Info

Welcome Anonymous



(Register)
Community

Support for DragonflyCMS in a other languages:

Deutsch
Español