Home Forums WoodMart support forum [Warning] Undefined variable $page_id in class-layout.php:187

[Warning] Undefined variable $page_id in class-layout.php:187

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #645153

    maloneweb
    Participant

    Greetings,

    The function set_content_layout() triggers a warning because $page_id is used without being declared or assigned a value before usage.

    woodmart/inc/classes/class-layout.php:187

    Sincerely,
    Mohammed

    • This topic was modified 11 hours, 38 minutes ago by maloneweb.
    #645178

    Artem Temos
    Keymaster

    Hello,

    Please disable any plugins not directly related to our theme and provide us with your admin access details. We will log in to your dashboard and investigate the issue. Please ensure that you only keep the following plugins that are necessary for our theme to work correctly:
    – WoodMart core
    – WooCommerce
    – Elementor/WPBakery Page Builder

    Thank you in advance.

    #645249

    maloneweb
    Participant

    Greetings,

    For security reasons we have disabled WordPress theme editor, so you can’t check the files.
    but you can find it in the theme file “inc/classes/class-layout.php” on line 187

    I think it’s because of the patch “644739

    This is the original function before the patch
    https://i.ibb.co/Fq39qBm9/before-patch.png

    And this is the function after the patch
    https://i.ibb.co/SXmZNKL0/after-patch.png

    You need to add
    $page_id = $this->get_page_id();

    Sincerely,
    Mohammed

    #645254

    Artem Temos
    Keymaster

    Hello,

    You can fix it by applying patch # 645252. To do this, go to Dashboard -> WoodMart -> Patcher, find the corresponding patch and click on the “Apply” button. Let us know if it works for you.

    Kind Regards

    #645259

    maloneweb
    Participant

    Thanks for your help.

    #645284

    Artem Temos
    Keymaster

    You are always welcome.

Viewing 6 posts - 1 through 6 (of 6 total)

The topic ‘[Warning] Undefined variable $page_id in class-layout.php:187’ is closed to new replies.