Fatal error: Call to undefined function oik_require() in oik\admin\oik-header.inc on line 2
Cause
This problem occurs in the WordPress admin pages when the oik-header plugin is activated but oik is not activated.Response
As it’s a fatal error in the WordPress admin pages, the only way you can recover from this is to alter the files directly. On a hosted site this means using the control panel functionality or FTP.Quick fix
- Access your server file using the control panel or FTP site
- Navigate to the wp-content/plugins/oik folder
- Rename or delete the file called oik-header.php
Workaround
If you are able to edit the files on your server then this solution will enable you to continue to use the oik plugin’s custom header image functionality.- Edit the file oik/oik-header.php Note: this is a different file from where the error occurred.
- Move the last 3 non-blank lines from the end of the file to inside the oik_header_init() function.
- Save the changes
function oik_header_init() {
if ( is_admin() ) {
require_once( 'admin/oik-header.inc' );
}
add_action( 'wp_footer', 'bw_page_header_style' );
}
This should re-enable the admin pages. You should now activate the oik plugin.
