Make sure that the uninstall schema function is being called

mairav - September 25, 2009 - 18:29
Project:Node Limit Number
Version:6.x-1.0
Component:Code
Category:bug report
Priority:normal
Assigned:jdwfly
Status:closed
Description

After installing the 1.0 version, when i go to admin/settings/node_limitnumber I get the following error:

user warning: Table 'askfordesign_net_site.node_limitnumber_rules' doesn't exist query: node_limitnumber_get_all /* admin : node_limitnumber_get_all */ SELECT * FROM node_limitnumber_rules WHERE class = 'role' in /var/www/html/sites/all/modules/node_limitnumber/node_limitnumber.inc on line 130.

#1

jdwfly - September 25, 2009 - 20:57
Category:bug report» support request
Status:active» postponed (maintainer needs more info)

I just installed this module on a fresh drupal install, but I can't reproduce the error.

Could you post exactly how this happened and if it always happens? The error says that the table does not exist. I would try disabling the module, and then uninstalling it and then re-enabling it. You would of course lose all stored limits when you uninstalled, but from what it sounds like the table isn't there to begin with.

#2

jdwfly - September 25, 2009 - 21:03
Category:support request» bug report
Assigned to:Anonymous» jdwfly

I'll leave it as bug report until I get more information

#3

00110000 - September 25, 2009 - 21:34

I installed this on two sites recently (6.13 & 6.14), it is working perfectly for me so far, just thought I mention it.

#4

mairav - September 27, 2009 - 19:35

It seems that it didn't creat the node_limitnumber_rules table
I looked for it the database but its not there. I tried to disable the module, delete it, and start from scratch, but nothing.
Any ideas?

#5

jdwfly - September 27, 2009 - 21:59

Is the node_limitnumber.install present?

#6

mairav - September 27, 2009 - 22:33

If you mean the node_limitnumber.install file inside the node_limitnumber folder, yes it's there.
I had some time ago, the module for drupal 6 created by users, and then I disabled and deleted it cause the node_limit was more acuratte for my needs.

The module doesn't have the option to uninstall, so I think it left the original reference to the module in the system table, so when I installed it again it thought the table was created, and didn't want to create it.

I deleted the entry in the system table calling to the module, went to the modules pages, enable it again, and now the table has been created.

I recommend you add a Uninstall feature to the module that deletes the table and the entry of the module in the system table.

Thanks, I'll be checking the module with the coming features.

#7

jdwfly - September 28, 2009 - 20:33
Title:user warning: Table 'xxx.node_limitnumber_rules' doesn't exist query» Make sure that the uninstall schema function is being called
Status:postponed (maintainer needs more info)» active

I'll check on this

#8

jdwfly - October 12, 2009 - 23:51
Status:active» closed

Worked fine for me. Going to mark this as closed.

 
 

Drupal is a registered trademark of Dries Buytaert.