Fatalerror in Anspress

3.49K viewsIssues
0

Hi, Sometimes my website showing a 502 Error when I check the Logs, I see this:

PHP Fatal error: Uncaught Error: Call to a member function get_queried_object() on null in /nas/content/live/incube2/wp-includes/query.php:45\nStack trace:\n#0 /nas/content/live/incube2/wp-content/plugins/anspress-question-answer/includes/functions.php(146): get_queried_object()\n#1 /nas/content/live/incube2/wp-content/plugins/anspress-question-answer/includes/functions.php(169): is_anspress()\n#2 /nas/content/live/incube2/wp-content/plugins/anspress-question-answer/includes/views.php(40): is_question()\n#3 [internal function]: AnsPress_Views::insert_views(”)\n#4 /nas/content/live/incube2/wp-includes/class-wp-hook.php(298): call_user_func_array(Array, Array)\n#5 /nas/content/live/incube2/wp-includes/class-wp-hook.php(323): WP_Hook->apply_filters(NULL, Array)\n#6 /nas/content/live/incube2/wp-includes/plugin.php(453): WP_Hook->do_action(Array)\n#7 /nas/content/live/incube2/wp-includes/load.php(677): do_action(‘shutdown’)\n#8 [internal function]: shutdown_action_hook()\n#9 {main}\n thrown in /nas/content/live/incube2/wp-includes/query.php on line 45, referer: https://incube2.com/?p=774

========================

My AnsPress version: 4.0.5
WordPress Version: 4.8

commented

Hello Juan, thanks for reporting the issue. Do you have any custom modifications for AnsPress?