Hello everyone,
i was trying to enable some theme features when suddenly error started showing up on my screen, after which my WordPress sidebar would load but nothing else.
Here are the errors:
Warning: in_array() expects parameter 2 to be array, string given in /web/htdocs/www.mywebsite.com/home/wp-content/themes/clean-enterprise-pro/inc/customizer/sanitize-functions.php on line 102
Warning: array_intersect(): Expected parameter 1 to be an array, string given in /web/htdocs/www.mywebsite.com/home/wp-content/themes/clean-enterprise-pro/inc/customizer/sanitize-functions.php on line 123
Warning: count(): Parameter must be an array or an object that implements Countable in /web/htdocs/www.mywebsite.com/home/wp-content/themes/clean-enterprise-pro/inc/customizer/sanitize-functions.php on line 123
Warning: count(): Parameter must be an array or an object that implements Countable in /web/htdocs/www.mywebsite.com/home/wp-content/themes/clean-enterprise-pro/inc/customizer/sanitize-functions.php on line 123
The only plugin i have enabled is Essential Content Types. I used Catch Themes Demo Import but disabled it after usage, since it displays another error on top of the page if i enable it (Warning: Invalid argument supplied for foreach() in /web/htdocs/www.mywebsite.com/home/wp-content/plugins/catch-themes-demo-import/inc/demo-importer.php on line 23
)
I know i can simply disable them by setting wp_debug_display to false,but i would like to solve this problem from its root. Any help would be greatly appreciated.
Thank you and have a nice day.