Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

active crash #1

Closed
sanitpeng opened this issue Jul 25, 2023 · 1 comment · Fixed by #4
Closed

active crash #1

sanitpeng opened this issue Jul 25, 2023 · 1 comment · Fixed by #4

Comments

@sanitpeng
Copy link

sanitpeng commented Jul 25, 2023

Hello, I hope you don't mind. This extension you've created is exactly what we need. Thank you.
However, after I installed it and tried to activate it, it prompted a crash.
My system:
wordpress:6.1.1
polylang:3.4.4
ultimate-member:2.6.8

crash log:

Fatal error: Uncaught Error: Call to a member function get_prop() on bool in /usr/local/lighthouse/softwares/wordpress/wp-content/plugins/um-polylang/includes/core/class-um-polylang.php:127
Stack trace:

#0 /usr/local/lighthouse/softwares/wordpress/wp-content/plugins/um-polylang/includes/core/class-mail.php(159): UM_Polylang->get_current() 
#1 /usr/local/lighthouse/softwares/wordpress/wp-includes/class-wp-hook.php(308): um_ext\um_polylang\core\Mail->email_table_items() 
#2 /usr/local/lighthouse/softwares/wordpress/wp-includes/plugin.php(205): WP_Hook->apply_filters() 
#3 /usr/local/lighthouse/softwares/wordpress/wp-content/plugins/ultimate-member/includes/class-config.php(330): apply_filters() 
#4 /usr/local/lighthouse/softwares/wordpress/wp-content/plugins/ultimate-member/includes/class-init.php(1051): um\Config->__construct() 
#5 /usr/local/lighthouse/softwares/wordpress/wp-content/plugins/ultimate-member/includes/admin/core/class-admin-settings.php(272): UM->config() 
#6 /usr/local/lighthouse/softwares/wordpress/wp-includes/c in /usr/local/lighthouse/softwares/wordpress/wp-content/plugins/um-polylang/includes/core/class-um-polylang.php on line 127

thank you

@umdevelopera
Copy link
Owner

Hi @sanitpeng

This Fatal error occurs if Polylang returns bool instead of the PLL_Language object. I can not reproduce this issue, Polylang returns a valid PLL_Language object on my site. Please describe steps needed to reproduce this issue.
I changed the code to avoid a Fatal error. Please try a version from the branch development.

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants