Tagged: 500 internal server error, admin-ajax-php
-
AuthorPosts
-
September 30, 2020 at 9:14 am #1249598
Hi there!
I have the weirdest problem ever!
Using enfold theme on my wordpress site. Getting error:
Domain.com/wp-admin/admin-ajax.php 500 (Internal Server Error) – domain.com/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,utils,moxiejs,plupload&ver=5.5.1This happen when I click on any ALB element on a page like slideshow, title etc.. the popup modal is gettion opened, the loading wheel sping for 3 seconds and than getting white blank.
Now thats the interesting part – this is only happen if I have more than 1740 *published pages* – as soon I move a few pages to the trash, and the total number of pages below 1740 – everything works perfectly!
Tried to increase php limit to 1g, change php version 7.1-7.4, debugging – nothing, deactivate & removed all plugins, optimize, clean & repair db, increase max_allowed_packet & innodb_buffer_pool_size, everything.
running latest wordpress version with the latest enfold release.
My only assumption is that somehow the admin-ajax.php close/abort the connection because of large query from database? Or timeout?Anyone face something like that before? i searched the entire forum for the ajax 500 problem saw just a few that exactly related, tried every solution someone offer with no luck, i come to you as my last resort.
Thank you very much guys!- This topic was modified 4 years, 2 months ago by ottwebtech.
September 30, 2020 at 3:36 pm #1249684Hey ottwebtech,
Can you please check the server log for error?
Best regards,
VictoriaOctober 4, 2020 at 3:25 pm #1250415Hi Victoria
Thank you for the response.
server logs shows:[04-Oct-2020 12:34:23 UTC] PHP Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 69632 bytes) in /home/mylocksuk/public_html/wp-includes/wp-db.php on line 1999
[04-Oct-2020 12:34:23 UTC] PHP Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 65536 bytes) in /home/mylocksuk/public_html/wp-includes/functions.php on line 4669
[04-Oct-2020 12:34:23 UTC] PHP Fatal error: Unknown: Cannot use output buffering in output buffering display handlers in Unknown on line 0the things is – everything setup to memory limit of 512M
both php.ini (cpanel) & wp-config.php
i can confirm wordpress using the 512M because if i comment out those from wp-config
define(‘WP_MAX_MEMORY_LIMIT’, ‘512M’); define(‘WP_MEMORY_LIMIT’, ‘512M’);
im start to getting the “PHP Fatal error” on ALB pages.also created a phpinfo(); test file that shows that 512M is indeed in use.
I have 3500 pages with lots of images (9G) if that related – But got a pretty decent VPS. lots of free memory and disk space.
everything running smooth beside that issue.
Hosting at Fastcomet, the’re support already try to figure it out without any luck. saying not a vps related issue.Really need your help :)
Thank you.October 6, 2020 at 5:41 pm #1250893OK i got deeper a little bit.
This issue related directly to enfold theme. might be with how things get stored in the database.
Im trying to create 2,000 pages (ALB), after the generation of the pages the problem start occurring.
it really looks like a php memory limit issue but i cant find out whats happening because the php limit is definitely more then 256M (268435456).
so i tried to eliminate things.
i tried different WordPress versions.
Tweaked everything on my VPS. both php & mysql configuration.
I even setup new vps on different hosting company just to be sure its not related to the host.i generate the pages without any plugins installed. on a fresh WordPress installation with latest enfold (already tested yesterday’s release).
the only plugin that is in use is the “page generator pro”, so i thought it must be it!
So, installed everything from scratch again, and now used the plugin “Copy & Delete Posts” just to duplicate the same ALB page 2000 times – Same result, the exact same problem. if you have another way to duplicate a page 2000 times just to check things out, i will be happy to try.I really hope that those insights can narrow it down for someone here to understand the issue. im really lost.
Also, i believe this ticket are directly related to this issue:Thanks!
October 9, 2020 at 2:55 pm #1251721Hi,
Thank you for the detailed response.
Where is the site hosted, and what is the server specification? Is it a shared server? Some servers limits the allocation of PHP memory, so defining a memory limit in the wp-config.php file will not work. The PHP memory limit has to be manually adjusted in the php.ini file or by asking the hosting provider directly.
The error above just shows that the PHP memory limit is still set to around 268MB or 268435456 bytes.
Best regards,
Ismael -
AuthorPosts
- You must be logged in to reply to this topic.