LOCK TABLES error

stevepurkiss - August 29, 2007 - 18:26
Project:Auto Expire
Version:5.x-1.x-dev
Component:Code
Category:bug report
Priority:critical
Assigned:mariuss
Status:closed
Description

Hi,

I just installed this module but when I try to enable it for a content type, this is what I get (is repeated a few more times but just posted the first couple here):

Warning: Table 'system' was not locked with LOCK TABLES query: SELECT * FROM system WHERE type = 'theme' in C:\xampp\htdocs\mysite.com\includes\database.mysql.inc on line 172

Warning: Table 'watchdog' was not locked with LOCK TABLES query: INSERT INTO watchdog (uid, type, message, severity, link, location, referer, hostname, timestamp) VALUES (1, 'php', 'Duplicate entry 'auto_expire_node_type_casetracker_basic_project_' for key 1\nquery: INSERT INTO variable (name, value) VALUES ('auto_expire_node_type_casetracker_basic_project_expire', 'i:0;') in C:\\xampp\\htdocs\\mysite.com\\includes\\database.mysql.inc on line 172.', 2, '', 'http://localhost/mysite.com/admin/settings/auto_expire', 'http://localhost/mysite.com/admin/settings/auto_expire', '127.0.0.1', 1188411751) in C:\xampp\htdocs\mysite.com\includes\database.mysql.inc on line 172

...not sure what to do - any ideas?

#1

mariuss - August 30, 2007 - 15:07
Category:support request» bug report
Priority:normal» critical
Assigned to:Anonymous» mariuss

It's probably a size limitation issue with variable names, please have a look at this issue:
http://drupal.org/node/165227

Not sure how to fix this yet, for now try to apply one of the two workarounds suggested there.

#2

stevepurkiss - August 31, 2007 - 12:07

Thanks, yes, I changed the variable name length to 255 and it's working ok now.

fyi, the sql phpmyadmin produced to do the change was:

ALTER TABLE `variable` CHANGE `name` `name` VARCHAR( 255 ) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL

#3

mariuss - September 3, 2007 - 23:34
Status:active» fixed

All variable names should fit the 48 characters limit now.

Run the update.php script after upgrading to the latest version, existing variables will be automatically renamed.

#4

Anonymous - September 18, 2007 - 00:21
Status:fixed» closed
 
 

Drupal is a registered trademark of Dries Buytaert.