From: SourceForge.net <no...@so...> - 2006-05-04 11:36:37
|
/mod/article item #1481767, was opened at 2006-05-04 06:33 Message generated for change (Comment added) made by youcantry You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=681146&aid=1481767&group_id=81360 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: Chris (youcantry) Assigned to: Nobody/Anonymous (nobody) Summary: Article module install fails with "unknown error" Initial Comment: There is a mysql bug where you cannot insert an empty string into a column which is of "text" type, where that column has been defined as "not null". Essentially, it regards the empty string as a null and returns an error. With the Article Manager, the error is returned as follows: SQL: insert mod_article (title, section_order, mainarticle, rank, created_username, created_id, updated_username, updated_id, created_date, updated_date, allow_comments, allow_anonymous, hits, expiration_date, publication_date, wordcount, pages, template, editlock, edituser, approved, version, announce, id) values ('Article Manager Demo Article', 'a:1: {i:0;i:1;}', '1', '50', 'eloi', '1', 'eloi', '1', '200 2-12-05 13:51:40', '2002-12-05 15:29:24', '0', '0', '16', '2007-12-05 00:00:00', '2002-12-05 00:00:00', '54', '1', 'Blank', '0', '0', '1', '0', '1' , 1) unknown error But using a client app to attempt that insert returns the message: [localhost] ERROR 1364: Field 'summary' doesn't have a default value Unfortunately, you can't assign a default value to the "text" column type; therefore, you have to provide a value with each insert. I fixed both inserts after the first table declaration, but then there was another similar error: the last column in the table could not be null, so I appended the following insert values to both inserts: , '', '', '', 0 Then the first insert after the second (sections) table had problems. This time the error said "image_directory" could not be null, but the reported SQL statement (in the error message) looks nothing like the statement in the install.sql file (But there is only one insert with "Article Manager Demo Section") At this point I called it quits. The mysql bug details are at: http://bugs.mysql.com/bug.php?id=5013 Chris. ---------------------------------------------------------------------- >Comment By: Chris (youcantry) Date: 2006-05-04 06:36 Message: Logged In: YES user_id=1190477 I should have said... phpws 0.10.2 apache 2.0.55 windows xp php 5.0.3 mysql 5.0.15 Fresh install of the CMS with core modules only; then unzip version 3.0 of Article Manager into mods directory and attempt to install it. I did notice other discussion threads that mentioned they couldn't locate a working copy of this module for 0.10.x on George's website (and both my downloads wouldn't extract either) but then others commented that the downloads from sourceforge were fine. I used the sourceforge download when I got this bug. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=681146&aid=1481767&group_id=81360 |