Previous Thread
Next Thread
Print Thread
Hop To
Joined: Jul 2006
Posts: 117
Likes: 4
P
Member
Member
P Offline
Joined: Jul 2006
Posts: 117
Likes: 4
Using MySQL 5.0 with enabled strict mode. There are SQL errors while adding/editing a forum:

Code
Incorrect integer value: '' for column 'FORUM_IS_TEASER' at row 1

and

Code
Incorrect integer value: '' for column 'FORUM_IS_GALLERY' at row 1

The fix is easy. Open docreateforum.php/doeditboard.php in an editor and add:

Code
if (!$is_gallery) $is_gallery = 0;
if (!$is_teaser) $is_teaser = 0;

Last edited by Rick; 07/09/2007 12:08 PM.
Joined: Jun 2006
Posts: 9,242
Likes: 1
R
Former Developer
Former Developer
R Offline
Joined: Jun 2006
Posts: 9,242
Likes: 1
Thanks for the info and the fix!


Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
PHP 8 bug in membermanage.tmpl
by phoenix011235 - 09/08/2026 7:47 PM
8.0.1 Patch Changelog Discussion
by isaac - 11/26/2025 1:34 PM
Who's Online Now
3 members (CESEREL, Geoff, 1 invisible), 396 guests, and 110 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Ride safe!
Ride safe!
by Morgan, December 7
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Powered by UBB.threads™ PHP Forum Software 8.1.0
(Snapshot build 20260527)