- This topic has 1 reply, 2 voices, and was last updated 4 years ago by
Tom.
-
AuthorPosts
-
March 28, 2019 at 4:25 am #852275
Natalie
I have solved this, but putting here in case anyone else gets the same issue.
I have WPML plugin installed (version 4.2.4.1).
On the WPML -> Languages page it has this section:
https://my.pcloud.com/publink/show?code=XZwMH67ZC5E11mttVo5Hz8lUFCReWfALJFPV
When I went to that page I was getting an error just before that section (I have removed my website path from the error message):
( ! ) Notice: Undefined property: stdClass::$container_class in \wp-content\themes\generatepress\inc\structure\navigation.php on line 222
Call Stack
# Time Memory Function Location
1 0.0007 422576 {main}( ) …\admin.php:0
2 2.0483 111964144 include( ‘\wp-content\plugins\sitepress-multilingual-cms\menu\languages.php’ ) …\admin.php:284
3 2.4120 114382160 do_action( ) …\languages.php:662
4 2.4120 114382568 WP_Hook->do_action( ) …\plugin.php:465
5 2.4120 114382600 WP_Hook->apply_filters( ) …\class-wp-hook.php:310
6 2.4120 114383616 WPML_LS_Admin_UI->after_languages_url_format_action( ) …\class-wp-hook.php:286
7 2.4122 114383664 WPML_LS_Admin_UI->get_main_ui_model( ) …\class-wpml-ls-admin-ui.php:205
8 2.4139 114422992 WPML_LS_Admin_UI->get_all_previews( ) …\class-wpml-ls-admin-ui.php:326
9 2.4139 114423424 WPML_LS_Render->get_preview( ) …\class-wpml-ls-admin-ui.php:279
10 2.4139 114423480 WPML_LS_Render->render_menu_preview( ) …\class-wpml-ls-render.php:112
11 2.4218 114683624 walk_nav_menu_tree( ) …\class-wpml-ls-render.php:240
12 2.4218 114684912 Walker_Nav_Menu->walk( ) …\nav-menu-template.php:574
13 2.4218 114686496 Walker_Nav_Menu->display_element( ) …\class-wp-walker.php:246
14 2.4218 114686872 Walker_Nav_Menu->start_el( ) …\class-wp-walker.php:145
15 2.4220 114690624 apply_filters( ) …\class-walker-nav-menu.php:221
16 2.4220 114691024 WP_Hook->apply_filters( ) …\plugin.php:208
17 2.4220 114692416 generate_dropdown_icon_to_menu_link( ) …\class-wp-hook.php:286I had: define(‘WP_DEBUG’, true ) in wp-config.php
if I set: define(‘WP_DEBUG’, false ) then all is OKAs I won’t have debugging turned on for the live site then it is no problem
GeneratePress 2.2.2GP Premium 1.7.8March 28, 2019 at 2:49 pm #852907Tom
Lead DeveloperLead DeveloperThanks for reporting this! Fixed in GP 2.3 🙂
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-development -
AuthorPosts
- You must be logged in to reply to this topic.