• Resolved docweb

    (@docweb)


    I’m getting the error message below directly after updating to the new version…

    Warning: array_filter() expects parameter 1 to be array, bool given in /home/customer/www/examplesite.com/public_html/wp-content/plugins/woocommerce/includes/class-wc-frontend-scripts.php on line 65

    The page I need help with: [log in to see the link]

Viewing 15 replies - 16 through 30 (of 31 total)
  • Same problem here – since I am using a bought theme – I don’t know how to insert the proposed lines of code – especially where.

    Warning: array_filter() expects parameter 1 to be array, bool given in /mysite/wp-content/plugins/woocommerce/includes/class-wc-frontend-scripts.php on line 65

    Any help?!

    Well it’s working perfectly ..
    Thankyou @anna0105 for your code…

    Error Fixed :

    Insert code above this code…

    return array_filter(
    apply_filters(
    ‘woocommerce_enqueue_styles’,

    Thanks @agitate I found the reverting instructions on GitHub the simplest for now

    Till a patch comes out, you can downgrade woocommerce back to v6.8.2.

    Steps to downgrade would be:

    Backup the whole site.
    Download woocommerce plugin zip (6.8.2) from here

    https://developer.woocommerce.com/releases/

    Go to Plugins > Add New and upload the zip file that was downloaded in step 2 and Install it.`

    Check the instructions along the way as it will detect the new version and check you want to revert.

    @jesi94 you should replace the code with the one @anna0105 wrote, basically its after line 59 because you replace the whole “filters” section

    • This reply was modified 2 years, 2 months ago by lory88.

    it’s ok it works after theme update

    I have same fatal error. Last WP, WC, Theme Motors, PHP 8.0.23.

    I used fast fix.
    after line 57 in /wp-content/plugins/woocommerce/includes/class-wc-frontend-scripts.php
    add:
    return true;
    so it looks like:
    57 public static function get_styles() {
    58 return true;
    59 $version = Constants::get_constant( ‘WC_VERSION’ );
    60

    Frontend works, but on frontend is still “Warning”.
    Warning: foreach() argument must be of type array|object, bool given in /www/doc/www.karavantravel.cz/www/wp-content/plugins/woocommerce/includes/class-wc-frontend-scripts.php on line 433

    • This reply was modified 2 years, 2 months ago by PepeCZ.

    I also had the same problem and I have the Xstore theme. Thanks to the posted code from @anna0105 a0105 I solved it.
    Hope the woocommerce developers can fix it upstream.

    Hey guys, I have this error on my website right now. Am using PHP7.4 because PHP8.0 was causing another error. Have this one: Warning: array_filter() expects parameter 1 to be array, bool given in /home/peqc403318/domains/hiddinkbouwservice.nl/private_html/wp-content/plugins/woocommerce/includes/class-wc-frontend-scripts.php on line 65

    Can anyone help me out?

    Would help me so much!

    Here is an easier fix if you have access to the PHP version you are running – drop back to version any of the PHP 7.x versions – it’s a lot simpler than trying to restore the site.

    The error is happening in PHP 8.x versions because they are more strongly typed than PHP 7.x. It will still clog the php log with warning messages, but your site can be up and running right away with the older php.

    Parece que ya esta solucionado con la nueva Versión de WooCommerce 6.9.1

    Saludos

    Issue resolved with WooCommerce 6.9.1. OceanWP was also updated to 3.3.5.

    Hello guys,

    I have a serious problem and hope you guys can help me out. Yesterday there were a few issues with updates on plugins for WordPress. My webpage is still live but the following error is given:

    Warning: array_filter() expects parameter 1 to be array, bool given in /home/user/domains/webpage/private_html/wp-content/plugins/woocommerce/includes/class-wc-frontend-scripts.php on line 65

    I’m also unavailable to login to my website because the following page: ‘homepage.nl/admin gives also an error. Can somebody please help me out.

    Would like to hear from you!

    website

    Plugin Support con

    (@conschneider)

    Engineer

    Hello folks,

    Here is a code snippet to temporarily resolve the issue: https://github.com/woocommerce/woocommerce/issues/34667#issuecomment-1246458316

    Kind regards,

    UPDATE: A fix for this issue has been released in v6.9.1. Please go ahead and update if you haven’t already.

Viewing 15 replies - 16 through 30 (of 31 total)
  • The topic ‘Error after updating to new version’ is closed to new replies.