Error Details=============
An error of type E_ERROR was caused in line 1098 of the file /home/owensoundcycling/public_html/wp-content/plugins/updraftplus/includes/migrator-lite.php. Error message: Allowed memory size of 134217728 bytes exhausted (tried to allocate 2621440 bytes)
lately, I noticed my VPS server failing with errors such as 500. I have to restart nginx and php8.2-fpm services in order to restore the site to running state.
The VPS is 4 cores 4GB. WordPess only consumes 42mb out of memory at all times. Max memory limit for WP is 700mb. Max memory limit for PHP is 2000mb. Yet memory consumption for overall VPS doesn’t go above 1.2GB.
The error in question starts with series of PHP Fatal errrors, but according to my nginx logs it starts with this:
2024/07/27 08:57:40 [error] 162804#162804: *445 FastCGI sent in stderr: "PHP message: PHP Fatal error: Allowed memory size of 2097152000 bytes exhausted (tried to allocate 4295229440 bytes) in /var/www/html/wordpress/wp-includes/theme.php on line 189" while reading response header from upstream, client: 172.69.222.221, server: mp-performance.ae, request: "GET /wp-json/jetpack/v4/jitm?message_path=wp%3Awoocommerce_page_wc-admin%3Aadmin_notices&query=page%253Dwc-admin%252Cpath%253D%25252Fgoogle%25252Fdashboard&full_jp_logo_exists=false&_wpnonce=c934831b75 HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php8.2-fpm.sock:", host: "mp-performance.ae", referrer: "https://mp-performance.ae/wp-admin/admin.php?page=wc-admin&path=%2Fgoogle%2Fdashboard"
2024/07/27 08:57:40 [error] 162804#162804: *450 FastCGI sent in stderr: "PHP message: PHP Fatal error: Allowed memory size of 2097152000 bytes exhausted (tried to allocate 4295229440 bytes) in /var/www/html/wordpress/wp-includes/theme.php on line 189" while reading response header from upstream, client: 172.69.222.220, server: mp-performance.ae, request: "GET /wp-json/wc-analytics/admin/notes?page=1&per_page=25&type=error%2Cupdate&status=unactioned&_locale=user HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php8.2-fpm.sock:", host: "mp-performance.ae", referrer: "https://mp-performance.ae/wp-admin/admin.php?page=wc-admin&path=%2Fgoogle%2Fdashboard"
2024/07/27 08:57:40 [error] 162804#162804: *456 FastCGI sent in stderr: "PHP message: PHP Fatal error: Allowed memory size of 2097152000 bytes exhausted (tried to allocate 4295229440 bytes) in /var/www/html/wordpress/wp-includes/theme.php on line 189" while reading response header from upstream, client: 172.69.222.221, server: mp-performance.ae, request: "GET /wp-json/wc/gla/mc/reports/programs?after=2023-07-01&before=2023-07-27&fields%5B0%5D=clicks&fields%5B1%5D=impressions&_locale=user HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php8.2-fpm.sock:", host: "mp-performance.ae", referrer: "https://mp-performance.ae/wp-admin/admin.php?page=wc-admin&path=%2Fgoogle%2Fdashboard"
2024/07/27 08:57:40 [error] 162804#162804: *453 FastCGI sent in stderr: "PHP message: PHP Fatal error: Allowed memory size of 2097152000 bytes exhausted (tried to allocate 4295229440 bytes) in /var/www/html/wordpress/wp-includes/theme.php on line 189" while reading response header from upstream, client: 172.69.222.220, server: mp-performance.ae, request: "GET /wp-json/wc/gla/jetpack/connected?_locale=user HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php8.2-fpm.sock:", host: "mp-performance.ae", referrer: "https://mp-performance.ae/wp-admin/admin.php?page=wc-admin&path=%2Fgoogle%2Fdashboard"
2024/07/27 08:57:40 [error] 162804#162804: *446 FastCGI sent in stderr: "PHP message: PHP Fatal error: Allowed memory size of 2097152000 bytes exhausted (tried to allocate 4295229440 bytes) in /var/www/html/wordpress/wp-includes/theme.php on line 189" while reading response header from upstream, client: 141.101.97.103, server: mp-performance.ae, request: "GET /wp-admin/admin-ajax.php?action=nasa_list_fonts_admin&fill= HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php8.2-fpm.sock:", host: "mp-performance.ae", referrer: "https://mp-performance.ae/wp-admin/admin.php?page=wc-admin&path=%2Fgoogle%2Fdashboard"
2024/07/27 08:57:40 [error] 162804#162804: *458 FastCGI sent in stderr: "PHP message: PHP Fatal error: Allowed memory size of 2097152000 bytes exhausted (tried to allocate 4295229440 bytes) in /var/www/html/wordpress/wp-includes/theme.php on line 189" while reading response header from upstream, client: 172.69.222.220, server: mp-performance.ae, request: "GET /wp-json/wc/gla/mc/target_audience?_locale=user HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php8.2-fpm.sock:", host: "mp-performance.ae", referrer: "https://mp-performance.ae/wp-admin/admin.php?page=wc-admin&path=%2Fgoogle%2Fdashboard"
2024/07/27 08:57:40 [error] 162804#162804: *455 FastCGI sent in stderr: "PHP message: PHP Fatal error: Allowed memory size of 2097152000 bytes exhausted (tried to allocate 4295229440 bytes) in /var/www/html/wordpress/wp-includes/theme.php on line 189" while reading response header from upstream, client: 172.69.222.221, server: mp-performance.ae, request: "GET /wp-json/wc/gla/mc/reports/programs?after=2024-07-01&before=2024-07-27&fields%5B0%5D=clicks&fields%5B1%5D=impressions&_locale=user HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php8.2-fpm.sock:", host: "mp-performance.ae", referrer: "https://mp-performance.ae/wp-admin/admin.php?page=wc-admin&path=%2Fgoogle%2Fdashboard"
2024/07/27 08:57:40 [error] 162805#162805: *457 FastCGI sent in stderr: "PHP message: PHP Fatal error: Allowed memory size of 2097152000 bytes exhausted (tried to allocate 4295229440 bytes) in /var/www/html/wordpress/wp-includes/theme.php on line 189" while reading response header from upstream, client: 172.69.222.220, server: mp-performance.ae, request: "GET /wp-json/wc/gla/mc/countries?continents=true&_locale=user HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php8.2-fpm.sock:", host: "mp-performance.ae", referrer: "https://mp-performance.ae/wp-admin/admin.php?page=wc-admin&path=%2Fgoogle%2Fdashboard"
2024/07/27 08:57:47 [error] 162804#162804: *393 FastCGI sent in stderr: "PHP message: PHP Fatal error: Allowed memory size of 2097152000 bytes exhausted (tried to allocate 4295229440 bytes) in /var/www/html/wordpress/wp-includes/theme.php on line 189" while reading response header from upstream, client: 141.101.97.9, server: mp-performance.ae, request: "GET /wp-admin/admin.php?page=wc-admin&path=%2Fgoogle%2Fdashboard HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php8.2-fpm.sock:", host: "mp-performance.ae", referrer: "https://mp-performance.ae/wp-admin/admin.php?inner_page=edit&page=duplicator-pro-schedules"
2024/07/27 08:57:56 [error] 162804#162804: *464 FastCGI sent in stderr: "PHP message: PHP Fatal error: Allowed memory size of 2097152000 bytes exhausted (tried to allocate 4295229440 bytes) in /var/www/html/wordpress/wp-includes/theme.php on line 189" while reading response header from upstream, client: 162.158.163.226, server: mp-performance.ae, request: "GET /shop/?filter_make_model=a4-prestige&filter_make_brand=michelin,varta,castrol,brigdestone,bosch,wruth HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php8.2-fpm.sock:", host: "mp-performance.com", referrer: "https://mp-performance.com/shop/?filter_make_model=a4-prestige&filter_make_brand=michelin%2Cvarta%2Ccastrol%2Cbrigdestone%2Cbosch%2Cwruth%2Cdorman"
Here’s system report from WP: https://gist.github.com/ubut12d/8108f4b9cdaae35908ce91dc1e4d9d89
Here’s fatal-error log when it occurs: https://gist.github.com/ubut12d/27180cb60360b8b6de2cf21fc0fae70d
I’m feeling tired off this issue, I look all over internet and many sites trying to trace this issue. Yet even with my large free RAM/memory the issue presists. Please help!
]]>Fatal error: Allowed memory size of 3774873600 bytes exhausted (tried to allocate 20480 bytes) in /home/himi/web/pj.hx7.eu/public_html/wp-includes/class-wp-hook.php on line 303
Fatal error: Allowed memory size of 3774873600 bytes exhausted (tried to allocate 20480 bytes) in /home/himi/web/pj.hx7.eu/public_html/wp-includes/plugin.php on line 177
I increased the memory limit to 3600M but still the same. The problem must be elsewhere.
When I changed the “option_value” in the “wp_option” table from used theme to “twentytwentytwo” I can finally get into admin. But not sure which plugins to disable.
]]>I really like the plugin because you can tune a lot of things to improve the usability which other optimizers lack. (Esp. FCP and LCP optimizations).
But on a clients’ site the memory usage gets multiplied by 10 if I turn on Hummingbird. I go from like 45MB to 450MB for each page request. Upgrading the memory_limit helps but quite regularly the infamous “memory exhausted” fatal error occurs. And I think 500MB for a memory_limit is not efficient and maybe can cause stability problems.
Are there any known plugin/theme conflicts which are causing this?
Thanks!
]]>a client shop of us is experiencing an issue, that another user also stated in this forum. His post is closed due to inactivity. https://www.ads-software.com/support/topic/internal-server-error-at-checkout-5/
Using WooCommerce Stripe Payment Gateway – When the customer goes to complete the Payment, they get an error message – “Internal Server Error” – in a red warning box. The page is still visible.
It appears to the customer that their payment wasn’t taken, but in fact it was. It shows both in the Orders section of the Dashboard and also in the Stripe Dashboard.
Customers then try to place another order, because they think their payment failed because of the red error box.
The fatal-error.logs always state in such a case
PHP Fatal error: Allowed memory size of 1073741824 bytes exhausted (tried to allocate 53248 bytes) in /home/wp/disk/wordpress/wp-includes/wp-db.php on line 2022
which means, that the PHP Worker process doesn’t have enough memory and therefore failed. Last time this happend we increased the PHP memory limit from 512MB to 1024MB which is the maximum our hoster allows. But since 10 days the error reappears again now going over 1024MB.
To be honest: consuming more than 1GB of RAM to simply place an order by creditcard doesn’t seem to be the right thing. We’ve already disabled every plugin we do not need to keep the shop running in it’s current state.
Can you please give us a hint, what may be the cause here? We’re hosting on raidboxes.io a german hoster specialized in WordPress hosting.
Another thing the live error log is throwing every 5minutes:
PHP Warning: php_uname() has been disabled for security reasons in /home/wp/disk/wordpress/wp-content/plugins/woocommerce-gateway-stripe/includes/class-wc-stripe-api.php on line 69
Please can you help us? Our client is not amused about the situation…
Thank you very much in advance
Lars
wb
]]>For awhile, this was working. Suddenly, today, I started getting 500 Server errors when I would try to update the elementor page. Keep in mind that while elementor is a backend builder, it does try to render the shortcodes for a live preview as you go.
The 500 errors were “PHP Fatal error: Allowed memory size of 536870xxx bytes exhausted” so we know there’s some kind of recursion going on during the save process. If I deactivate CCS, save, then reactivate, everything is perfect.
So rather than try to figure out EXACTLY what’s going on, I’d be satisfied if I could just switch off any rendering of CSS shortcodes while doing an admin-ajax update.
Do you have any recommendation on how I can bypass CCS with an action or filter?
]]>ERROR: Allowed memory size of 1073741824 bytes exhausted (tried to allocate 5242912 bytes)
…but at least the file got uploaded to S3.
]]>first: thank you very much for this great plugin!
After upgrading PHP from 7.2 to 7.3 I have the following error which is very important to fix for me.
Is this something I can configure or maybe some incompatibility?
[INFO] BackWPup 3.6.8; A project of Inpsyde GmbH
[INFO] WordPress 5.1.1 on https://www.videospielgeschichten.de/
[INFO] Log Level: Debug
[INFO] BackWPup job: Daily; DBDUMP
[INFO] Runs with user: (0)
[INFO] Cron: 0 3 * * *; Next: Sa, 4 Mai 2019 @ 03:00
[INFO] BackWPup job started from wp-cron
[INFO] PHP ver.: 7.3.4 (64bit); cgi-fcgi; Linux
[INFO] Maximum PHP script execution time is 50000 seconds
[INFO] Script restart time is configured to 30 seconds
[INFO] MySQL ver.: 5.5.60-0+deb7u1-log
[INFO] Web Server: Apache
[INFO] curl ver.: 7.38.0; OpenSSL/1.0.1t
[INFO] Temp folder is: /homepages/0/d25282240/htdocs/vsg_prod/wp-content/uploads/backwpup-f788fd-temp/
[INFO] Logfile is: /homepages/0/d25282240/htdocs/vsg_prod/wp-content/uploads/backwpup-f788fd-logs/backwpup_log_f788fd_2019-05-03_03-00-03.html
[INFO] Backup file is: /homepages/0/d25282240/htdocs/vsg_prod/wp-content/uploads/backwpup-f788fd-temp/backwpup_6D3YR7MU01_daily_2019-05-03_03-00-03.zip
[03-May-2019 03:00:03] 1. Try to backup database …
[03-May-2019 03:00:03] Connected to database db769213813 on db769213813.hosting-data.io
[03-May-2019 03:00:03] Backup database table “wp_avatar_privacy” with “24” records
[03-May-2019 03:00:03] Backup database table “wp_commentmeta” with “614” records
[03-May-2019 03:00:03] Backup database table “wp_comments” with “1689” records
[03-May-2019 03:00:03] Backup database table “wp_links” with “0” records
[03-May-2019 03:00:03] Backup database table “wp_newsletter” with “0” records
[03-May-2019 03:00:03] Backup database table “wp_newsletter_emails” with “0” records
[03-May-2019 03:00:03] Backup database table “wp_newsletter_sent” with “0” records
[03-May-2019 03:00:03] Backup database table “wp_newsletter_stats” with “0” records
[03-May-2019 03:00:03] Backup database table “wp_newsletter_user_logs” with “0” records
[03-May-2019 03:00:03] Backup database table “wp_options” with “1162” records
[03-May-2019 03:00:03] Backup database table “wp_postmeta” with “33888” records
[03-May-2019 03:00:03] Backup database table “wp_posts” with “3244” records
[03-May-2019 01:00:04 UTC] PHP Fatal error: Allowed memory size of 65011712 bytes exhausted (tried to allocate 81920 bytes) in /homepages/0/d25282240/htdocs/vsg_prod/wp-content/plugins/backwpup/inc/class-mysqldump.php on line 533 [03-May-2019 03:00:04] ERROR: Allowed memory size of 65011712 bytes exhausted (tried to allocate 81920 bytes)
[03-May-2019 03:00:04] Restart after 1 seconds.
[03-May-2019 03:00:05] 2. Try to backup database …
[03-May-2019 03:00:05] Connected to database db769213813 on db769213813.hosting-data.io
[03-May-2019 01:00:05 UTC] PHP Fatal error: Allowed memory size of 62914560 bytes exhausted (tried to allocate 90112 bytes) in /homepages/0/d25282240/htdocs/vsg_prod/wp-content/plugins/backwpup/inc/class-mysqldump.php on line 525 [03-May-2019 03:00:05] ERROR: Allowed memory size of 62914560 bytes exhausted (tried to allocate 90112 bytes)
[03-May-2019 03:00:05] Restart after 1 seconds.
[03-May-2019 03:00:06] 3. Try to backup database …
[03-May-2019 03:00:06] Connected to database XXX on XXX
[03-May-2019 01:00:07 UTC] PHP Fatal error: Allowed memory size of 60817408 bytes exhausted (tried to allocate 77824 bytes) in /homepages/0/d25282240/htdocs/vsg_prod/wp-content/plugins/backwpup/inc/class-mysqldump.php on line 525 [03-May-2019 03:00:07] ERROR: Allowed memory size of 60817408 bytes exhausted (tried to allocate 77824 bytes)
[03-May-2019 03:00:07] Restart after 1 seconds.
[03-May-2019 03:00:08] ERROR: Step aborted: too many attempts!
[03-May-2019 03:00:08] 1. Trying to generate a manifest file …
[03-May-2019 03:00:08] Added manifest.json file with 8,09 KB to backup file list.
[03-May-2019 03:00:08] 1. Trying to create backup archive …
[03-May-2019 03:00:08] Compressing files as ZipArchive. Please be patient, this may take a moment.
[03-May-2019 03:00:08] Adding Extra files to Archive
[03-May-2019 03:00:08] Backup archive created.
[03-May-2019 03:00:08] Archive size is 2,37 KB.
[03-May-2019 03:00:08] 2 Files with 8,31 KB in Archive.
[03-May-2019 03:00:08] 1. Try to send backup file to Dropbox …
[03-May-2019 03:00:08] Call to users/get_current_account
[03-May-2019 03:00:09] Authenticated with Dropbox of user: XXX (XXX)
[03-May-2019 03:00:09] Call to users/get_space_usage
[03-May-2019 03:00:09] 1.017,80 GB available on your Dropbox
[03-May-2019 03:00:09] Uploading to Dropbox …
[03-May-2019 03:00:09] Call to files/upload, with 2 KB of data, with parameters: {“path”:”\/Videospielgeschichten\/backwpup_6D3YR7MU01_daily_2019-05-03_03-00-03.zip”,”mode”:”overwrite”}
[03-May-2019 03:00:10] Backup transferred to /Videospielgeschichten/backwpup_6D3YR7MU01_daily_2019-05-03_03-00-03.zip
[03-May-2019 03:00:10] Call to files/list_folder, with parameters: {“path”:”\/Videospielgeschichten\/”}
[03-May-2019 03:00:10] Call to files/delete, with parameters: {“path”:”\/Videospielgeschichten\/backwpup_ET3YR7OP01_daily_2019-04-27_03-00-01.zip”}
[03-May-2019 03:00:11] One file deleted from Dropbox
[03-May-2019 03:00:11] One old log deleted
[03-May-2019 03:00:11] ERROR: Job has ended with errors in 8 seconds. You must resolve the errors for correct execution.
Thank you in advance
André
]]>