Not a valid JSON response
-
after the update i started getting this error when i try to create or update a post “Not a valid JSON response”
after disabling the plugin everything went to normal as usual
-
Hello @mrj0b
I released version?v2.0.6?that address also the issue you shared. I kindly request your feedback on the new release.
Best ~Hasan
still facing the problem with the latest version
maybe the problem is because i disabled cron job function on my wordpress installation and replaced it with a crontab command with wp-cli that run every 5 minutes, i’ll check it later and tell you the results
maybe the problem is because i disabled cron job function on my wordpress installation and replaced it with a crontab command with wp-cli that run every 5 minutes, i’ll check it later and tell you the results
I don’t think that’s the case.
Simply toggle the Auto Purge option (switch it On/Off) in the NPP settings and try again. If the error reoccurs when only the Auto Purge feature is enabled, then the issue is caused by NPP. In that case, please share the metrics from the Status tab, as well as details on how and where you encountered the ‘Not a valid JSON response‘ error.
Best~Hasan
-
This reply was modified 3 months, 1 week ago by
Hasan CALISIR.
yes disabling the auto purge option fixed the problem but when its enabled i get the error when i try to create a post or update a post creating and updating page also gives me the error
trying to purge the cache manually got this error
??? ??? ?? ??? E_ERROR ???? ????? 383 ?? ????? /home/***/*******.com/public/wp-content/plugins/fastcgi-cache-purge-and-preload-nginx/includes/purge.php. ????? ?????: Uncaught Error: Undefined constant "SIGTERM" in /home/***/*******.com/public/wp-content/plugins/fastcgi-cache-purge-and-preload-nginx/includes/purge.php:383
Stack trace:
#0 /home/***/*******.com/public/wp-content/plugins/fastcgi-cache-purge-and-preload-nginx/includes/admin-bar.php(143): nppp_purge()
#1 /home/***/*******.com/public/wp-includes/class-wp-hook.php(324): nppp_handle_fastcgi_cache_actions_admin_bar()
#2 /home/***/*******.com/public/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
#3 /home/***/*******.com/public/wp-includes/plugin.php(517): WP_Hook->do_action()
#4 /home/***/*******.com/public/wp-admin/admin.php(175): do_action()
#5 {main}
thrownHello @mrj0b
Thank you for your feedback!
You need Process Control extension in PHP, known as pcntl – NPP depends it for proper functionality.
Please check extension enabled:
php -m | grep pcntl
If extension not enabled please install proper version accordingly to your in use php version and enable the extension.
For example on Debian for PHP 8.2
apt install php8.2-pcntl
systemctl restart php8.2-fpm.serviceBest~Hasan
pcntl?is already installed and enabled i re-checked and its enabled
Also could you check, posix extension?
php -m | grep posix
That is weird, I will try to re-produce the issue, could you tell me where do you try to Manual Purge? On Advanced tab? Or issue occurs on Auto Purge action?
posix is installed an enabled
the error happened once when i tried to manually purge
but the “Not a valid JSON response” error happen when i try to update or create a post/page
the error disappear when i disable auto-purge option
i attached a screenshot of status page
-
This reply was modified 3 months, 1 week ago by
mrj0b.
Thank you !
I am unable to reproduce the issue on my side, but I strongly suspect that the
pcntl
extension is not enabled for the PHP version currently in use. If you have multiple PHP versions installed, it’s possible that your system is still pointing to an older version, which could be causing the confusion.To check which PHP version is currently active, run the following command:
which php
For example, the output might be:
/usr/bin/php
Next, you can verify where this
php
command points to by running:ls -al /usr/bin/php
The output might look something like this:
/usr/bin/php -> ../lib64/php8.1/bin/php
This indicates that the
php
command is currently pointing to a PHP 8.1 installation. However, this doesn’t necessarily mean that PHP 8.1 is the version in use by your web server or CLI.Check in use PHP version via and compare:
ps aux | grep php-fpm
or oldschool way
phpinfo.php
<?php phpinfo(); ?>If this is not the case, please let me know to deep dive.
Best~Hasan
i have only one version off php installed 8.3 and pcntl is installed and activated, i used the network tab to see what’s the respond i get when clicking save and i got this i hope it will help you investigate the issue
<p>SUCCESS ADMIN: Auto purge cache attempted but page not found in cache,
Auto preload started for page https: //*******.com/amp_validated_url/4593653da803044b81be3d3b06e87793/</p>{"results":[],"review_link":"https:\/\/*******.com\/wp-admin\/post.php?post=8472&action=edit","support_link":"https:\/\/www.remarpro.com\/support\/plugin\/amp\/#new-topic-0"}Hello @mrj0b
* Undefined constant "SIGTERM" | * Not a valid JSON response
I’ve released version v2.0.7. Please let me know if it resolves the issues you’re facing. If the issue persists, there may be a conflict with the AMP plugin you’re using.
Best~Hasan
-
This reply was modified 3 months, 1 week ago by
Hasan CALISIR.
Hello @mrj0b,
I’ve released version?v2.0.8, Please let me know if it resolves the issues you’re facing.
Best~Hasan
still facing the same problem i tested it on a test server still the same problem i think it has something to do with my configuration i gave nginx and fpm-php same user account so i didn’t use your script to grant permission , currently i’m using nginx cache to purge the cache and this plugin to preload the cache , my server os is ubuntu 24.04
-
This reply was modified 3 months, 1 week ago by
- You must be logged in to reply to this topic.