• Resolved btuniss

    (@btuniss)


    After updating the Cookies and Content Security Policy plugin, I’m encountering the following error:

    Error Stack Trace:

    wp-content/plugins/cookies-and-content-security-policy/inc/settings-cacsp.php:138
    WPForms\ErrorHandler->fallback_error_handler()
    wp-content/plugins/wpforms-lite/src/ErrorHandler.php:271
    WPForms\ErrorHandler->error_handler()
    wp-content/plugins/wpforms-lite/src/ErrorHandler.php:271
    WPForms\ErrorHandler->fallback_error_handler()
    wp-content/plugins/wpforms-lite/src/ErrorHandler.php:271
    WPForms\ErrorHandler->error_handler()
    wp-content/plugins/cookies-and-content-security-policy/inc/settings-cacsp.php:138
    cacsp_options()
    wp-includes/class-wp-hook.php:341
    do_action(‘settings_page_cacsp_settings’)
    wp-admin/admin.php:264

    The error appears to be triggered when accessing the plugin settings page and seems to involve a conflict with the WPForms plugin’s error handler.

    Please advise on how to resolve this issue.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Johan Jonk Stenström

    (@jonkastonka)

    The stack trace alone isn’t enough to pinpoint the root cause because it doesn’t include the actual PHP error message.

    Please share the exact error text (the “Fatal error/TypeError/Warning” line) and where you saw it (screen vs debug.log). Also confirm:

    1. WordPress version
    2. PHP version
    3. Which admin page/tab triggers it (Settings > Cookies and Content Security Policy, and which tab)
    Thread Starter btuniss

    (@btuniss)

    Thank you for your response.

    Here is the information you requested:

    1. WordPress version: 6.9.1
    2. PHP version: 8.1.31
    3. Admin page/tab: Settings > Cookies and Content Security Policy > Design tab

    Error messages (detected via Query Monitor):

    Warning 1:
    include_once(settings-cacsp-tab-design.php): Failed to open stream: No such file or directory
    Location: wp-content/plugins/cookies-and-content-security-policy/inc/settings-cacsp.php:138

    Warning 2:
    include_once(): Failed opening ‘settings-cacsp-tab-design.php’ for inclusion (include_path=’.:/usr/share/php’)
    Location: wp-content/plugins/cookies-and-content-security-policy/inc/settings-cacsp.php:138

    Both errors appear when accessing the Design tab in the plugin settings. It seems that the file ‘settings-cacsp-tab-design.php’ is missing from the plugin directory after the update.

    Best regards

    • This reply was modified 1 month, 1 week ago by btuniss.
    Plugin Author Johan Jonk Stenström

    (@jonkastonka)

    My bad, I forgot to add a new file, that is fixed in the latest version. Thanks for the heads up!

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

You must be logged in to reply to this topic.