Title: PHP Error Message on Elementor page
Last modified: November 15, 2022

---

# PHP Error Message on Elementor page

 *  Resolved [mariyamamir](https://wordpress.org/support/users/mariyamamir/)
 * (@mariyamamir)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/php-error-message-on-elementor-page/)
 * Hi,
 * I’m on localhost trying to setup a menu on my WordPress site using your plugin.
   I was able to add the menu items and create a menu just fine from the WP dashboard,
   but when I went to Elementor to add the menu items on my home page, the page 
   got all messed up, and displayed this error at the top multiple times:
 * Warning: Undefined property: fdmBlocks::$style in C:\xampp\htdocs\wp1\wp-content\
   plugins\food-and-drink-menu\includes\class-blocks.php on line 157
 * The rest of the page was visible but this for some reason also disabled the save
   page option completely at the bottom of the page – basically I don’t think this
   plugin is very compatible with Elementor (even though it said it was on the plugin).
   Is there any fix for this? Because the plugin has exactly what I need and I’d
   love to make it work for my site.
 * Thanks!

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Support [jaysupport](https://wordpress.org/support/users/jaysupport/)
 * (@jaysupport)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/php-error-message-on-elementor-page/#post-16210228)
 * Hi Mariya,
 * Since you’re using a page builder, what happens if you use the shortcode instead
   of the block?
 * For example: `[fdm-menu id="1"]`
 * [https://doc.fivestarplugins.com/plugins/food-and-drink-menu/user/advanced/shortcodes](https://doc.fivestarplugins.com/plugins/food-and-drink-menu/user/advanced/shortcodes)
 *  Thread Starter [mariyamamir](https://wordpress.org/support/users/mariyamamir/)
 * (@mariyamamir)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/php-error-message-on-elementor-page/#post-16216075)
 * Hi Jay,
 * Unfortunately I cannot try this because I get the error message as soon as I 
   activate the plugin – it displays on the elementor page and I have no way of 
   saving the page after inputting the shortcode.
 * Thanks,
    Mariyam
 *  Plugin Support [jaysupport](https://wordpress.org/support/users/jaysupport/)
 * (@jaysupport)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/php-error-message-on-elementor-page/#post-16220438)
 * Hi Mariyam,
 * I’m not sure I follow. You mentioned in your first message that the error happened
   when trying to add the item via the Elementor builder. Now you are saying that
   you can’t even activate our plugin. Are these two separate things? If not, what
   is the exact issue you are having?
 * I just tested our plugin with Elementor and it works fine if you just add a text
   element or shortcode element, and then put the fdm-menu shortcode in it.
 * With that in mind, I’d like to know the exact steps you are taking to recreate
   this error.
 * Thanks!
 *  Thread Starter [mariyamamir](https://wordpress.org/support/users/mariyamamir/)
 * (@mariyamamir)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/php-error-message-on-elementor-page/#post-16226793)
 * Hi Jay,
 * Thanks for your quick response.
 * Yes sorry for not clarifying earlier, when I activate your plugin I get this 
   error on the Elementor page – this is the issue. But the error popped up after
   I created the menu itself, and now it’s there constantly when the plugin is activated.
 * This prevents me from adding the shortcode on the page.
 * Here’s what the error looks like on the page: [https://ibb.co/hmzYSHm](https://ibb.co/hmzYSHm)
 * Thanks,
    Mariyam
 *  Plugin Support [jaysupport](https://wordpress.org/support/users/jaysupport/)
 * (@jaysupport)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/php-error-message-on-elementor-page/#post-16228983)
 * Thank you for that. So that line of code is used to load your chosen menu style
   into the block editor. My guess is that the page is still being recognized as
   the block editor, even though Elementor is activated (because, if it weren’t,
   then that code wouldn’t run) and that there is some conflict with your instance
   of Elementor where it is not letting the call to the chosen style return correctly.
 * What happens if you make a change to the “Menu Formatting” option (at the top
   of the Basic settings page), save that settings page, and then go back to your
   page with the elementor builder? Does the warning still come up?
 * Also, is this only happening with debug enabled?

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘PHP Error Message on Elementor page’ is closed to new replies.

 * ![](https://ps.w.org/food-and-drink-menu/assets/icon-128x128.png?rev=2205559)
 * [Five Star Restaurant Menu and Food Ordering](https://wordpress.org/plugins/food-and-drink-menu/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/food-and-drink-menu/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/food-and-drink-menu/)
 * [Active Topics](https://wordpress.org/support/plugin/food-and-drink-menu/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/food-and-drink-menu/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/food-and-drink-menu/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [jaysupport](https://wordpress.org/support/users/jaysupport/)
 * Last activity: [3 years, 6 months ago](https://wordpress.org/support/topic/php-error-message-on-elementor-page/#post-16228983)
 * Status: resolved