Closed bobbingwide closed 3 years ago
I got this again during the refactoring of the oik-blocks/fields
block. The line number in oik-blocks.php is quite different due to the refactoring.
The pragmatic fix is to load the logic if it's missing.
eg in oik_blocks_check_server_func()
add the following code.
if ( !function_exists( 'is_plugin_active') ) {
require_once ABSPATH . 'wp-admin/includes/admin.php';
}
Fix was committed in 4e760d3a449ed2ddf049866af4b40dccdc7b327f
Fatal error: Uncaught Error: Call to undefined function is_plugin_active() in C:\apache\htdocs\wordpress\wp-content\plugins\oik-blocks\oik-blocks.php:408