Troubleshooting

Plugin pluginname was not loaded (does not support SqlTablePrefix)

Scenario:
"I have Nucleus 3.2x installed and just tried to install the plugin "NP_PluginName". The following error could be found in the actionlog:

Plugin NP_PluginName was not loaded (does not support SqlTablePrefix)

What does this mean? How can I get my plugin to work?

Original forum thread:
http://forum.nucleuscms.org/viewtopic.php?t=11374

Solution (thanks, admun!):
This error occurs when you are trying to install a plugin that was written prior to Nucleus 3.2x. Nucleus 3.2x versions feature a new function called tableprefix.

To fix this, open up your NP_PluginName.php file and find this line:

class NP_PluginName extends NucleusPlugin {

then copy and paste the following code AFTER the above line:

  function supportsFeature($what) {
    switch($what) {
      case 'SqlTablePrefix':
        return 1;
      default:
        return 0;
    }
  }

Save your plugin file and reupload to your /nucleus/plugins/ directory. Now you should be able to install the plugin.

section: Troubleshooting | submitted by Leng on 2006.Mar.18 | 2793 views

item rate
Total votes: 7 - Rating: 8.14

Please tell us how useful this answer was to you (0 = useless, 10 = very very helpful):

10