-
New users are getting this error upon registering. No cache activated. Please help. Thank you.
See my thread. Answer is there.
http://userproplugin.com/userpro/forums/topic/sometimes-syntax-error-logging-in/
Ahmed should pay me for my tireless debugging. 😀
I went over the thread Andy. I am on own server too. If you press create an account twice, It is saying username is taken and email is taken. It is saying this to every email and username. I have installed brand new version of UP. I also set up staging account with no plugins but UP and still have same issue. Please help someone.
had to up the memory to 512. Seems like this is a common issue. It never happened before and then boom just happened.
@Ahmed, I verified the JSON parse error as a memory issue (after hours of debugging).
@jeditricks007 Take a look at the network requests on chrome dev tools, when you register/login it makes a call to admin-ajax.php, the output (if there’s not enough memory) will be a returned html page. Something like this:-
<br /> <b>Fatal error</b>: Allowed memory size of 41943040 bytes exhausted (tried to allocate 30720 bytes) in <b>/home/domain/public_html/mydomain.com/wp-admin/includes/post.php</b> on line <b>822</b><br />
It’s expecting JSON encoding though so it says ‘UH NO, PARSE ERROR’. It is FOR SURE a memory issue though.
In my testing you need 64MB or if possible 128MB to avoid this (if you have a lot of plugins running).
Thanks for this great find! Should open a topic about it and make it sticky then remove all threads relating to this error.
128 will be enough, unless you’re running A LOT of other plugins.
At a push, 256MB. 512 is crazy.
38 plugins Most of them are essential for us. I think WordFence may have been the culprit. I had it set to be able to use 256 mb. Have you used Wordfence Andy and do you think 256 is to much for it? I lowered it down to 128 in wordfence settings.
Well without knowing your server configuration and your site load I’d say…probably? Perhaps raise it to 256MB just to be safe. Because unless you’re getting hundreds of simultaneous page requests it’ll be fine, memory will be free (assuming you have 8GB or above).
You can check memory usage by each plugin, work out what’s eating memory.
How do you check memory usage of all plugins? Is there a plugin or tool that helps with that?
Best regards
You’ll need to contact someone with technical expertise or do some googling.
It’s not that easy, but 30+ plugins is a lot and certainly you need 500mb+ memory
You must be logged in to reply to this topic.