bobbingwide / oik-types

oik custom content type manager
http://www.oik-plugins.com/oik-plugins/oik-types/
GNU General Public License v2.0
1 stars 0 forks source link

Fatal error when bw_trace2 function not defined #11

Open bobbingwide opened 7 years ago

bobbingwide commented 7 years ago

While upgrading oik and oik-bwtrace in a WordPress Multisite installation ( oik-plugins.eu ) I got a Fatal error; produced when oik-types attempted to call bw_trace2.

Expected output

No fatal error. Oik-types is dependent upon oik and oik-fields so should not be using functions until it’s safe to do so.

Actual output

Fatal error: Uncaught Error: Call to undefined function bw_trace2() in oik-types/oik-types.php:460

Explanation

During an upgrade to the latest version of oik-bwtrace and oik I'd deactivated oik-bwtrace to avoid a compatibility problem between non-final versions. But somehow the oik plugin had also become deactivated. This was unexpected. So bw_trace2 was not being loaded by either of these plugins.

Workaround

Deactivate oik-types prior to updating oik.

Proposed solution

It’s an unexpected situation leading to an unexpected result. It should be tested in both WPMS and straight WordPress.