Legenda Core Calls is_child_theme() Too Early Under PHP 8.x

This topic has 2 replies, 2 voices, and was last updated 2 years, 1 months ago ago by Olga Barlow

  • Avatar: mzteam
    mzteam
    Participant
    June 24, 2022 at 19:24

    Hello All,

    I’m trying to migrate from PHP 7.4 to PHP 8.1, but Legenda Core 1.0.4 isn’t cooperating. It throws an undefined constant error under PHP 8.x.

    Hoping this will be resolved soon!

    [24-Jun-2022 17:23:09 UTC] PHP Fatal error: Uncaught Error: Undefined constant “TEMPLATEPATH” in /home/*******/*******.dreamhosters.com/wp-includes/theme.php:158
    Stack trace:
    #0 /home/*******/*******.dreamhosters.com/wp-content/plugins/legenda-core/legenda-core.php(19): is_child_theme()
    #1 /home/*******/*******.dreamhosters.com/wp-settings.php(428): include_once(‘/home/*******/*******…’)
    #2 /home/*******/*******.dreamhosters.com/wp-config.php(100): require_once(‘/home/*******/*******…’)
    #3 /home/*******/*******.dreamhosters.com/wp-load.php(50): require_once(‘/home/*******/*******…’)
    #4 /home/*******/*******.dreamhosters.com/wp-admin/admin.php(34): require_once(‘/home/*******/*******…’)
    #5 /home/*******/*******.dreamhosters.com/wp-admin/plugins.php(10): require_once(‘/home/*******/*******…’)
    #6 {main}
    thrown in /home/*******/*******.dreamhosters.com/wp-includes/theme.php on line 158

    1 Answer
    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    June 24, 2022 at 20:18

    Hello,

    Provide us with WP Dashboard and FTP access to your site, please. We’ll check the issue in more detail.

    Regards

  • Viewing 2 results - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.Log in/Sign up

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.