Closed (fixed)
Project:
Node Limit Number
Version:
6.x-1.0
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
25 Sep 2009 at 18:29 UTC
Updated:
12 Oct 2009 at 23:51 UTC
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.
Comments
Comment #1
jdwfly commentedI 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.
Comment #2
jdwfly commentedI'll leave it as bug report until I get more information
Comment #3
00110000 commentedI installed this on two sites recently (6.13 & 6.14), it is working perfectly for me so far, just thought I mention it.
Comment #4
mairav commentedIt 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?
Comment #5
jdwfly commentedIs the node_limitnumber.install present?
Comment #6
mairav commentedIf 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.
Comment #7
jdwfly commentedI'll check on this
Comment #8
jdwfly commentedWorked fine for me. Going to mark this as closed.