{"id":6194,"date":"2021-10-21T03:04:45","date_gmt":"2021-10-21T03:04:45","guid":{"rendered":"https:\/\/www.geekdecoder.com\/?p=6194"},"modified":"2021-10-21T03:04:45","modified_gmt":"2021-10-21T03:04:45","slug":"6194-2","status":"publish","type":"post","link":"https:\/\/www.qbytes.cloud\/index.php\/2021\/10\/21\/6194-2\/","title":{"rendered":"Fatal error: Allowed memory size of 41943040 bytes exhausted in WordPress"},"content":{"rendered":"<p>Error in WordPress Toolkit when updating.<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\nSelected items were updated with errors:\nThe following errors have occurred while updating WordPress instance #1 (&#039;https:\/\/www.captainscbdshop.com&#039;):\n- Unable to update plugin &#039;akismet`4.1.12`1`&#039;, details: Fatal error: Allowed memory size of 41943040 bytes exhausted (tried to allocate 20480 bytes) in \/home\/captainscbdshop\/public_html\/wp-content\/plugins\/woocommerce\/packages\/action-scheduler\/classes\/data-stores\/ActionScheduler_DBStore.php on line 199\nFatal error: Allowed memory size of 41943040 bytes exhausted (tried to allocate 20480 bytes) in \/home\/captainscbdshop\/public_html\/wp-includes\/plugin.php on line 439\n\n- Unable to update plugin &#039;creative-mail-by-constant-contact`1.4.6`1`&#039;, details: Fatal error: Allowed memory size of 41943040 bytes exhausted (tried to allocate 32768 bytes) in \/home\/captainscbdshop\/public_html\/wp-content\/plugins\/woocommerce\/packages\/action-scheduler\/classes\/data-stores\/ActionScheduler_DBStore.php on line 693\nFatal error: Allowed memory size of 41943040 bytes exhausted (tried to allocate 32768 bytes) in \/usr\/local\/cpanel\/3rdparty\/wp-toolkit\/plib\/vendor\/wp-cli\/vendor\/wp-cli\/php-cli-tools\/lib\/cli\/Colors.php on line 1\n\n- Unable to update plugin &#039;jetpack`10.1`1`&#039;, details: Fatal error: Allowed memory size of 41943040 bytes exhausted (tried to allocate 20480 bytes) in \/home\/captainscbdshop\/public_html\/wp-content\/plugins\/woocommerce\/packages\/action-scheduler\/classes\/data-stores\/ActionScheduler_DBStore.php on line 199\nFatal error: Allowed memory size of 41943040 bytes exhausted (tried to allocate 20480 bytes) in \/home\/captainscbdshop\/public_html\/wp-includes\/plugin.php on line 439\n\n- Unable to update plugin &#039;woocommerce`5.7.1`1`&#039;, details: Fatal error: Allowed memory size of 41943040 bytes exhausted (tried to allocate 20480 bytes) in \/home\/captainscbdshop\/public_html\/wp-content\/plugins\/woocommerce\/packages\/action-scheduler\/classes\/data-stores\/ActionScheduler_DBStore.php on line 199\nFatal error: Allowed memory size of 41943040 bytes exhausted (tried to allocate 20480 bytes) in \/home\/captainscbdshop\/public_html\/wp-includes\/plugin.php on line 439\n\n- Unable to update plugin &#039;woocommerce-services`1.25.18`1`&#039;, details: Fatal error: Allowed memory size of 41943040 bytes exhausted (tried to allocate 65536 bytes) in \/home\/captainscbdshop\/public_html\/wp-includes\/widgets\/class-wp-widget-rss.php on line 136\nFatal error: Allowed memory size of 41943040 bytes exhausted (tried to allocate 65536 bytes) in \/home\/captainscbdshop\/public_html\/wp-includes\/class-wp-fatal-error-handler.php on line 45\n\nChecking for updates was performed with errors:\nFailed to reset cache for the instance #1: Fatal error: Allowed memory size of 41943040 bytes exhausted (tried to allocate 20480 bytes) in \/home\/captainscbdshop\/public_html\/wp-content\/plugins\/woocommerce\/packages\/action-scheduler\/classes\/data-stores\/ActionScheduler_DBStore.php on line 509\nFatal error: Allowed memory size of 41943040 bytes exhausted (tried to allocate 4096 bytes) in \/usr\/local\/cpanel\/3rdparty\/wp-toolkit\/plib\/vendor\/wp-cli\/vendor\/composer\/ClassLoader.php on line 427\n<\/pre>\n<p>Solution <\/p>\n<p>In File Manager, Edit the file and change the lower memory limit:<\/p>\n<p>public_html\/wp-includes\/default-constants.php<\/p>\n<p>Change From:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n\/\/ Define memory limits.\n\tif ( ! defined( &#039;WP_MEMORY_LIMIT&#039; ) ) {\n\t\tif ( false === wp_is_ini_value_changeable( &#039;memory_limit&#039; ) ) {\n\t\t\tdefine( &#039;WP_MEMORY_LIMIT&#039;, $current_limit );\n\t\t} elseif ( is_multisite() ) {\n\t\t\tdefine( &#039;WP_MEMORY_LIMIT&#039;, &#039;64M&#039; );\n\t\t} else {\n\t\t\tdefine( &#039;WP_MEMORY_LIMIT&#039;, &#039;40M&#039; );\n\t\t}\n\t}\n<\/pre>\n<p>Cange to:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n\/\/ Define memory limits.\n\tif ( ! defined( &#039;WP_MEMORY_LIMIT&#039; ) ) {\n\t\tif ( false === wp_is_ini_value_changeable( &#039;memory_limit&#039; ) ) {\n\t\t\tdefine( &#039;WP_MEMORY_LIMIT&#039;, $current_limit );\n\t\t} elseif ( is_multisite() ) {\n\t\t\tdefine( &#039;WP_MEMORY_LIMIT&#039;, &#039;64M&#039; );\n\t\t} else {\n\t\t\tdefine( &#039;WP_MEMORY_LIMIT&#039;, &#039;128M&#039; );\n\t\t}\n\t}\n<\/pre>\n<p>In WordPress Toolkit, re-run check for updates. Now you can update.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Error in WordPress Toolkit when updating. Selected items were updated with errors: The following errors have occurred while updating WordPress instance #1 (&#039;https:\/\/www.captainscbdshop.com&#039;): &#8211; Unable to update plugin &#039;akismet`4.1.12`1`&#039;, details: Fatal error: Allowed memory size of 41943040 bytes exhausted (tried to allocate 20480 bytes) in \/home\/captainscbdshop\/public_html\/wp-content\/plugins\/woocommerce\/packages\/action-scheduler\/classes\/data-stores\/ActionScheduler_DBStore.php on line 199 Fatal error: Allowed memory size of &#8230; <a title=\"Fatal error: Allowed memory size of 41943040 bytes exhausted in WordPress\" class=\"read-more\" href=\"https:\/\/www.qbytes.cloud\/index.php\/2021\/10\/21\/6194-2\/\" aria-label=\"Read more about Fatal error: Allowed memory size of 41943040 bytes exhausted in WordPress\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[128],"tags":[],"class_list":["post-6194","post","type-post","status-publish","format-standard","hentry","category-wordpress"],"_links":{"self":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts\/6194","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/comments?post=6194"}],"version-history":[{"count":0,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts\/6194\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/media?parent=6194"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/categories?post=6194"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/tags?post=6194"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}