Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plugin fails, runs out of memory, if wp_XXX_options table is selected #130

Open
damonbeals opened this issue Feb 1, 2019 · 6 comments
Open

Comments

@damonbeals
Copy link

I have a older WP multisite, and this plugin has been so helpful in letting me make some major changes. But several of my sites cause the plugin to fail if wp_XXX_options is selected. I enabled debug and see PHP throws an error because it runs out of memory. I upped the PHP memory to 384M and still the plugin fails.

From the debug.log with 256M
[01-Feb-2019 20:50:50 UTC] PHP Fatal error: Allowed memory size of 268435456 by
tes exhausted (tried to allocate 262144 bytes) in /usr/home/wbcci/public_html/wb
cci.net/wp-content/plugins/search-and-replace/inc/Database/Replace.php on line 337
[01-Feb-2019 20:50:50 UTC] PHP Fatal error: Allowed memory size of 268435456 by
tes exhausted (tried to allocate 262144 bytes) in /usr/home/wbcci/public_html/wb
cci.net/wp-includes/load.php on line 679

Let me know if you need anything further to debug.

@bvdv
Copy link
Contributor

bvdv commented Feb 12, 2019

Hi @damonbeals, could you write here what version of WP, S&P plugin do you use?

@bueltge
Copy link
Contributor

bueltge commented Feb 18, 2019

Thanks @bvdv for your help! ❤️

@damonbeals
Copy link
Author

Wordpress 4.9.9, not updated to 5.X yet. And Version 3.2.0 of Search & Replace.

@damonbeals
Copy link
Author

Still having this issue, is there anything I can provide to help debug this further?

@bueltge
Copy link
Contributor

bueltge commented Mar 13, 2019

It is also possible to inform us about your items inside this table? How many lines of entries are inside the table? Maybe is really big for your small memory. The plugin have no fall back if the memory is to small.

@brasofilo
Copy link

Hi Mister Frank, long time!

I was running in circles with the same issue, unselecting wp_xx_options made the plugin work.
Error was:

Apache SSL/TLS access	500	POST /wp-admin/tools.php?page=search-replace 
Apache error		AH01067: Failed to read FastCGI header, referer: https://.../wp-admin/tools.php?page=search-replace				
Apache error		(104)Connection reset by peer: AH01075: Error dispatching request to : , referer: https://.../wp-admin/tools.php?page=search-replace

The table is really small, 200 items. I'm running on a VPS so I pushed the timeout limits quite high.. Error occurs on main site and subsites.
I'm sending a dump of the SQL table to your bueltge.de email.
Hopefuly it'll be a simple, albeit exotic, fix :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants