• Resolved dimal

    (@dimalifragis)


    This is showing the last weeks or so. WP latest and PHP 8.0.x, Kadence theme.

    thrown in /home/wp-includes/template.php on line 705
    #18 {main}
    #17 /home/index.php(17): require('/home/xxxxxxx/…')
    #16 /home/wp-blog-header.php(13): require_once('/home/xxxxxxx/…')
    #15 /home/wp-load.php(52): require_once('/home/xxxxxxx/…')
    #14 /home/wp-config.php(86): require_once('/home/xxxxxxx/…')
    #13 /home/wp-settings.php(549): do_action()
    #12 /home/wp-includes/plugin.php(517): WP_Hook->do_action()
    #11 /home/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()
    #10 /home/wp-includes/class-wp-hook.php(308): WP_Customize_Manager->setup_theme()
    #9 /home/wp-includes/class-wp-customize-manager.php(552): WP_Customize_Manager->wp_die()
    #8 /home/wp-includes/class-wp-customize-manager.php(455): wp_enqueue_scripts()
    #7 /home/wp-includes/script-loader.php(2180): do_action()
    #6 /home/wp-includes/plugin.php(517): WP_Hook->do_action()
    #5 /home/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()
    #4 /home/wp-includes/class-wp-hook.php(308): Moove_GDPR_Actions->moove_frontend_gdpr_scripts()
    #3 /home/wp-content/plugins/gdpr-cookie-compliance/class-moove-gdpr-actions.php(745): gdpr_get_module()
    #2 /home/wp-content/plugins/gdpr-cookie-compliance/gdpr-functions.php(298): GDPR_Modules->get_branding_styles()
    #1 /home/wp-content/plugins/gdpr-cookie-compliance/class-gdpr-modules.php(355): GDPR_Modules_View::load()
    #0 /home/wp-content/plugins/gdpr-cookie-compliance/class-gdpr-modules-view.php(33): locate_template()
    Stack trace:
    [20-Feb-2023 13:24:07 UTC] PHP Fatal error: Uncaught Error: Undefined constant "STYLESHEETPATH" in /home/wp-includes/template.php:705
    • This topic was modified 2 years, 1 month ago by dimal.
Viewing 1 replies (of 1 total)
  • Plugin Author Moove Agency

    (@mooveagency)

    Hi @dimalifragis

    We tested our plugin in a clean WordPress install with PHP 8.0, Kadence theme installed and activated. There are no PHP errors, so the issue is related to something else.

    The PHP error reported could be related to a third party plugin which modifies the “locate_template” function. We’re using the “locate_template” function in our GDPR plugin to load the correct GDPR modules.

    Hope this helps.

Viewing 1 replies (of 1 total)
  • The topic ‘PHP Fatal error: Uncaught Error: Undefined constant’ is closed to new replies.