Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1347105
    ActorMike
    Participant

    This is showing up in the PHP 7.1 logs on the server. Maybe a bug?

    [27-Jan-2017 00:41:49 UTC] PHP Warning: in_array() expects parameter 2 to be array, null given in D:\mysite.com_2014\wp-content\plugins\x-disqus-comments\functions\output.php on line 32

    #1347262
    Prasant Rai
    Moderator

    Hello Mike,

    Thanks for writing in!

    If your WP_DEBUG is already set to false then maybe your PHP error_reporting is enabled. You can place error_reporting(0); instead of define(‘WP_DEBUG’, false); on your config file.

    Thanks.

    #1347267
    ActorMike
    Participant

    We own the dedicated server, so these PHP error messages are coming from the servers master php 7.1 log file. Obviously we don’t want to disable error reporting, we want you to fix the error that is being reported.

    IS there something I’m misunderstanding?

    #1347334
    Rue Nel
    Moderator

    Hello There,

    Thanks for updating in! This is just a PHP warning generated by WordPress. Can you please disable the WP_DEBUG mode? You can do this by opening wp-config.php and adding
    define( 'WP_DEBUG' , false ); just above /* That's all, stop editing! Happy blogging. */ For example:

    define('WP_DEBUG', false);
    
    /* That's all, stop editing! Happy blogging. */

    When you revisit the page, you should no longer see the PHP warning.

    Thank you very much.

    #1348004
    ActorMike
    Participant
    This reply has been marked as private.
    #1348502
    Friech
    Moderator

    Hi There,

    Please navigate to Addons > Disqus Comments and make sure you did not leave any fields empty. And please confirm if you have the latest version of X-Disqus Comments plugin (current latest version is 1.1.0).

    If this does not work, please provide us login credentials in private reply so we can take a closer look.

    Thanks.

    #1349764
    ActorMike
    Participant

    That helped! I went into that page and unchecked the pages we don’t need the Disqus to appear on like a testimonials add-on and the error went away.

    #1349814
    Nico
    Moderator

    Happy to hear that.

    Feel free to ask us again.

    Thanks.

  • <script> jQuery(function($){ $("#no-reply-1347105 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>