• Resolved johnsd

    (@johnsd)


    Hello,
    We are getting the following error on our site:

    Warning: in_array() expects parameter 2 to be array, boolean given in /home/content/p3pnexwpnas11_data03/51/3668151/html/wp-content/plugins/svg-support/functions/featured-image.php on line 64

    Warning: in_array() expects parameter 2 to be array, boolean given in /home/content/p3pnexwpnas11_data03/51/3668151/html/wp-content/plugins/svg-support/functions/featured-image.php on line 64

    Do you know what could be causing this?

    Thanks!
    John

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Benbodhi

    (@benbodhi)

    Hi @johnsd,

    Firstly thanks for your interest in my plugin ??

    I have found a few issues with this new featured image file, which I will be fixing as soon as possible.

    Hopefully the plugin still works for you as these are just warnings, but nonetheless, I will fix it.

    Thanks for your support and patience!

    Cheers
    Ben

    Thread Starter johnsd

    (@johnsd)

    Hi Ben,

    The plugin is still working, however, the errors are appearing in our production site. Is there anything I can temporarily modify in the plugin to remove the error?

    Thanks for your prompt response!

    John

    Plugin Author Benbodhi

    (@benbodhi)

    PHP warnings shouldn’t be enabled on a production site…
    But you might be able to avoid it by turning off advanced mode in the plugin settings.

    Plugin Author Benbodhi

    (@benbodhi)

    Failing that, you could also modify the plugin code to not include that file causing the warnings. Simply comment out the line that includes the featured image file.

    Thread Starter johnsd

    (@johnsd)

    Thanks, Ben! I disabled warnings in the wp-config file.

    Plugin Author Benbodhi

    (@benbodhi)

    Perfect. It’s better for security that way anyways ??

    I’ll aim to have this fixed in the next update. Thanks for your understanding and patience.

    Hi Ben.

    I noticed this warning cropping up on a site I am working on.

    Warning: in_array() expects parameter 2 to be array, boolean given in /htdocs/nm-wordpress/wp-content/plugins/svg-support/functions/featured-image.php on line 69

    Just wanted to let you know in case you thought the bug was squashed ??
    Great work on the plugin too by the way!

    Cheers,
    Henry

    Plugin Author Benbodhi

    (@benbodhi)

    Thanks Henry,

    I’ll be looking into this again and fixing it asap.
    Glad you like the plugin! ??

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘in_array() PHP Error’ is closed to new replies.