• Resolved Dario

    (@dariopiantanida)


    Hello, today we upgraded our PHP from version 8.0 to version 8.3.

    This broke the Appearance / Customize function, the tools on the left don’t load and the spinner keeps… spinning!

    In Chrome debug tool I found that admin-ajax.php returns error code 500, so I got to WordPress logs and found the error below.

    Could you please confirm it is due to the new PHP version? Could you fix this?

    Tomorrow I’ll try rolling back to v 8.2 or lower, but v 8.3 was required by a different plugin I have.

    Please help, thank you!

    Uncaught Error: Call to a member function is_preview_mode() on null
    Stack trace:
    #0 /wp-content/plugins/royal-elementor-addons/admin/includes/wpr-render-templates.php(238): WprAddons\Admin\Includes\WPR_Conditions_Manager::header_footer_display_conditions()
    #1 /wp-includes/class-wp-hook.php(324): WprAddons\Admin\Includes\WPR_Render_Templates->enqueue_scripts()
    #2 /wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
    #3 /wp-includes/plugin.php(517): WP_Hook->do_action()
    #4 /wp-includes/script-loader.php(2299): do_action()
    #5 /wp-includes/class-wp-customize-manager.php(462): wp_enqueue_scripts()
    #6 /wp-includes/class-wp-customize-manager.php(561): WP_Customize_Manager->wp_die()
    #7 /wp-includes/class-wp-hook.php(324): WP_Customize_Manager->setup_theme()
    #8 /wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
    #9 /wp-includes/plugin.php(517): WP_Hook->do_action()
    #10 /wp-settings.php(653): do_action()
    #11 /wp-config.php(109): require_once('/home/nm58rdpi/...')
    #12 /wp-load.php(50): require_once('/home/nm58rdpi/...')
    #13 /wp-blog-header.php(13): require_once('/home/nm58rdpi/...')
    #14 /index.php(17): require('/home/nm58rdpi/...')
    #15 {main} thrown in /wp-content/plugins/royal-elementor-addons/admin/includes/wpr-conditions-manager.php on line 43
    Plugin: Royal Elementor Addons
    File: /wp-content/plugins/royal-elementor-addons/admin/includes/wpr-conditions-manager.php
    Line: 43
Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi.

    Thank you for choosing our product.

    Please Navigate to Tools > Site Health > Info (tab) and click on the “Copy site info to clipboard” button, then send the information to our email: royalelementoraddons@gmail.com

    Also, navigate to Tools > Export – choose All Content click on Download Export File, and then send this file to our email as well.

    We will analyze your system and replicate the same case. This will help us debug the issue much easier and provide a faster solution.

    P.S. Please don’t forget to mention the support URL from wordpress.org.

    Kind regards, Sophia

    Thread Starter Dario

    (@dariopiantanida)

    Hello, we switched back to PHP 8.0, but the left sidebar still does not load. The error is now different, though.

    I’m sending the required files.

    {
    "code": "qm_fatal",
    "message": "Uncaught Error: Undefined constant \"AGREEK_ADMIN\" in /home/nm58rdpi/public_html/wp-content/themes/charety/admin/customizer/charety-customizer-setting.php on line 180",
    "data": {
    "message": "Uncaught Error: Undefined constant \"AGREEK_ADMIN\"",
    "file": "/home/nm58rdpi/public_html/wp-content/themes/charety/admin/customizer/charety-customizer-setting.php",
    "line": 180,
    "trace": [
    {
    "file": "/home/nm58rdpi/public_html/wp-includes/class-wp-hook.php",
    "line": 324,
    "function": "charety_customizer_fields_trigger_fun"
    },
    {
    "file": "/home/nm58rdpi/public_html/wp-includes/class-wp-hook.php",
    "line": 348,
    "function": "apply_filters",
    "class": "WP_Hook",
    "type": "->"
    },
    {
    "file": "/home/nm58rdpi/public_html/wp-includes/plugin.php",
    "line": 517,
    "function": "do_action",
    "class": "WP_Hook",
    "type": "->"
    },
    {
    "file": "/home/nm58rdpi/public_html/wp-admin/admin-ajax.php",
    "line": 192,
    "function": "do_action"
    }
    ]
    }
    }
Viewing 2 replies - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.