PHP 8 error
-
When switching to another theme and with Ocean (PHP 7 4 ) Extra enabled, a message appears:
Use of undefined constant OCEANWP_THEME_VERSION – assumed ‘OCEANWP_THEME_VERSION’ (this will throw an Error in a future version of PHP)
When activating PHP 8 – the site breaks
WordPress version 6.0
Current theme: Kadence (version 1.1.18)
Problem plugin: Ocean Extra (version 2.0.0)
PHP Version 8.0.12An error with the E_ERROR type occurred on line 647 of the /home/h/hxrkxqj/:__________________.ru/public_html/wp-content/plugins/ocean-extra/ocean-extra.php file. Error message: Uncaught Error: Undefined constant “OCEANWP_THEME_VERSION” in /home/h/hxrkxqj/:__________________/public_html/wp-content/plugins/ocean-extra/ocean-extra.php:647
Stack trace:
#0 [internal function]: ocean_theme_is_outdated_admin_notice(”)
#1 /home/h/hxrkxqj/:__________________/public_html/wp-includes/class-wp-hook.php(307): call_user_func_array(‘ocean_theme_is_…’, Array)
#2 /home/h/hxrkxqj/:__________________/public_html/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters(NULL, Array)
#3 /home/h/hxrkxqj/:__________________/public_html/wp-includes/plugin.php(476): WP_Hook->do_action(Array)
#4 /home/h/hxrkxqj/:__________________/public_html/wp-admin/admin-header.php(303): do_action(‘admin_notices’)
#5 /home/h/hxrkxqj/:__________________/public_html/wp-admin/themes.php(246): require_once(‘/home/h/hxrkxqj…’)
#6 {main}
thrown
- The topic ‘PHP 8 error’ is closed to new replies.