Upgrade from an old version of Anspress

3.85K viewsIssues

I have an WP site that at some point had Anspress installed. Not sure if this was 2 or 3 version. Almost empty from Questions.

Updating to Anspress 4, i saw that fatal error. MAYBE it helps to debug the conversion from old to vs4.


[08-Mar-2017 15:39:36 UTC] PHP Fatal error:  Uncaught Error: Call to a member function get_queried_object() on null in /home/wp-includes/query.php:45
Stack trace:
#0 /home/wp-content/plugins/anspress-question-answer/includes/functions.php(146): get_queried_object()
#1 /home/wp-content/plugins/anspress-question-answer/includes/functions.php(169): is_anspress()
#2 /home/wp-content/plugins/anspress-question-answer/includes/views.php(40): is_question()
#3 /home/wp-includes/class-wp-hook.php(298): AnsPress_Views::insert_views(”)
#4 /home/wp-includes/class-wp-hook.php(323): WP_Hook->apply_filters(NULL, Array)
#5 /home/wp-includes/plugin.php(453): WP_Hook->do_action(Array)
#6 /home/wp-includes/load.php(677): do_action(‘shutdown’)
#7 [internal function]: shutdown_action_hook()
#8 {main}
thrown in /home/wp-includes/query.php on line 45


Hello Cagliostro,

I remember, I have fixed this issue in 2.x. This was due to overriding WP titles by AnsPress. But this issue does not exists in new versions.

You are viewing 1 out of 1 answers, click here to view all answers.