Fatal Error
-
Hi,
We are having a fatal error when the add-on is activated.
The site is old (WordPress version is 5.0.3) with PHP 7.2.
Beautiful cookie consent appears as compatible in the plugin list.
The free plugin and banner works (not activated currently but I already activated and checked), the problem is when I activate the paid add-on. When I activate it shows a blank page and the error:
Fatal error: Uncaught Error: Call to undefined function str_starts_with() in /public_html/wp-content/plugins/beautiful-and-responsive-cookie-consent-addon/class/class-nsc_bara_addon_configs.php:28 Stack trace: #0 /public_html/wp-content/plugins/beautiful-and-responsive-cookie-consent/class/class-nsc_bar_plugin_configs.php(159): nsc_bara_addon_configs->nsc_bara_add_addon_settings(Object(stdClass)) #1 /public_html/wp-content/plugins/beautiful-and-responsive-cookie-consent/class/class-nsc_bar_plugin_configs.php(91): nsc_bar_plugin_configs->set_settings_as_object() #2 /public_html/wp-content/plugins/beautiful-and-responsive-cookie-consent/class/class-nsc_bar_plugin_configs.php(60): nsc_bar_plugin_configs->nsc_bar_return_plugin_settings_without_db_settings() #3 /public_html/wp-content/plugins/beautiful-and-responsive-cookie-consent/class/class-nsc_bar_plugin_configs.php(137): nsc_bar_plugin_configs->nsc_bar_return_plugin_settings() #4 /public_html/wp in /home/admepor/public_html/wp-content/plugins/beautiful-and-responsive-cookie-consent-addon/class/class-nsc_bara_addon_configs.php on line 28
I have searched for this error and appears that str_starts_with() is a function introduced in PHP 8.0 but your plugin says it compatible with PHP 7.2?
I was wondering if this can be resolved because we can’t update the PHP Version because the client doesn’t want to update the WordPress and plugins.
The topic ‘Fatal Error’ is closed to new replies.