Hello there,
We had a look at your website and it looks like something is blocking our plugin from working correctly. Something is preventing the connection to the WP REST API and it’s preventing our plugin from setting the cache headers. This could be caused by another plugin or custom function.
We have also noticed that you are using another caching plugin which could lead to unexpected behavior. We recommend using only one plugin for caching and frontend optimizations.
Kind regard,
Stoyan
Hello
Do you mean SG Optimizer plugin?
how to know (detect) that something is blocking this plugin?
and is this issue related with issue, that reported in site health?
(The REST API did not process the context query parameter correctly.)
what do you advice to make for solving this issue?
kindly, I want practice steps I process.
-
This reply was modified 5 years, 8 months ago by
aymanpfs.
Hello there @aymanpfs,
We have noticed that you have some custom code in your index.php. If you remove it everything works correctly.
The reason for this issue is that when you have a code like this in the index.php file it is creating headers and all headers created after that become obsolete.
When you remove that code, please make sure that you are using only one caching plugin, because that can lead to other conflicts and unexpected behavior.
Kind regards,
Stoyan
Thank you for your replying,
I didn’t make any modification in the index.php file, but I’m working on Rank Math SEO plugin, might it from its settings? did generate this code? I don’t know!
and for caching plugins, I’m using SG Optimizer & WP Fastest Cache?
Now, what do you advice me to do for following:
1- What is the code I should remove?
2- Which one of caching plugins I deactivate (or even remove it),
with taking consideration as I have mentioned for you in the first post for that
message disappear when I deactivate SG Optimizer.
kindly guide me with my grateful.
-
This reply was modified 5 years, 8 months ago by
aymanpfs.
I am afraid we can’t help you with that. Please, get in touch with a developer in order to get further assistance with your website. As my colleague said, use only the SG Optimizer and check the error logs. Having two caching plugins is generally a bad idea since they overlap functionality, hook in the early stages of page rendering process and add too much overhead even if everythig is working.
Ok, Could me to send a screenshot of my index.php to you to check it, and guide me what code I remove it?
I am sorry, this is not something we can do. You have full access to your account and you can check it out.