Skip to content

Instantly share code, notes, and snippets.

@jsvini
Created June 4, 2020 22:22
Show Gist options
  • Save jsvini/eb27665fc1d6a3b08310deea35773111 to your computer and use it in GitHub Desktop.
Save jsvini/eb27665fc1d6a3b08310deea35773111 to your computer and use it in GitHub Desktop.
Stack trace
TypeError: Uncaught exception 'TypeError' with message 'Argument 1 passed to FPF_Product_Fields::rest_api_init() must be an instance of WP_REST_Server, string given, called in /home/[REDACTED]/public_html/web/wp/wp-includes/class-wp-hook.php on line 287' in /home/[REDACTED]/public_html/web/app/plugins/flexible-product-fields/classes/fpf-product-fields.php:272
in FPF_Product_Fields::rest_api_init called at /home/[REDACTED]/public_html/web/wp/wp-includes/class-wp-hook.php (287)
in WP_Hook::apply_filters called at /home/[REDACTED]/public_html/web/wp/wp-includes/class-wp-hook.php (311)
in WP_Hook::do_action called at /home/[REDACTED]/public_html/web/wp/wp-includes/plugin.php (478)
in do_action called at /home/[REDACTED]/public_html/web/app/plugins/woocommerce-admin/src/ReportCSVExporter.php (125)
in Automattic\WooCommerce\Admin\ReportCSVExporter::map_report_controller called at /home/[REDACTED]/public_html/web/app/plugins/woocommerce-admin/src/ReportCSVExporter.php (76)
in Automattic\WooCommerce\Admin\ReportCSVExporter::set_report_type called at /home/[REDACTED]/public_html/web/app/plugins/woocommerce-admin/src/ReportCSVExporter.php (58)
in Automattic\WooCommerce\Admin\ReportCSVExporter::__construct called at /home/[REDACTED]/public_html/web/app/plugins/woocommerce-admin/src/ReportExporter.php (123)
in Automattic\WooCommerce\Admin\ReportExporter::export_report called at ? (?)
in call_user_func_array called at /home/[REDACTED]/public_html/web/app/plugins/woocommerce-admin/src/Schedulers/SchedulerTraits.php (269)
in Automattic\WooCommerce\Admin\ReportExporter::do_action_or_reschedule called at /home/[REDACTED]/public_html/web/wp/wp-includes/class-wp-hook.php (287)
in WP_Hook::apply_filters called at /home/[REDACTED]/public_html/web/wp/wp-includes/class-wp-hook.php (311)
in WP_Hook::do_action called at /home/[REDACTED]/public_html/web/wp/wp-includes/plugin.php (544)
in do_action_ref_array called at /home/[REDACTED]/public_html/web/app/plugins/woocommerce/packages/action-scheduler/classes/actions/ActionScheduler_Action.php (22)
in ActionScheduler_Action::execute called at /home/[REDACTED]/public_html/web/app/plugins/woocommerce/packages/action-scheduler/classes/abstracts/ActionScheduler_Abstract_QueueRunner.php (65)
in ActionScheduler_Abstract_QueueRunner::process_action called at /home/[REDACTED]/public_html/web/app/plugins/woocommerce/packages/action-scheduler/classes/ActionScheduler_QueueRunner.php (163)
in ActionScheduler_QueueRunner::do_batch called at /home/[REDACTED]/public_html/web/app/plugins/woocommerce/packages/action-scheduler/classes/ActionScheduler_QueueRunner.php (133)
in ActionScheduler_QueueRunner::run called at /home/[REDACTED]/public_html/web/wp/wp-includes/class-wp-hook.php (287)
in WP_Hook::apply_filters called at /home/[REDACTED]/public_html/web/wp/wp-includes/class-wp-hook.php (311)
in WP_Hook::do_action called at /home/[REDACTED]/public_html/web/wp/wp-includes/plugin.php (478)
in do_action called at /home/[REDACTED]/public_html/web/app/plugins/woocommerce/packages/action-scheduler/classes/ActionScheduler_AsyncRequest_QueueRunner.php (52)
in ActionScheduler_AsyncRequest_QueueRunner::handle called at /home/[REDACTED]/public_html/web/app/plugins/woocommerce/includes/libraries/wp-async-request.php (147)
in WP_Async_Request::maybe_handle called at /home/[REDACTED]/public_html/web/wp/wp-includes/class-wp-hook.php (287)
in WP_Hook::apply_filters called at /home/[REDACTED]/public_html/web/wp/wp-includes/class-wp-hook.php (311)
in WP_Hook::do_action called at /home/[REDACTED]/public_html/web/wp/wp-includes/plugin.php (478)
in do_action called at /home/[REDACTED]/public_html/web/wp/wp-admin/admin-ajax.php (175)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment