Title: fatal error
Last modified: December 22, 2021

---

# fatal error

 *  Resolved [DensitySK](https://wordpress.org/support/users/densitysk/)
 * (@densitysk)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/fatal-error-4043/)
 * Hi,
 * I want to report a bug in the pro version as well.
 * Out-of-Stock email still coming even though Disable backorder email notifications
   is checked.
 * Furthermore the plugin is showing fatal errors in the logs:
 * 2021-11-30T13:18:45+00:00 CRITICAL Uncaught TypeError: strpos(): Argument #1 (
   $haystack) must be of type string, array given in /data/f/c/fc2fe6bd-5916-44b4-
   b9c0-13c5319e4e79/XXXXXX/web/wp-content/plugins/woo-backorder-manager-pro/woo-
   backorder-manager-pro.php:669 Stack trace: #0 /data/f/c/fc2fe6bd-5916-44b4-b9c0-
   13c5319e4e79/XXXXXX/web/wp-content/plugins/woo-backorder-manager-pro/woo-backorder-
   manager-pro.php(669): strpos(Array, ‘ available ‘) #1 /data/f/c/fc2fe6bd-5916-
   44b4-b9c0-13c5319e4e79/XXXXXX/web/wp-includes/class-wp-hook.php(303): WooBackorderManagerPro-
   >wcbm_get_availability_text(’’, Object(WC_Product_Variable)) #2 /data/f/c/fc2fe6bd-
   5916-44b4-b9c0-13c5319e4e79/XXXXXX/web/wp-includes/plugin.php(189): WP_Hook->
   apply_filters(’’, Array) #3 /data/f/c/fc2fe6bd-5916-44b4-b9c0-13c5319e4e79/XXXXXX/
   web/wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-product.php(
   2082): apply_filters(‘woocommerce_get…’, ’’, Object(WC_Product_Variable)) #4 /
   data/f/c/fc2fe6bd-5916-44b4-b9c0-13c5319e4e79/XXXXXX/web/wp-content/plugins/woocommerce/
   includes/abstracts/abstract-wc-product.php(2058): WC_Product->get_availability_text()#
   5 /data/f/c/fc2fe6bd-5916-44b4-b9c0-13c5319e4e79/XXXXXX/web/wp-content/plugins/
   woocommerce/includes/wc-template-functions.php(3512): WC_Product->get_availability()#
   6 /data/f/c/fc2fe6bd-5916-44b4-b9c0-13c5319e4e79/XXXXXX/web/wp-content/plugins/
   et-core-plugin/app/models/customizer/class-ajax-search.php(313): wc_get_stock_html(
   Object(WC_Product_Variable)) #7 /data/f/c/fc2fe6bd-5916-44b4-b9c0-13c5319e4e79/
   XXXXXX/web/wp-includes/class-wp-hook.php(303): Etheme_ajax_search->search_results(’’)#
   8 /data/f/c/fc2fe6bd-5916-44b4-b9c0-13c5319e4e79/XXXXXX/web/wp-includes/class-
   wp-hook.php(327): WP_Hook->apply_filters(’’, Array) #9 /data/f/c/fc2fe6bd-5916-
   44b4-b9c0-13c5319e4e79/XXXXXX/web/wp-includes/plugin.php(470): WP_Hook->do_action(
   Array) #10 /data/f/c/fc2fe6bd-5916-44b4-b9c0-13c5319e4e79/XXXXXX/web/wp-admin/
   admin-ajax.php(187): do_action(‘wp_ajax_etheme_…’) #11 {main} thrown in /data/
   f/c/fc2fe6bd-5916-44b4-b9c0-13c5319e4e79/XXXXXX/web/wp-content/plugins/woo-backorder-
   manager-pro/woo-backorder-manager-pro.php on line 669
 * kind regards Michal

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Author [jeffrey-wp](https://wordpress.org/support/users/jeffrey-wp/)
 * (@jeffrey-wp)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/fatal-error-4043/#post-15211756)
 * It look like your database is messed upped. Did you restored from a backup? Or
   did a migration? Switched to another theme?
 *  Thread Starter [DensitySK](https://wordpress.org/support/users/densitysk/)
 * (@densitysk)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/fatal-error-4043/#post-15211983)
 * correct. I do use Updraft Plus Backup plugin. Before every plugin update I always
   do a backup and if I notice anything strange, I always restore back until the
   problem has been solved. So there is definitely a restore from time to time.
 * Do you have a solution on how this can be solved? Or how can I completely remove
   your plugin from my website and all database entries, so I can cleanly re-install
   it again?
 *  Plugin Author [jeffrey-wp](https://wordpress.org/support/users/jeffrey-wp/)
 * (@jeffrey-wp)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/fatal-error-4043/#post-15212414)
 * It is likely a problem with the serialized data. Sometimes this happens with 
   imports from a backup or a (badly written) replace plugin for the database. It
   could be a wrong charset of the import file or a unsufficient max allowed file
   size.
    If you want to completely remove the plugin from the database the remove
   alle row in wp_postmeta with meta_key _backorder_max or _backorder_description.
   And in the wp_options table remove everything where the option_name starts with`
   wcbm_` (wcbm_backorder_report_order_statuses, wcbm_backorder_mail_notification,
   wcbm_show_available_items).
 *  Thread Starter [DensitySK](https://wordpress.org/support/users/densitysk/)
 * (@densitysk)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/fatal-error-4043/#post-15229222)
 * thank you. I have removed the database rows and reinstalled the plugin. I will
   now wait for the next orders with backordered items and check if it shows any
   fatal errors.
 *  Thread Starter [DensitySK](https://wordpress.org/support/users/densitysk/)
 * (@densitysk)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/fatal-error-4043/#post-15279385)
 * after checking, your plugin still shows fatal errors all over again. It has been
   purged from the website and database completely and still after installing it
   again now I start to see the same fatal errors again.
 * There were no database or backup restorations, migrations, or any kind of switch
   to a different theme.
 *     ```
       2022-01-22T10:57:48+00:00 CRITICAL Uncaught TypeError: strpos(): Argument #1 ($haystack) must be of type string, array given in /data/f/c/fc2fe6bd-5916-44b4-b9c0-13c5319e4e79/XXXXX/web/wp-content/plugins/woo-backorder-manager-pro/woo-backorder-manager-pro.php:669
       Stack trace:
       #0 /data/f/c/fc2fe6bd-5916-44b4-b9c0-13c5319e4e79/XXXXX/web/wp-content/plugins/woo-backorder-manager-pro/woo-backorder-manager-pro.php(669): strpos(Array, '%available%')
       #1 /data/f/c/fc2fe6bd-5916-44b4-b9c0-13c5319e4e79/XXXXX/web/wp-includes/class-wp-hook.php(303): WooBackorderManagerPro->wcbm_get_availability_text('', Object(WC_Product_Variable))
       #2 /data/f/c/fc2fe6bd-5916-44b4-b9c0-13c5319e4e79/XXXXX/web/wp-includes/plugin.php(189): WP_Hook->apply_filters('', Array)
       #3 /data/f/c/fc2fe6bd-5916-44b4-b9c0-13c5319e4e79/XXXXX/web/wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-product.php(2082): apply_filters('woocommerce_get...', '', Object(WC_Product_Variable))
       #4 /data/f/c/fc2fe6bd-5916-44b4-b9c0-13c5319e4e79/XXXXX/web/wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-product.php(2058): WC_Product->get_availability_text()
       #5 /data/f/c/fc2fe6bd-5916-44b4-b9c0-13c5319e4e79/XXXXX/web/wp-content/plugins/woocommerce/includes/wc-template-functions.php(3515): WC_Product->get_availability()
       #6 /data/f/c/fc2fe6bd-5916-44b4-b9c0-13c5319e4e79/XXXXX/web/wp-content/plugins/et-core-plugin/app/models/customizer/class-ajax-search.php(313): wc_get_stock_html(Object(WC_Product_Variable))
       #7 /data/f/c/fc2fe6bd-5916-44b4-b9c0-13c5319e4e79/XXXXX/web/wp-includes/class-wp-hook.php(303): Etheme_ajax_search->search_results('')
       #8 /data/f/c/fc2fe6bd-5916-44b4-b9c0-13c5319e4e79/XXXXX/web/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters('', Array)
       #9 /data/f/c/fc2fe6bd-5916-44b4-b9c0-13c5319e4e79/XXXXX/web/wp-includes/plugin.php(470): WP_Hook->do_action(Array)
       #10 /data/f/c/fc2fe6bd-5916-44b4-b9c0-13c5319e4e79/XXXXX/web/wp-admin/admin-ajax.php(202): do_action('wp_ajax_nopriv_...')
       #11 {main}
         thrown in /data/f/c/fc2fe6bd-5916-44b4-b9c0-13c5319e4e79/XXXXX/web/wp-content/plugins/woo-backorder-manager-pro/woo-backorder-manager-pro.php on line 669
       ```
   

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘fatal error’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/woo-backorder-manager_8f8f8f.svg)
 * [WooCommerce Backorder Manager](https://wordpress.org/plugins/woo-backorder-manager/)
 * [Support Threads](https://wordpress.org/support/plugin/woo-backorder-manager/)
 * [Active Topics](https://wordpress.org/support/plugin/woo-backorder-manager/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woo-backorder-manager/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woo-backorder-manager/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [DensitySK](https://wordpress.org/support/users/densitysk/)
 * Last activity: [4 years, 3 months ago](https://wordpress.org/support/topic/fatal-error-4043/#post-15279385)
 * Status: resolved