Title: Error after migrating website
Last modified: August 24, 2016

---

# Error after migrating website

 *  Resolved [Jonas Xander](https://wordpress.org/support/users/john-alexander/)
 * (@john-alexander)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/error-after-migrating-website/)
 * I have this error showing up on my header:
 * `Warning: array_filter() expects parameter 1 to be array, boolean given in /home/
   englishaffair/public_html/wp-content/plugins/woocommerce/includes/class-wc-cart.
   php on line 212`
 * I suspect it might because I had an item added to cart before I backuped up the
   site and migrated it to another domain. Or it could just be nonsense, and the
   error is something else.
 * This is really annoying. See here.
 * [http://www.englishaffair.com/o-que/](http://www.englishaffair.com/o-que/)
 * [https://wordpress.org/plugins/woocommerce/](https://wordpress.org/plugins/woocommerce/)

Viewing 15 replies - 1 through 15 (of 17 total)

1 [2](https://wordpress.org/support/topic/error-after-migrating-website/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/error-after-migrating-website/page/2/?output_format=md)

 *  Thread Starter [Jonas Xander](https://wordpress.org/support/users/john-alexander/)
 * (@john-alexander)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/error-after-migrating-website/#post-6043084)
 * Resolved.
 *  [kdanley42](https://wordpress.org/support/users/kdanley42/)
 * (@kdanley42)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/error-after-migrating-website/#post-6043392)
 * I’m having the same problem after updating a couple of unrelated plugins. Can
   you tell me what you did to resolve the problem?
 *  [saintmonkey](https://wordpress.org/support/users/saintmonkey/)
 * (@saintmonkey)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/error-after-migrating-website/#post-6043395)
 * I have the same issue … please can you share your resolution ?
 *  [saintmonkey](https://wordpress.org/support/users/saintmonkey/)
 * (@saintmonkey)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/error-after-migrating-website/#post-6043396)
 * Warning: array_filter() expects parameter 1 to be array, boolean given in /home
 * wp-content/plugins/woocommerce/includes/class-wc-cart.php on line 212
 *  [saintmonkey](https://wordpress.org/support/users/saintmonkey/)
 * (@saintmonkey)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/error-after-migrating-website/#post-6043398)
 * this is around line 212
 * // Load cart session data from session
    foreach ( $this->cart_session_data as
   $key => $default ) { $this->$key = WC()->session->get( $key, $default ); }
 *  $update_cart_session = false;
    $this->removed_cart_contents = array_filter( 
   WC()->session->get( ‘removed_cart_contents’, array() ) ); $this->applied_coupons
   = array_filter( WC()->session->get( ‘applied_coupons’, array() ) );
 *  /**
    * Load the cart object. This defaults to the persistant cart if null. */
 *  [saintmonkey](https://wordpress.org/support/users/saintmonkey/)
 * (@saintmonkey)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/error-after-migrating-website/#post-6043400)
 * ?
 *  [Dhanuka Nuwan](https://wordpress.org/support/users/dhanukanuwan123/)
 * (@dhanukanuwan123)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/error-after-migrating-website/#post-6043401)
 * Hi guys,
 * I also had this issue. just go to the cart page by typing the url.
    [http://www.yoursite.com/cart](http://www.yoursite.com/cart)
 * It’ll say your cart is empty. just click return to shop button. that annoying
   warning msg will disappear.
 * That’s how I fixed it. Hope it helps
 * Thanks
 *  [kdanley42](https://wordpress.org/support/users/kdanley42/)
 * (@kdanley42)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/error-after-migrating-website/#post-6043402)
 * Thank you very much for your response. That actually didn’t work for me.
    I was
   only getting the warnings when I was in the backend, but not while logged in.
   When I did what you suggested (while logged in), it actually threw more warnings
   and the web page didn’t even show anymore. When I logged out of the backend and
   logged back in, the warnings disappeared. I don’t understand the reason, but 
   i’ll take it.
 *  [kdanley42](https://wordpress.org/support/users/kdanley42/)
 * (@kdanley42)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/error-after-migrating-website/#post-6043403)
 * I’m sorry – I meant I was only seeing it on the front end while I was logged 
   into the backend.
 *  [saintmonkey](https://wordpress.org/support/users/saintmonkey/)
 * (@saintmonkey)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/error-after-migrating-website/#post-6043405)
 * Yep the typing domain/cart also brought up more errors for me, but as suggested
   logging out and back in removed them …
 * very odd I wasted a whole day on this lol thanks very much for the advice 🙂
 *  [Dhanuka Nuwan](https://wordpress.org/support/users/dhanukanuwan123/)
 * (@dhanukanuwan123)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/error-after-migrating-website/#post-6043406)
 * try adding a product to the cart and then empty it.
 *  [saintmonkey](https://wordpress.org/support/users/saintmonkey/)
 * (@saintmonkey)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/error-after-migrating-website/#post-6043407)
 * works fine
 *  [WebThePlanet](https://wordpress.org/support/users/webtheplanet/)
 * (@webtheplanet)
 * [11 years ago](https://wordpress.org/support/topic/error-after-migrating-website/#post-6043409)
 * I encountered this problem when I cloned over a stage site I built for a client
   to their url. There was items still in the cart que. This also caused the media
   manager to stop working as well.
 * Whatever the issue, this was the fastest way to fix the issue.
 * 1 – Backup Your Site!
    2 – Install [https://wordpress.org/plugins/wp-optimize/](https://wordpress.org/plugins/wp-optimize/)(
   WP Optimize) and activate it. 3 – Run WP Optimize (don’t forget to uncheck “Delete
   Revisions” if you want to keep them. Mostly you want to delete the transients.
 * Hope this helps someone. I fixed the site in 2 minutes.
 *  [Nate Finch](https://wordpress.org/support/users/finchps/)
 * (@finchps)
 * [11 years ago](https://wordpress.org/support/topic/error-after-migrating-website/#post-6043410)
 * I tried Dhanuka Nuwan’s fix, and it worked. I added an item to the cart and removed
   it and the error message went away.
 * Thanks Dhanuka! You’re the man!
 *  [Dhanuka Nuwan](https://wordpress.org/support/users/dhanukanuwan123/)
 * (@dhanukanuwan123)
 * [11 years ago](https://wordpress.org/support/topic/error-after-migrating-website/#post-6043411)
 * glad to help you 🙂

Viewing 15 replies - 1 through 15 (of 17 total)

1 [2](https://wordpress.org/support/topic/error-after-migrating-website/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/error-after-migrating-website/page/2/?output_format=md)

The topic ‘Error after migrating website’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce/assets/icon.svg?rev=3234504)
 * [WooCommerce](https://wordpress.org/plugins/woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce/reviews/)

 * 17 replies
 * 8 participants
 * Last reply from: [rightmost](https://wordpress.org/support/users/rightmost/)
 * Last activity: [10 years, 9 months ago](https://wordpress.org/support/topic/error-after-migrating-website/page/2/#post-6043456)
 * Status: resolved