Fresh install cannot activate/deactivate/update plugins

[ad_1]

Have a look under Tools > Site Health to see if any anomalies are mentioned there.

What exactly happens when you try to install a plugin or delete Akismet?

Thread Starter
Gab

(@gabrix73)

WordPress site health checker is saying there are issues to the rest api.

Con questo messaggio di errore:

The REST APIs did not correctly process the context parameter of the query.

I was thinking to block access to it.

When I try to activate akismet, but also hello dolly, the page distorts for a few seconds, and then nothing happens’, the plugin is not activated even after I reload the page.

I managed to delete for example hello dolly by going to delete. But the elimination phase remains on “elimination in progress” and hangs.

Then I reload the page and the plugin has actually been deleted.
Instead I downloaded updraftplus, I go to activate the plugin , the page distorts for a few seconds or only half readable, and nothing happens even if I reload the page.

  • This reply was modified 5 hours, 24 minutes ago by Gab.

The message about the REST API could indicate a server-side problem. This could also have something to do with the problems with deleting and activating plugins. If you have the chance, have a look at the error log in the hosting. There may be something in there. The hoster’s support team should be able to help.

Thread Starter
Gab

(@gabrix73)

Basically; I went to publish a test article and it said “Publication failed. The answer is not a valid JSON answer.” It’s been many years that this problem afflicts wordpress…..

Thread Starter
Gab

(@gabrix73)

This the apache2 error log:

[proxy_fcgi:error] [pid 69271:tid 140642110903872] [remote x.x.x.x:50312] AH01071: Got error ‘PHP message: PHP Warning: Cannot modify header information – headers already sent by (output started at /var/www/magmata/wp-includes/rest-api/class-wp-rest-server.php:566) in /var/www/magmata/wp-includes/pluggable.php on line 1435PHP message: PHP Warning: Cannot modify header information – headers already sent by (output started at /var/www/magmata/wp-includes/rest-api/class-wp-rest-server.php:566) in /var/www/magmata/wp-includes/pluggable.php on line 1438’, referer: https://www.MYSITe.com/wp-admin/post-new.php

  • This reply was modified 5 hours, 16 minutes ago by Gab.

The message in the log should indicate the reason. Something is sending an additional header, which means that WordPress cannot execute its own functions correctly.

To rule out that WordPress itself is the cause, I would recommend a manual update of the core files as described here: https://projectdmc.org/documentation/article/updating-wordpress/#manual-update

If it still doesn’t work after that, contact your host’s support team.

Thread Starter
Gab

(@gabrix73)

As already said is a newly installed system and i’m the support team of my VPS.

I have installed LAMP and the directrory document root of apache is a subdirectory of var/www.

   Options Indexes FollowSymLinks
AllowOverride all
Require all granted

I have already performed the manual update of the cores files without success.

  • This reply was modified 5 hours, 5 minutes ago by Gab.

Then check the response from the server in your browser’s developer console when you publish the post.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer