I just had to disable this module in the database because the modules page was dead because of the PDO exception.

PDOException: SQLSTATE[22001]: String data, right truncated: 1406 Data too long for column 'description' at row 1: INSERT INTO {enabled_modules_system} (filename, name, description, package, version, core, project, datestamp, dependencies, dependents, php) VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1, :db_insert_placeholder_2, :db_insert_placeholder_3, :db_insert_placeholder_4, :db_insert_placeholder_5, :db_insert_placeholder_6, :db_insert_placeholder_7, :db_insert_placeholder_8, :db_insert_placeholder_9, :db_insert_placeholder_10); Array
(
    [:db_insert_placeholder_0] => sites/all/themes/omega/starterkit_xhtml/omega_starterkit_xhtml.info
    [:db_insert_placeholder_1] => Omega XHTML Starter Kit
    [:db_insert_placeholder_2] => XHTML Starterkit for <a href="http://himer.us/omega960"><strong>Omega</strong></a>. Make a copy of this subtheme to get started building your own <strong>Omega</strong> theme. For help see our <a href="http://himer.us/omega960"><strong>documentation</strong></a> and <a href="http://himerus.com"><strong>video</strong></a> tutorials. If you have a problem and need additional support please use the <a href="http://drupal.org/project/issues/omega"><strong>issue queue</strong></a>. Don&#039;t forget also to download and enable the <a href="http://himer.us/delta-module"><strong>Delta</strong></a> module for contextual layouts.
    [:db_insert_placeholder_3] => 
    [:db_insert_placeholder_4] => 7.x-2.1
    [:db_insert_placeholder_5] => 7.x
    [:db_insert_placeholder_6] => omega
    [:db_insert_placeholder_7] => 1299009669
    [:db_insert_placeholder_8] => N;
    [:db_insert_placeholder_9] => N;
    [:db_insert_placeholder_10] => 5.2.4
)

Comments

juliangb’s picture

I'll expand that field, thanks for reporting.

But it'd also be worth pointing the theme maintainer that http://drupal.org/node/171205#description calls the description field a "A short description of the theme"! That description seems to be >600 chars.

juliangb’s picture

Status: Active » Needs review
StatusFileSize
new1.06 KB

Needs testing.

juliangb’s picture

StatusFileSize
new1.06 KB

Revised patch without trailing whitespace.

juliangb’s picture

StatusFileSize
new1.05 KB

Changes for D7 in db_change_field.

juliangb’s picture

StatusFileSize
new1.03 KB

Fix error with blobs/default values.

juliangb’s picture

Version: 7.x-1.0-beta1 » 6.x-1.x-dev
StatusFileSize
new1.04 KB

Committed for Drupal 7.

Patch for Drupal 6.

juliangb’s picture

Removed whitespace.

juliangb’s picture

StatusFileSize
new1.04 KB

(Patch)

juliangb’s picture

Status: Needs review » Fixed

Committed to D6.

eric_a’s picture

Status: Fixed » Active

The D7 function should not return an array...

juliangb’s picture

Version: 6.x-1.x-dev » 7.x-1.x-dev
Status: Active » Needs review
StatusFileSize
new565 bytes

Ah yes, that's changed for D7 (http://drupal.org/node/224333#update_sql).

Didn't cause an error when I tested, but we should correct it anyway.

Patch attached.

eric_a’s picture

Status: Needs review » Reviewed & tested by the community

RTBC for #11. (I really don't know what exactly is going on with the different (new and changed) D6 update functions for D7 and D6 in #5 and #6. But those have been committed already anyway.)

juliangb’s picture

Status: Reviewed & tested by the community » Fixed

Thanks for reviewing. I've committed #11.

The previously committed patches simply increase the length of the database field to fit a longer description field.

esmerel’s picture

In case anyone else runs into this:

I ran into this problem (didn't check the queue before installing), and had to disable the module manually in the database. I also had to manually truncate cache/cache_bootstrap (I assume bootstrap was the one I really had to do), and one of the two enabled me to get back to the modules page. I wasn't able to even though the module had been disabled.

juliangb’s picture

Did you try upgrading to the -dev release?

Considering the problems this causes, I'll push another point release when I get a chance (was hoping to have a few more changes but haven't had time yet).

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.