• Resolved global16323

    (@global16323)


    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.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Nikel

    (@nikelschubert)

    Hi,

    thanks for the report and sorry for the trouble. Will release a fix ASAP. Latest tomorrow morning. But in the future please reach out via e-mail, as support for paid plugins is not allowed on wordpress.org according to wordpress rules.

    Regards

    Plugin Author Nikel

    (@nikelschubert)

    With add-on version 3.8.2 it is fixed now. You can download it in the customer portal: https://portal.beautiful-cookie-banner.com/

    With the next 24h it should be offered to you as update in the plugin area.

    Just a warning: your installation is really old. This plugin supports officially from > WP 5.2

    Regards

    Thread Starter global16323

    (@global16323)

    Thank you, will download and test.

    And yes, i did e-mail previously to info@beautiful-cookie-banner.com as per the website mentions but never got reply. I checked the spam folder.

    My e-mail was sent on Monday 05/05/2025, so 2 days ago at 6pm. Timezone is UTC +0 Europe

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Fatal Error’ is closed to new replies.