[Warning] Undefined variable $page_id in class-layout.php:187
-
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 4 months ago by
maloneweb.
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.
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
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
The topic ‘[Warning] Undefined variable $page_id in class-layout.php:187’ is closed to new replies.