Hello @tableauxadmin,
Please let me know do you getting the same issue if you go to Tools > Head & Footer Code and simply Save Changes without making real changes?
If that does not work, please let me know what version of PHP you have and if you can take a screenshot of the plugin settings page and send by email to urkekg [AT] gmail [DOT] com (replace [AT] with @ and [DOT] with .).
Thank you for understanding,
Aleksandar
Hi Aleksandar,
I get the same error:
Warning: in_array() expects parameter 2 to be array, null given in /path-to/wp-content/plugins/head-footer-code/inc/front.php on line 46 Warning: in_array() expects parameter 2 to be array, null given in /path-to/wp-content/plugins/head-footer-code/inc/front.php on line 111
PHP 7.4 here.
Re-saving after update fixes the issue.
krko
Thanks for the quick reply. I tried re-saving without changes and that did not work at first. I deactivated and reactivated the plugin and re-saved again, and then it worked.
Hi @tableauxadmin and @krko,
Thank you for reporting issue and testing workaround.
I finally reproduced this specific issue – after the upgrade from older to version 1.2 while no post type ever was enabled before on plugin Settings page.
A permanent fix has been implemented to version 1.2.1.
I would much appreciate if you review Head & Footer Code https://ww.wp.xz.cn/support/plugin/head-footer-code/reviews/
Kind regards,
Alex