Fatal error: Uncaught Error: Call to undefined function prepare_request()
-
I’ve started receiving an error message under Woocommerce > Status and all of the products have started intermittently experiencing 504 Errors.
I think that the error relates to the theme but unfortunately the theme provider no longer offers updates or support, so there’s no fix coming and no help from them.
What I really need is a quick fix to tide me over until I can replace the theme entirely. Can anyone help me out.
The full error message is:
Error Details
=============
An error of type E_ERROR was caused in line 87 of the file /home/xxx/public_html/xxx/wp-content/themes/avery/inc/update.php. Error message: Uncaught Error: Call to undefined function prepare_request() in /home/xxx/public_html/xxx/wp-content/themes/avery/inc/update.php:87
Stack trace:
#0 /home/xxx/public_html/xxx/wp-includes/class-wp-hook.php(286): my_theme_api_call(false, ‘theme_informati…’, Object(stdClass))
#1 /home/xxx/public_html/xxx/wp-includes/plugin.php(208): WP_Hook->apply_filters(false, Array)
#2 /home/xxx/public_html/xxx/wp-admin/includes/theme.php(480): apply_filters(‘themes_api’, false, ‘theme_informati…’, Object(stdClass))
#3 /home/xxx/public_html/xxx/wp-content/plugins/woocommerce/includes/admin/class-wc-admin-status.php(244): themes_api(‘theme_informati…’, Object(stdClass))
#4 /home/xxx/public_html/xxx/wp-content/plugins/woocommerce/includes/api/v2/class-wc-rest-system-status-v2-controller.php(944): WC_Admin_Status::get_latest_theme_version(Object(WP_Theme))
#5 /home/xxx/public_html/xxx/wThe page I need help with: [log in to see the link]
- The topic ‘Fatal error: Uncaught Error: Call to undefined function prepare_request()’ is closed to new replies.