An Issue related to Learnpress 3.0 Update
-
AuthorPosts
-
-
March 19, 2018 at 2:18 PM #276732
Hayri Kılıç
ParticipantHello,
I updated the “Learnpress plugin” from 2.2.1 to 3.0.0 at my “Eduma Theme” powered website.
I’m getting the notice below and it affects the site negatively.
Notice: Trying to get property of non-object in /home/**/**/wp-includes/class-wp-query.php on line 3736
Notice: Trying to get property of non-object in /home/**/**/wp-includes/class-wp-query.php on line 3738
Notice: Trying to get property of non-object in /home/**/**/wp-includes/class-wp-query.php on line 3740When I de-activate the learn-press plugin, this notice disappears so It seems something in the plugin crashes the system.
Website : http://www.goakademy.com
Kind Regards,
-
March 20, 2018 at 10:42 PM #278056
Hayri Kılıç
ParticipantI found the reason of the error after installing and debugging with “query monitoring” plugin.
“Thim-Login-Popup” widget was creating a warning and crashing the site. The problem is :
“array_keys() expects parameter 1 to be array, object given”
Related function
—
learn_press_user_profile_link()
wp-content/themes/eduma/inc/widgets/login-popup/tpl/base.php:9
learn_press_get_current_profile_tab()
wp-content/plugins/learnpress/inc/user/lp-user-functions.php:1787
array_keys()
wp-content/plugins/learnpress/inc/lp-core-functions.php:2257Solution
—
* After I installed the “query monitoring”, the plugins stopped that the warnings caused the crashes.
* On customization of theme, “Thim-Login-Popup” widget could be removed (not a good solution).
* It could be a bug so a bug-fix may be a solution. I inform the Thimpress team here. -
March 22, 2018 at 10:36 AM #279250
Hayri Kılıç
ParticipantGood news! This bug has been solved by 3.0.3 as stated below :
“~ Fixed warning notice when getting current tab in profile”
Thanks to Thimpress.
-
March 23, 2018 at 5:24 PM #280400
Anonymous
InactiveDear Hayri Kılıç,
Thanks!
I’ll close this ticket.
Best regards,
Huyen Anh
-
-
AuthorPosts
You must be logged in to reply to this topic. You can click here