Fatal error (ver. 2.8.2)
-
I am getting the following fatal error from polylang, when I select a custom taxonomy generated by the plugin GD Topic Prefixes (https://plugins.dev4press.com/gd-topic-prefix/)
[12-Oct-2020 22:26:19 UTC] PHP Fatal error: Uncaught Error: Cannot use object of type WP_Term as array in /var/www/vhosts/kiwitrees.net/httpdocs/wp-content/plugins/polylang/include/query.php:39
Stack trace:
#0 /var/www/vhosts/kiwitrees.net/httpdocs/wp-content/plugins/polylang/include/query.php(44): PLL_Query->have_translated_taxonomy(Array)
#1 /var/www/vhosts/kiwitrees.net/httpdocs/wp-content/plugins/polylang/include/query.php(120): PLL_Query->have_translated_taxonomy(Array)
#2 /var/www/vhosts/kiwitrees.net/httpdocs/wp-content/plugins/polylang/frontend/frontend.php(128): PLL_Query->filter_query(Object(PLL_Language))
#3 /var/www/vhosts/kiwitrees.net/httpdocs/wp-includes/class-wp-hook.php(287): PLL_Frontend->parse_query(Object(WP_Query))
#4 /var/www/vhosts/kiwitrees.net/httpdocs/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters(NULL, Array)
#5 /var/www/vhosts/kiwitrees.net/httpdocs/wp-includes/plugin.php(544): WP_Hook->do_action(Array)
#6 /var/www/vhosts/kiwitrees.net/httpdocs/wp-includes/class-wp-query.php(1080): do_action_ref_array(‘parse_quer in /var/www/vhosts/kiwitrees.net/httpdocs/wp-content/plugins/polylang/include/query.php on line 39I have temporarily “avoided” the error for now by commenting out lines 44-46 in function have_translated_taxonomy() in plugins/polylang/include/query.php
What is the correct fix?
- The topic ‘Fatal error (ver. 2.8.2)’ is closed to new replies.