• Resolved tahaabbasi

    (@tahaabbasi)


    Hello,

    As soon as I updated to the latest version of this plugin, I have received this error on the backend (Admin) area of WordPress, I cannot access my dashboard:

    Fatal error: Call to a member function is_main_query() on a non-object in /home/mywebnap/public_html/wp-includes/query.php on line 744

    I have tested by removing this plugin form FTP and the error goes away. I reverted to the older version of the plugin, by uploading through FTP and the error does not come back, so it seems to be pointing toward something in the update.

    https://www.ads-software.com/plugins/awesome-support/

Viewing 15 replies - 1 through 15 (of 23 total)
  • Colin

    (@colinsafranek)

    +1

    Same here. The error did not have a stack trace, so I don’t know where it’s originating from, but it occurred directly after updating to the latest Awesome Support version.

    Please advise, thank you!

    Plugin Author julien731

    (@julien731)

    Thanks for reporting guys. Would you be able to share your error logs so that I can try and identify the origin of the problem.

    Same here. The error only occurs on the backend (Admin area).

    PHP Fatal error: Call to a member function get() on a non-object in /wp-includes/query.php on line 28

    Repeats each time the admin area is attempted to be accessed. Shows nothing else and error log shows the same.

    Don’t know if this is related and the root cause?

    Notice: is_category was called incorrectly. Conditional query tags do not work before the query is run. Before then, they always return false. Please see Debugging in WordPress for more information. (This message was added in version 3.1.) in /wp-includes/functions.php on line 3897

    Notice: is_tag was called incorrectly. Conditional query tags do not work before the query is run. Before then, they always return false. Please see Debugging in WordPress for more information. (This message was added in version 3.1.) in /wp-includes/functions.php on line 3897

    Appear just before that PHP Fatal Error, when using debug dump under wp-config:

    define('WP_DEBUG', true);
     define('SCRIPT_DEBUG', true);
     define('SAVEQUERIES', true);
     ini_set ("display_errors", "On");
     error_reporting(E_ALL);

    Found it under the debug log dump now, with those extra outputing:
    PHP Warning: Invalid argument supplied for foreach() in /wp-content/plugins/awesome-support/includes/functions-addons.php on line 23

    Plugin Author julien731

    (@julien731)

    It doesn’t seem like the two problems would be related.

    This issue will be quite hard to debug if I can’t have access to a debug log.

    Please, someone share a log.

    Colin

    (@colinsafranek)

    Julien, do you mean you need access to an error log via ftp? Or do you just want us to copy/paste the errors we’re getting?

    My error also only affects the WP Admin, preventing it from loading:

    [31-May-2016 14:58:55 UTC] PHP Fatal error: Call to a member function is_main_query() on a non-object in /nas/content/staging/adaptify/wp-includes/query.php on line 744

    If you need access to my staging site I’ll create a user for you. Would you need access to both the Admin as well as the server (ftp)?

    Let me know what you need and which email to send credentials to.

    Thanks!

    Colin

    (@colinsafranek)

    Hi again Julien. Never heard anything back from you. Have you been able to troubleshoot this bug?

    Let me know if you need anything.

    Plugin Author siamkreative

    (@siamkreative)

    Hey guys,

    Would you mind dumping the content of your PHP error logs on https://pastebin.com/ so that we can properly debug this.

    Thanks

    Plugin Author julien731

    (@julien731)

    @colinsafranek how can I contact you privately?

    Colin

    (@colinsafranek)

    colinsafranek AT gmail

    Plugin Author julien731

    (@julien731)

    Hi guys,

    I have a possible patch for the issue. I would very much appreciate if you could test it on your sites. If the patch works then I will add the fix to 3.3.1 and release the new version for update.

    https://jmp.sh/nw835N3

    Hi Julien,

    I ran a quick test run on a development server. It appears to be resolved the issue now, thanks a lot!

    Plugin Author julien731

    (@julien731)

    Excellent news. I hope it will work for everyone. Thanks for reporting back @3lancer

    There’s one issue I’ve found when using it’s Addons, however it probably only affects me.

    Awesome Support: E-Mail Support version 0.2.1 when activated with the new plugin, will display “You do not have sufficient permissions to access this page.” on it’s setting page.

    I noticed you have a version 0.2.2, but my support has just expired back on May 21, 2016, so probably will need to renew and update to use it again?

    I also use Canned Responses and Private Notes, those however work fine.

Viewing 15 replies - 1 through 15 (of 23 total)
  • The topic ‘FATAL ERROR with is_main_query() as soon as I updated’ is closed to new replies.