Support » Plugin: WooCommerce » Uncaught WC_Data_Exception: The admin note content_data prop must be an instance

  • I’m faced with the following fatal error which is making it impossible to login into my admin panel . I tried to resolving it but to no avail. I will be very glad if you could me help me out urgently. Thank You

    Error Details
    =============
    An error of type E_ERROR was caused in line 810 of the file /home/sites/10a/3/3c514919d8/macbancy/wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-data.php. Error message: Uncaught WC_Data_Exception: The admin note content_data prop must be an instance of stdClass. in /home/sites/10a/3/3c514919d8/macbancy/wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-data.php:810
    Stack trace:
    #0 /home/sites/10a/3/3c514919d8/macbancy/wp-content/plugins/woocommerce-admin/src/Notes/WC_Admin_Note.php(414): WC_Data->error(‘admin_note_inva…’, ‘The admin note …’)
    #1 /home/sites/10a/3/3c514919d8/macbancy/wp-content/plugins/woocommerce-admin/src/Notes/DataStore.php(98): Automattic\WooCommerce\Admin\Notes\WC_Admin_Note->set_content_data(Array)
    #2 /home/sites/10a/3/3c514919d8/macbancy/wp-content/plugins/woocommerce/includes/class-wc-data-store.php(159): Automattic\WooCommerce\Admin\Notes\DataStore->read(Object(Automattic\WooCommerce\Admin\Notes\WC_Admin_Note))
    #3 /home/sites/10a/3/3c514919d8/macbancy/wp-content/plugins/woocommerce-admin/src/Notes/WC_Admin_Note.php(83): WC_Data_Store->read(Object(Automattic\WooCommerce\Admin\Notes\WC_Admin_Note))
    #4 /home/sites/10a/3/3c514919d8/macbancy

    =============
    An error of type E_ERROR was caused in line 810 of the file /home/sites/10a/3/3c514919d8/macbancy/wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-data.php. Error message: Uncaught WC_Data_Exception: The admin note content_data prop must be an instance of stdClass. in /home/sites/10a/3/3c514919d8/macbancy/wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-data.php:810
    Stack trace:
    #0 /home/sites/10a/3/3c514919d8/macbancy/wp-content/plugins/woocommerce-admin/src/Notes/WC_Admin_Note.php(414): WC_Data->error(‘admin_note_inva…’, ‘The admin note …’)
    #1 /home/sites/10a/3/3c514919d8/macbancy/wp-content/plugins/woocommerce-admin/src/Notes/DataStore.php(98): Automattic\WooCommerce\Admin\Notes\WC_Admin_Note->set_content_data(Array)
    #2 /home/sites/10a/3/3c514919d8/macbancy/wp-content/plugins/woocommerce/includes/class-wc-data-store.php(159): Automattic\WooCommerce\Admin\Notes\DataStore->read(Object(Automattic\WooCommerce\Admin\Notes\WC_Admin_Note))
    #3 /home/sites/10a/3/3c514919d8/macbancy/wp-content/plugins/woocommerce-admin/src/Notes/WC_Admin_Note.php(83): WC_Data_Store->read(Object(Automattic\WooCommerce\Admin\Notes\WC_Admin_Note))
    #4 /home/sites/10a/3/3c514919d8/macbancy

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

Viewing 7 replies - 1 through 7 (of 7 total)
  • Hello, I have the same problem as described above …
    This error message came up when I wanted to access the cloned website of an original website (still in development).
    I installed a fresh wordpress (demoshop) and restored all the plugins, theme, db and so on. All works except woocommerce which gives the same message as above.
    I actually tried to delete woocommerce and re-install it but no way.

    The rest of the website works fine.

    I wanted to create a test site on my server to “play” around.
    Is there a way to solve this problem – it seems I am not alone.
    Many thanks in advance,
    Brigitte

    @butzli13 Exact same problem here, after cloning website with Updraft wp-admin is not accessible, htrowing exact same error: Uncaught WC_Data_Exception: The admin note content_data prop must be an instance of stdClass.

    @sigtrm very strange isn’t?
    I finally made my clone with the plugin Duplicator (free version) and it worked like a charm. Even easier as with UpdraftPlus…

    In one hour everything worked as I had expected.

    To recommend …

    Good luck!

    Hello @butzli13,

    I finally made my clone with the plugin Duplicator (free version) and it worked like a charm.

    Am I understanding correctly that the clone made using Duplicator did not exhibit this fatal error while the clone made using UpdraftPlus did?

    Thank you.

    @jeffstieler yes, I did it with Duplicator instead and no error messages. It runs well. Hope this helps…

    Tobo

    (@infonetzlichtcom)

    I have the same problem. Happend after I exchanged one domain with another. Hope there will be a solution…

    I found the solution to mine. I updated all plugins with pending updates from my staging site, then pushed it to live again. It worked perfectly.

Viewing 7 replies - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.