AJAX wp_insert_user WORKS but responds with “The site is not enabled”

I have a form on my site which has an AJAX event attached. The AJAX event seems to be working up until I call the wp_insert_user function, I don’t understand why but when I put a wp_send_json_success before the function it works, but straight after, even just returning some text I receieve a “The site is not enabled” response.

Fix error Gravatar alt

add_filter( 'get_avatar' , 'alt_name_avatar'); function alt_name_avatar( $avatar ) { $alt = get_comment_author(); $avatar = str_replace('alt=''','alt='Avatar for '.$alt.'' title='Avatar for '.$alt.''',$avatar); return $avatar; } This code works but throws an error. PHP Notice: Trying to get property 'user_id' of non-object in …/wp-includes/comment-template.php on line 28 PHP Notice: Trying to get property 'comment_ID' of non-object in …/wp-includes/comment-template.php … Read more

Are WordPress & PHP objectively and based on evidence going to die because the future is made of frontend rendering instead of server side rendering?

A friend called Pablo told me to learn WordPress CMS but another friend called Lucas told me to learn Strapi CMS because server side rendering and PHP in general are dying in favor of frontend side rendering with tools like react, angular or vue. I do not want your opinion because opinions are strictly forbidden … Read more