Title: Uncaught error
Last modified: December 22, 2022

---

# Uncaught error

 *  Resolved [trevor](https://wordpress.org/support/users/trevortr70/)
 * (@trevortr70)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/uncaught-error-38/)
 * Hi,
    My web site has the below coming up on all pages, can anyone help? Fatal
   error: Uncaught Error: Call to undefined function wp_readonly() in /home/logonforlogs/
   public_html/wp-content/plugins/woocommerce/templates/global/quantity-input.php:
   43`
 * I have copied the below from the status report `
    ### WordPress Environment ###
 * WordPress address (URL): [https://logonforlogs.com](https://logonforlogs.com)
   
   Site address (URL): [https://logonforlogs.com](https://logonforlogs.com) WC Version:
   7.2.0 REST API Version: ✔ 7.2.0 WC Blocks Version: ✔ 8.9.2 Action Scheduler Version:
   ✔ 3.4.0 Log Directory Writable: ✔ WP Version: ❌ 5.8.6 – There is a newer version
   of WordPress available (6.1.1) WP Multisite: – WP Memory Limit: 256 MB WP Debug
   Mode: ✔ WP Cron: ✔ Language: en_US External object cache: –
 * ### Server Environment ###
 * Server Info: Apache
    PHP Version: 7.4.33 PHP Post Max Size: 192 MB PHP Time Limit:
   90 PHP Max Input Vars: 8000 cURL Version: 7.86.0 OpenSSL/1.1.1s
 * SUHOSIN Installed: –
    MySQL Version: 5.7.40 Max Upload Size: 192 MB Default Timezone
   is UTC: ✔ fsockopen/cURL: ✔ SoapClient: ✔ DOMDocument: ✔ GZip: ✔ Multibyte String:
   ✔ Remote Post: ✔ Remote Get: ✔
 * ### Database ###
 * WC Database Version: 4.3.0
    WC Database Prefix: wp61_ Total Database Size: 30.34MB
   Database Data Size: 26.00MB Database Index Size: 4.34MB wp61_woocommerce_sessions:
   Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp61_woocommerce_api_keys: Data:
   0.02MB + Index: 0.03MB + Engine InnoDB wp61_woocommerce_attribute_taxonomies:
   Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp61_woocommerce_downloadable_product_permissions:
   Data: 0.02MB + Index: 0.06MB + Engine InnoDB wp61_woocommerce_order_items: Data:
   0.06MB + Index: 0.02MB + Engine InnoDB wp61_woocommerce_order_itemmeta: Data:
   0.23MB + Index: 0.20MB + Engine InnoDB wp61_woocommerce_tax_rates: Data: 0.02MB
   + Index: 0.06MB + Engine InnoDB wp61_woocommerce_tax_rate_locations: Data: 0.02MB
   + Index: 0.05MB + Engine InnoDB wp61_woocommerce_shipping_zones: Data: 0.02MB
   + Index: 0.00MB + Engine InnoDB wp61_woocommerce_shipping_zone_locations: Data:
   0.02MB + Index: 0.05MB + Engine InnoDB wp61_woocommerce_shipping_zone_methods:
   Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp61_woocommerce_payment_tokens:
   Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp61_woocommerce_payment_tokenmeta:
   Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp61_woocommerce_log: Data: 0.02MB
   + Index: 0.02MB + Engine InnoDB wp61_actionscheduler_actions: Data: 0.09MB + 
   Index: 0.13MB + Engine InnoDB wp61_actionscheduler_claims: Data: 0.02MB + Index:
   0.02MB + Engine InnoDB wp61_actionscheduler_groups: Data: 0.02MB + Index: 0.02MB
   + Engine InnoDB wp61_actionscheduler_logs: Data: 0.05MB + Index: 0.03MB + Engine
   InnoDB wp61_commentmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp61_comments:
   Data: 1.52MB + Index: 0.30MB + Engine InnoDB wp61_e_events: Data: 0.00MB + Index:
   0.00MB + Engine MyISAM wp61_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
   wp61_options: Data: 4.27MB + Index: 0.23MB + Engine InnoDB wp61_postmeta: Data:
   3.52MB + Index: 1.22MB + Engine InnoDB wp61_posts: Data: 2.52MB + Index: 0.23MB
   + Engine InnoDB wp61_termmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp61_terms:
   Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp61_term_relationships: Data: 0.02MB
   + Index: 0.02MB + Engine InnoDB wp61_term_taxonomy: Data: 0.02MB + Index: 0.03MB
   + Engine InnoDB wp61_usermeta: Data: 0.14MB + Index: 0.11MB + Engine InnoDB wp61_users:
   Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp61_wc_admin_notes: Data: 0.06MB
   + Index: 0.00MB + Engine InnoDB wp61_wc_admin_note_actions: Data: 0.05MB + Index:
   0.02MB + Engine InnoDB wp61_wc_category_lookup: Data: 0.02MB + Index: 0.00MB 
   + Engine InnoDB wp61_wc_customer_lookup: Data: 0.02MB + Index: 0.03MB + Engine
   InnoDB wp61_wc_download_log: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp61_wc_order_coupon_lookup:
   Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp61_wc_order_product_lookup: Data:
   0.05MB + Index: 0.06MB + Engine InnoDB wp61_wc_order_stats: Data: 0.02MB + Index:
   0.05MB + Engine InnoDB wp61_wc_order_tax_lookup: Data: 0.02MB + Index: 0.03MB
   + Engine InnoDB wp61_wc_product_attributes_lookup: Data: 0.00MB + Index: 0.01MB
   + Engine MyISAM wp61_wc_product_download_directories: Data: 0.00MB + Index: 0.00MB
   + Engine MyISAM wp61_wc_product_meta_lookup: Data: 0.05MB + Index: 0.09MB + Engine
   InnoDB wp61_wc_rate_limits: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp61_wc_reserved_stock:
   Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp61_wc_tax_rate_classes: Data: 
   0.02MB + Index: 0.02MB + Engine InnoDB wp61_wc_webhooks: Data: 0.02MB + Index:
   0.02MB + Engine InnoDB wp61_wfblockediplog: Data: 0.02MB + Index: 0.00MB + Engine
   InnoDB wp61_wfblocks7: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp61_wfconfig:
   Data: 1.52MB + Index: 0.00MB + Engine InnoDB wp61_wfcrawlers: Data: 0.02MB + 
   Index: 0.00MB + Engine InnoDB wp61_wffilechanges: Data: 0.02MB + Index: 0.00MB
   + Engine InnoDB wp61_wffilemods: Data: 5.52MB + Index: 0.00MB + Engine InnoDB
   wp61_wfhits: Data: 2.02MB + Index: 0.20MB + Engine InnoDB wp61_wfhoover: Data:
   0.02MB + Index: 0.02MB + Engine InnoDB wp61_wfissues: Data: 0.02MB + Index: 0.06MB
   + Engine InnoDB wp61_wfknownfilelist: Data: 2.52MB + Index: 0.00MB + Engine InnoDB
   wp61_wflivetraffichuman: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp61_wflocs:
   Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp61_wflogins: Data: 0.39MB + Index:
   0.13MB + Engine InnoDB wp61_wfls_2fa_secrets: Data: 0.02MB + Index: 0.02MB + 
   Engine InnoDB wp61_wfls_settings: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
   wp61_wfnotifications: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp61_wfpendingissues:
   Data: 0.02MB + Index: 0.06MB + Engine InnoDB wp61_wfreversecache: Data: 0.02MB
   + Index: 0.00MB + Engine InnoDB wp61_wfsnipcache: Data: 0.02MB + Index: 0.05MB
   + Engine InnoDB wp61_wfstatus: Data: 0.14MB + Index: 0.09MB + Engine InnoDB wp61_wftrafficrates:
   Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp61_wpfm_backup: Data: 0.02MB +
   Index: 0.00MB + Engine InnoDB wp61_yoast_indexable: Data: 0.24MB + Index: 0.11MB
   + Engine MyISAM wp61_yoast_indexable_hierarchy: Data: 0.01MB + Index: 0.02MB 
   + Engine MyISAM wp61_yoast_migrations: Data: 0.00MB + Index: 0.01MB + Engine 
   MyISAM wp61_yoast_primary_term: Data: 0.00MB + Index: 0.00MB + Engine MyISAM 
   wp61_yoast_seo_links: Data: 0.08MB + Index: 0.03MB + Engine InnoDB wp61_yoast_seo_meta:
   Data: 0.05MB + Index: 0.00MB + Engine InnoDB
 * ### Post Type Counts ###
 * attachment: 75
    custom_css: 3 elementor_library: 2 nav_menu_item: 16 oembed_cache:
   162 page: 19 post: 12 postman_sent_mail: 250 product: 35 product_variation: 132
   revision: 119 shop_coupon: 1 shop_order: 215 shop_order_refund: 2 wpcf7_contact_form:
   1
 * ### Security ###
 * Secure connection (HTTPS): ✔
    Hide errors from visitors: ❌Error messages should
   not be shown to visitors.
 * ### Active Plugins (5) ###
 * Contact Form 7: by Takayuki Miyoshi – 5.5.6
    Elementor: by Elementor.com – 3.9.1
   WooCommerce: by Automattic – 7.2.0 (update to version 7.2.2 is available) Wordfence
   Security: by Wordfence – 7.8.2 Yoast SEO: by Team Yoast – 19.4
 * ### Inactive Plugins (0) ###
 * ### Dropin Plugins (1) ###
 * maintenance.php: maintenance.php
 * ### Settings ###
 * API Enabled: ✔
    Force SSL: – Currency: GBP (£) Currency Position: left Thousand
   Separator: , Decimal Separator: . Number of Decimals: 2 Taxonomies: Product Types:
   external (external) grouped (grouped) simple (simple) variable (variable)
 * Taxonomies: Product Visibility: exclude-from-catalog (exclude-from-catalog)
    
   exclude-from-search (exclude-from-search) featured (featured) outofstock (outofstock)
   rated-1 (rated-1) rated-2 (rated-2) rated-3 (rated-3) rated-4 (rated-4) rated-
   5 (rated-5)
 * Connected to WooCommerce.com: –
    Enforce Approved Product Download Directories:–
   Order datastore: WC_Order_Data_Store_CPT
 * ### WC Pages ###
 * Shop base: #6 – /
    Cart: #539 – /cart-2 Checkout: #8 – /checkout My account: #
   9 – /my-account Terms and conditions: ❌ Page not set
 * ### Theme ###
 * Name: Envo eCommerce
    Version: 1.1.3 Author URL: [https://envothemes.com/](https://envothemes.com/)
   Child Theme: ❌ – If you are modifying WooCommerce on a parent theme that you
   did not build personally we recommend using a child theme. See: How to create
   a child theme WooCommerce Support: ✔
 * ### Templates ###
 * Archive Template: Your theme has a woocommerce.php file
    you will not be able
   to override the woocommerce/archive-product.php custom template since woocommerce.
   php has priority over archive-product.php. This is intended to prevent display
   issues.
 * Overrides: –
 * ### Admin ###
 * Enabled Features: activity-panels
    analytics coupons customer-effort-score-tracks
   experimental-products-task experimental-import-products-task experimental-fashion-
   sample-products shipping-smart-defaults shipping-setting-tour homescreen marketing
   multichannel-marketing mobile-app-banner navigation onboarding onboarding-tasks
   remote-inbox-notifications remote-free-extensions payment-gateway-suggestions
   shipping-label-banner subscriptions store-alerts transient-notices woo-mobile-
   welcome wc-pay-promotion wc-pay-welcome-page
 * Disabled Features: minified-js
    new-product-management-experience settings
 * Daily Cron: ✔ Next scheduled: 2022-12-23 11:16:57 +00:00
    Options: ✔ Notes: 111
   Onboarding: completed
 * ### Action Scheduler ###
 * Complete: 173
    Oldest: 2022-11-22 09:02:36 +0000 Newest: 2022-12-22 14:37:35 
   +0000
 * Failed: 1
    Oldest: 2019-10-02 07:59:46 +0000 Newest: 2019-10-02 07:59:46 +0000
 * Pending: 1
    Oldest: 2022-12-23 14:37:35 +0000 Newest: 2022-12-23 14:37:35 +0000
 * ### Status report information ###
 * Generated at: 2022-12-22 22:00:33 +00:00
    `
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Funcaught-error-38%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Moderator [threadi](https://wordpress.org/support/users/threadi/)
 * (@threadi)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/uncaught-error-38/#post-16314678)
 * You need to update your wordpress. You have version 5.8.6. The function mentioned
   in the error message was introduced in 5.9.0 and WooCommerce expects it. So update
   to the latest wordpress 6.1.1 and and the error message would be gone.
 *  Thread Starter [trevor](https://wordpress.org/support/users/trevortr70/)
 * (@trevortr70)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/uncaught-error-38/#post-16314701)
 * Thanks, that worked much appreciated.
 *  Moderator [threadi](https://wordpress.org/support/users/threadi/)
 * (@threadi)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/uncaught-error-38/#post-16314717)
 * Glad if I could help. You are welcome to set the topic to solved.

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

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 2 participants
 * Last reply from: [threadi](https://wordpress.org/support/users/threadi/)
 * Last activity: [3 years, 8 months ago](https://wordpress.org/support/topic/uncaught-error-38/#post-16314717)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
