Tagged: , ,

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #193045
    Pier Luigi
    Participant

    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.

    #193049
    Pier Luigi
    Participant

    Also i just found out something: this issue triggers whenever i try to manually reloaad the Customize Theme page. Hopefully this helps

    #193071
    Skandha
    Keymaster

    @pier-luigi: Hello there,
    I will check the errors and get back to you. Meanwhile can you let me know the version of the theme you are using?

    Kind Regards,
    Skandha

    #193081
    Pier Luigi
    Participant

    Thank you.

    I am using Clean Enterprise Pro, version 1.1.
    I am also using the latest version of WordPress, 5.2.4

    #194939
    Skandha
    Keymaster

    @pier-luigi: Hello there,
    I checked for the errors at my end but did not get any.
    Can you please try deactivating all your plugins and see the errors appear? Also do post in your site URL as well.

    Kind Regards,
    Skandha

    #196907
    Skandha
    Keymaster

    @pier-luigi: Hello there,
    I have fixed the function due to which the errors were showing up and the customizer was not loading at your end. Let me know if the issue is resolved.

    Kind Regards,
    Skandha

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘PHP errors when trying to load theme’ is closed to new replies.