BeTheme generating lots of requests and overloading server
Hi there,
Currently running v.27.6.1 - and BeTheme is currently surging our server with requests which then eventually overwhelms it.
The info from our hosting company:
"Here are the betheme files we're seeing being hit right before the returned surge of data from MySQL.
These two get called, and immediately after the Mysql query for SELECT post_id, meta_key, etc gets spawned:
"/mnt/efs/websites/mystate.com.au/public_html/wp-content/themes/betheme/includes/header-sliding-area.php"
"/mnt/efs/websites/mystate.com.au/public_html/wp-content/themes/betheme/includes/header-classic.php"
Shortly after while the mysql query is still returning data, these ones get hit as well. They don't look be related, but it might help isolate the function doing the calls, since it should be right before these two are called up.
"/mnt/efs/websites/mystate.com.au/public_html/wp-content/themes/betheme/includes/header-top-area.php"
"/mnt/efs/websites/mystate.com.au/public_html/wp-content/themes/betheme/includes/include-logo.php"
This was consistent in all the requests we can see leading up to the crashes, so would be an ideal point for BeTheme's support to look at first."
Is this a known bug and is there a fix for this?
Cheers,
Comments
Hi,
First of all, please update Betheme to the newest version, and check if the same thing happens.
Thanks
Hi Phil,
We have updated to the latest version and the problem is persisiting with our hosting provider providing the following:
This is the mysql request example from what we're seeing which we'd like you to ask if BETheme are familiar with what might be triggering this.
SELECT post_id, meta_key, meta_value FROM wp_postmeta WHERE post_id IN (98,106,111,114,113,5635,105,108,109,101,10851,13162,13401,120,121,13552,13912,10550,131,132,133,134,99,150,151,152,153,154,157,158,159,160,161,162,357,11165,144,147,145,148,149,146,100,102,182,183,180,181,185,184,189,190,188,103,191,197,198,192,199,104,211,219,220,12716,13657,217,214,213,12711,11194,10529,10857,224,222,124,11457,12515,216,234,14362,14358,14360,14356,212,223,117,13988) ORDER BY meta_id ASC;
This would suggest potentially a BETheme component running a meta query in a loop — possibly a menu, slider, or grid that iterates over posts without caching results, triggering the same growing query repeatedly until PHP runs out of memory.
So the key issue being:
A large wp_postmeta query appears to be running on every page load
It is not caching results
Under concurrent traffic this exhausts PHP memory and crashes the site
512MB PHP limit would suggest this could be a code issue, not a server configuration issue
Could you please advise if you are aware of this issue previously or any fix?
Many thanks
Please send us the WordPress dashboard and FTP access privately through the contact form, which is on the right side at https://themeforest.net/user/muffingroup#contact and we will check what the reason might be.
Notice!
Please attach a link to this forum discussion.
Sending incorrect or incomplete data will result in a longer response time.
Therefore, please ensure that the data you send are complete and correct.
Thanks