Publisher does not support the Fluid field type. Please do not contact asking when support will be available.

If you purchased an add-on from expressionengine.com, be sure to visit boldminded.com/claim to add the license to your account here on boldminded.com.

Ticket: Uninstall Bug: DBForge Class Not Loaded

Status Resolved
Add-on / Version
Severity Critical
EE Version 24

iSphere Technologies

May 05, 2013

Hi, you have a bug with your Wyvern 1.5.7 codebase. In the uninstall method of the Wyvern_upd class you make a call to:

$this->EE->dbforge->drop_table('wyvern_toolbars');

but you have not loaded the Codeigniter Database Forge Class in that method nor do you load it in the constructor. Therefore when I tried uninstalling the module, I got the following error:

A PHP Error was encountered

Severity: Notice

Message: Undefined property: Addons::$dbforge

Filename: wyvern/upd.wyvern.php

Line Number: 169

Fatal error: Call to a member function drop_table() on a non-object in /home/.../.../system/expressionengine/third_party/wyvern/upd.wyvern.php on line 169

#1

BoldMinded (Brian)

On line 168 of that file, just add this:

$this->EE->load->dbforge();

#2

iSphere Technologies

Hi thanks, I already knew how to fix it, I just wanted to let you know so you could roll a fix into the next release. Ordinarily I don’t have a need to uninstall this module but in this case I was uninstalling then re-installing so that Wyvern would pick up the additional toolbar plugins that I uncommented in the config.php file since just uploading and replacing the config.php file on the server was not causing the module to pick up the changes as you said should happen in the docs.

#3

BoldMinded (Brian)

I see. Well, its added to the code so it’ll be in the next release, thanks for the heads up.

Login to reply