500 Allowed memory exceded errors
-
This is a great plugin and has solved a lot of issues we had with the WooCommerce official Stripe plugin. However, whenever the plugin is active we get frequent 500 errors on the backend, with lines similar to the following on our error logs:
PHP Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 20480 bytes)
This only happens when this plugin is active. Have you seen anything like this? Any tips for how to diagnose?
-
Hi @lewiswalsh,
We have tested the plugin and we are unable to replicate the error. Please share us the Woocommerce system report. Go to: WooCommerce > Status and Select Get System Report.
### WordPress Environment ### WordPress address (URL): https://www.rawmadesimple.co.uk Site address (URL): https://www.rawmadesimple.co.uk WC Version: 4.8.0 REST API Version: ? 4.8.0 WC Blocks Version: ? 3.8.1 Action Scheduler Version: ? 3.1.6 WC Admin Version: ? 1.7.3 Log Directory Writable: ? WP Version: 5.6.1 WP Multisite: – WP Memory Limit: 512 MB WP Debug Mode: – WP Cron: – Language: en_GB External object cache: – ### Server Environment ### Server Info: nginx/1.16.1 PHP Version: 7.4.15 PHP Post Max Size: 50 MB PHP Time Limit: 300 PHP Max Input Vars: 1000 cURL Version: 7.47.0 OpenSSL/1.0.2g SUHOSIN Installed: – MySQL Version: 5.5.5-10.2.36-MariaDB-10.2.36+maria~xenial-log Max Upload Size: 50 MB Default Timezone is UTC: ? fsockopen/cURL: ? SoapClient: ? Your server does not have the SoapClient class enabled - some gateway plugins which use SOAP may not work as expected. DOMDocument: ? GZip: ? Multibyte String: ? Remote Post: ? Remote Get: ? ### Database ### WC Database Version: 4.8.0 WC Database Prefix: wp_ Total Database Size: 584.93MB Database Data Size: 346.78MB Database Index Size: 238.15MB wp_woocommerce_sessions: Data: 16.02MB + Index: 1.03MB + Engine InnoDB wp_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wp_woocommerce_order_items: Data: 8.52MB + Index: 2.52MB + Engine InnoDB wp_woocommerce_order_itemmeta: Data: 64.59MB + Index: 61.17MB + Engine InnoDB wp_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wp_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_woocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_woocommerce_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB --wp_options: Data: 2.30MB + Index: 0.06MB + Engine InnoDB --wp_postmeta: Data: 32.56MB + Index: 32.11MB + Engine InnoDB --wp_posts: Data: 4.52MB + Index: 2.53MB + Engine InnoDB wp_actionscheduler_actions: Data: 3.02MB + Index: 1.45MB + Engine InnoDB wp_actionscheduler_claims: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_actionscheduler_groups: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_actionscheduler_logs: Data: 2.02MB + Index: 2.03MB + Engine InnoDB wp_adtribes_my_conversions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_commentmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_comments: Data: 21.55MB + Index: 16.06MB + Engine InnoDB wp_feedmanager_channel: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_feedmanager_country: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_feedmanager_errors: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_feedmanager_feed_status: Data: 0.02MB + Index: 0.27MB + Engine InnoDB wp_feedmanager_field_categories: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_feedmanager_product_feed: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_feedmanager_product_feedmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_feedmanager_source: Data: 0.02MB + Index: 0.27MB + Engine InnoDB wp_imagify_files: Data: 0.02MB + Index: 0.08MB + Engine InnoDB wp_imagify_folders: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_litespeed_img_optm: Data: 0.02MB + Index: 0.09MB + Engine InnoDB wp_litespeed_optimizer: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_ms_snippets: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_options: Data: 10.16MB + Index: 2.36MB + Engine InnoDB wp_postmeta: Data: 102.64MB + Index: 77.19MB + Engine InnoDB wp_posts: Data: 14.50MB + Index: 7.55MB + Engine InnoDB wp_posts_BKP180712: Data: 1.52MB + Index: 0.00MB + Engine InnoDB wp_revslider_css: Data: 0.13MB + Index: 0.00MB + Engine InnoDB wp_revslider_css_bkp: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_revslider_layer_animations: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_revslider_layer_animations_bkp: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_revslider_navigations: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_revslider_navigations_bkp: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_revslider_sliders: Data: 0.06MB + Index: 0.00MB + Engine InnoDB wp_revslider_sliders_bkp: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_revslider_slides: Data: 0.14MB + Index: 0.00MB + Engine InnoDB wp_revslider_slides_bkp: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_revslider_static_slides: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_revslider_static_slides_bkp: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_snippets: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_termmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_terms: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_term_relationships: Data: 0.14MB + Index: 0.11MB + Engine InnoDB wp_term_taxonomy: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_tm_taskmeta: Data: 0.04MB + Index: 0.01MB + Engine MyISAM wp_tm_tasks: Data: 0.02MB + Index: 0.01MB + Engine MyISAM wp_usermeta: Data: 13.48MB + Index: 10.69MB + Engine InnoDB wp_users: Data: 0.47MB + Index: 0.36MB + Engine InnoDB wp_vtprd_purchase_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_vtprd_purchase_log_product: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_vtprd_purchase_log_product_rule: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wcpdf_invoice_number: Data: 0.36MB + Index: 0.00MB + Engine InnoDB wp_wc_admin_notes: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wc_admin_note_actions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wc_category_lookup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wc_customer_lookup: Data: 0.25MB + Index: 0.22MB + Engine InnoDB wp_wc_download_log: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_wc_order_coupon_lookup: Data: 0.05MB + Index: 0.03MB + Engine InnoDB wp_wc_order_product_lookup: Data: 2.50MB + Index: 3.78MB + Engine InnoDB wp_wc_order_stats: Data: 0.48MB + Index: 0.47MB + Engine InnoDB wp_wc_order_tax_lookup: Data: 0.23MB + Index: 0.20MB + Engine InnoDB wp_wc_product_meta_lookup: Data: 0.09MB + Index: 0.13MB + Engine InnoDB wp_wc_reserved_stock: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wc_tax_rate_classes: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wc_webhooks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wfblockediplog: Data: 0.08MB + Index: 0.00MB + Engine InnoDB wp_wfblocks7: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_wfconfig: Data: 2.28MB + Index: 0.00MB + Engine InnoDB wp_wfcrawlers: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wffilechanges: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wffilemods: Data: 11.52MB + Index: 0.00MB + Engine InnoDB wp_wfhits: Data: 1.02MB + Index: 0.25MB + Engine InnoDB wp_wfhoover: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wfissues: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wp_wfknownfilelist: Data: 4.52MB + Index: 0.00MB + Engine InnoDB wp_wflivetraffichuman: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wflocs: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wflogins: Data: 1.02MB + Index: 0.14MB + Engine InnoDB wp_wfls_2fa_secrets: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wfls_settings: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wfnotifications: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wfpendingissues: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wp_wfreversecache: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wfsnipcache: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_wfstatus: Data: 1.02MB + Index: 0.09MB + Engine InnoDB wp_wftrafficrates: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_woocommerce_square_customers: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wpfb_getapps_forms: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_wpfb_nofitifcation_forms: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_wpfm_backup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wpforms_tasks_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wpgmza: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wpgmza_circles: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wpgmza_maps: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wpgmza_polygon: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wpgmza_polylines: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wpgmza_rectangles: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wplc_chat_msgs: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wplc_chat_sessions: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wplc_offline_messages: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wplc_webhooks: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wpmailsmtp_tasks_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wps_hit: Data: 2.52MB + Index: 3.50MB + Engine InnoDB wp_wps_index: Data: 2.39MB + Index: 3.73MB + Engine InnoDB wp_wps_key: Data: 0.08MB + Index: 0.05MB + Engine InnoDB wp_wps_object_term: Data: 0.13MB + Index: 0.34MB + Engine InnoDB wp_wps_object_type: Data: 0.02MB + Index: 0.08MB + Engine InnoDB wp_wps_query: Data: 0.14MB + Index: 0.09MB + Engine InnoDB wp_wps_uri: Data: 9.52MB + Index: 0.44MB + Engine InnoDB wp_wps_user_agent: Data: 0.30MB + Index: 0.13MB + Engine InnoDB wp_yikes_easy_mc_forms: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_yoast_indexable: Data: 4.52MB + Index: 5.30MB + Engine InnoDB wp_yoast_indexable_hierarchy: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_yoast_migrations: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_yoast_primary_term: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_yoast_seo_links: Data: 0.06MB + Index: 0.03MB + Engine InnoDB wp_yoast_seo_meta: Data: 1.48MB + Index: 0.00MB + Engine InnoDB wp_ywcdd_calendar: Data: 0.14MB + Index: 0.00MB + Engine InnoDB ### Post Type Counts ### attachment: 771 custom_css: 1 customize_changeset: 3 dhwc_page_template: 1 dhwc_template: 1 flamingo_contact: 3969 flamingo_inbound: 1322 la_block: 2 nav_menu_item: 26 oembed_cache: 9 page: 18 post: 6 product: 84 product_variation: 474 revision: 342 saswp: 2 schema: 2 shop_coupon: 210 shop_order: 17085 shop_order_refund: 260 testimonial: 17 vtprd-rule: 1 woo_discount: 1 woo_discount_cart: 3 wpcf7_contact_form: 2 wpforms: 1 xlwcty_thankyou: 1 yith_carrier: 1 yith_proc_method: 1 yith-wcbm-badge: 5 ### Security ### Secure connection (HTTPS): ? Hide errors from visitors: ? ### Active Plugins (40) ### 404page - your smart custom 404 error page: by Peter Raschendorfer – 11.3.0 AddFunc Head & Footer Code: by AddFunc – 2.3 Better Search Replace: by Delicious Brains – 1.3.4 Delivery Countdown Timer: by Arul Jayaraj – 1.0 DHWCPage - WooCommerce Page Template Builder: by SiteSao Team – 5.1.9 – Installed version not tested with active version of WooCommerce 4.0 Envato Market: by Envato – 2.0.6 Facebook for WooCommerce: by Facebook – 2.2.0 File Manager Advanced: by modalweb – 3.7 Flamingo: by Takayuki Miyoshi – 2.2.1 Imagify: by WP Media – 1.9.13 WPBakery Page Builder: by Michael M - WPBakery.com – 6.5.0 LA-Studio Header Builder: by LA-Studio – 1.0.2 LA-Studio Core: by LA-Studio – 1.0.5 One Click Order Re-Order: by CedCommerce – 1.1.5 Stripe Payment Gateway for WooCommerce ( Basic ): by WebToffee – 3.5.3 PI WooCommerce order date time and type PRO: by PI Websolution – 3.2.7.6 Really Simple SSL: by Really Simple Plugins – 4.0.8 Slider Revolution: by ThemePunch – 6.3.5 RMS Feedback: by Lewis Walsh – 1.0.0 Schema: by Hesham – 1.7.8.6 Tawk.to Live Chat: by Tawkto – 0.4.3 Trustpilot-reviews: by Trustpilot – 2.5.808 Advanced Order Export For WooCommerce: by AlgolPlus – 3.1.7 NextMove Lite - Thank You Page for WooCommerce: by XLPlugins – 2.13.1 Variation Swatches for WooCommerce: by Emran Ahmed – 1.1.8 WooCommerce PayPal Checkout Gateway: by WooCommerce – 2.1.1 Woocommerce Order Tracking Code: by Tommy Arnold – 1.0.0 – Installed version not tested with active version of WooCommerce 4.0 WooCommerce PayPal Payments: by WooCommerce – 1.0.4 (update to version 1.1.0 is available) WooCommerce PDF Invoices & Packing Slips: by Ewout Fernhout – 2.8.2 WooCommerce Product Search: by itthinx – 3.5.1 WooCommerce Square: by WooCommerce – 2.2.5 (update to version 2.3.4 is available) WooCommerce: by Automattic – 4.8.0 (update to version 5.0.0 is available) Yoast SEO: by Team Yoast – 15.8 Asset CleanUp: Page Speed Booster: by Gabe Livan – 1.3.7.3 WP Mail SMTP: by WPForms – 2.6.0 WP-Optimize - Clean, Compress, Cache: by David Anderson Ruhani Rabin Team Updraft – 3.1.6 WP Product Feed Manager: by Michel Jongbloed – 1.27.0 WPForms Lite: by WPForms – 1.6.4.1 Easy Forms for Mailchimp: by YIKES Inc. – 6.8.1 YITH WooCommerce Delivery Date Premium: by YITH – 2.1.26 ### Inactive Plugins (1) ### WooCommerce Stripe Gateway: by WooCommerce – 4.8.0 ### Dropin Plugins (1) ### advanced-cache.php: advanced-cache.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: ? ### WC Pages ### Shop base: #4 - /shop/ Basket: #5 - /basket/ Checkout: #6 - /checkout/ My account: #7 - /my-account/ Terms and conditions: #862 - /terms/ ### Theme ### Name: Version: 1.0 Author URL: https://themeforest.net/user/LA-Studio?ref=LA-Studio Child Theme: ? Parent Theme Name: Zuka Parent Theme Version: 1.0.4 Parent Theme Author URL: https://themeforest.net/user/LA-Studio?ref=LA-Studio WooCommerce Support: ? ### Templates ### Overrides: zuka/woocommerce/archive-product.php zuka/woocommerce/cart/cross-sells.php version 3.0.0 is out of date. The core version is 4.4.0 zuka/woocommerce/content-product.php zuka/woocommerce/content-single-product.php zuka/woocommerce/global/quantity-input.php version 3.6.0 is out of date. The core version is 4.0.0 zuka/woocommerce/loop/add-to-cart.php zuka/woocommerce/loop/loop-end.php zuka/woocommerce/loop/loop-start.php zuka/woocommerce/loop/orderby.php zuka/woocommerce/loop/pagination.php zuka/woocommerce/loop/sale-flash.php zuka/woocommerce/product-searchform.php zuka/woocommerce/single-product/price.php zuka/woocommerce/single-product/product-image.php zuka/woocommerce/single-product/related.php version 3.0.0 is out of date. The core version is 3.9.0 zuka/woocommerce/single-product/sale-flash.php zuka/woocommerce/single-product/tabs/tabs.php version 2.4.0 is out of date. The core version is 3.8.0 zuka/woocommerce/single-product/up-sells.php Outdated Templates: ? Learn how to update ### Square ### Environment: Production Tokenization Enabled: – Debug Mode: Off ### Action Scheduler ### Complete: 6,021 Oldest: 2021-01-11 16:56:18 +0000 Newest: 2021-02-11 10:34:17 +0000 Pending: 6 Oldest: 2021-02-11 10:43:45 +0000 Newest: 2021-02-17 11:57:41 +0000
-
This reply was modified 4 years, 1 month ago by
lewiswalsh.
This appears to be caused by the plugin attempting to update_meta_cache() on 12338 records. See line ’12.’ below:
2021/02/11 14:54:48 [error] 2611#2611: *421 FastCGI sent in stderr: "Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 32768 bytes) in Unknown on line 0PHP message: PHP Stack trace:PHP message: PHP 1. {main}() /var/www/html/wp-admin/plugins.php:0PHP message: PHP 2. require_once() /var/www/html/wp-admin/plugins.php:603PHP message: PHP 3. do_action($tag = 'admin_head') /var/www/html/wp-admin/admin-header.php:147PHP message: PHP 4. WP_Hook->do_action($args = [0 => '']) /var/www/html/wp-includes/plugin.php:484PHP message: PHP 5. WP_Hook->apply_filters($value = '', $args = [0 => '']) /var/www/html/wp-includes/class-wp-hook.php:311PHP message: PHP 6. EH_Stripe_Overview->menu_order_count('') /var/www/html/wp-includes/class-wp-hook.php:287PHP message: PHP 7. EH_Stripe_Overview->eh_spg_uncaptured_count() /var/www/html/wp-content/plugins/payment-gateway-stripe-and-woocommerce-integration/includes/stripe-overview/class-stripe-overview.php:287PHP message: PHP 8. eh_stripe_overview_get_order_ids() /var/www/html/wp-content/plugins/payment-gateway-stripe-and-woocommerce-integration/includes/stripe-overview/class-stripe-overview.php:304PHP message: PHP 9. get_post_meta($post_id = 12337, $key = '_payment_method', $single = TRUE) /var/www/html/wp-content/plugins/payment-gateway-stripe-and-woocommerce-integration/payment-gateway-stripe-and-woocommerce-integration.php:190PHP message: PHP 10. get_metadata($meta_type = 'post', $object_id = 12337, $meta_key = '_payment_method', $single = TRUE) /var/www/html/wp-includes/post.php:2138PHP message: PHP 11. get_metadata_raw($meta_type = 'post', $object_id = 12337, $meta_key = '_payment_method', $single = TRUE) /var/www/html/wp-includes/meta.php:506PHP message: PHP 12. update_meta_cache($meta_type = 'post', $object_ids = [0 => 12337]) /var/www/html/wp-includes/meta.php:576PHP message: PHP 13. WP_Fatal_Error_Handler->handle() /var/www/html/wp-includes/class-wp-fatal-error-handler.php:0PHP message: PHP 14. WP_Fatal_Error_Handler->detect_e
-
This reply was modified 4 years, 1 month ago by
lewiswalsh.
Disabling Stripe Overview has solved my issue for now. But something to address in future.
-
This reply was modified 4 years, 1 month ago by
lewiswalsh.
Hi @lewiswalsh,
We will look into it and see if we can optimize the overview better in the future updates.
Hi there,
I have the exact same issue. Actually, I cannot even enable your plugin without crashing my site (Out of memory errors). Your plugin seems to be very heavy on server memory. Would love to test your plugin but it’s just not possible.
Any chance your are going to fix this in the near future?Thanks
-
This reply was modified 4 years, 1 month ago by
- The topic ‘500 Allowed memory exceded errors’ is closed to new replies.