• Resolved aymanpfs

    (@aymanpfs)


    Hello,

    This message has showed to me in my website Admin:
    : Cannot modify header information – headers already sent by (output started at /home/customer/www/kiraa-sa.com/public_html/index.php:1) in on line

    But, I have noticed when I deactivate only the SG Optimizer plugin, the message disappears, and when I activate it, the message appears again.

    What does mean?, and how I could resolve this issue?

    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Stoyan Georgiev

    (@stoyangeorgiev)

    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

    Thread Starter aymanpfs

    (@aymanpfs)

    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.
    Plugin Author Stoyan Georgiev

    (@stoyangeorgiev)

    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

    Thread Starter aymanpfs

    (@aymanpfs)

    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.
    Plugin Author Hristo Pandjarov

    (@hristo-sg)

    SiteGround Representative

    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.

    Thread Starter aymanpfs

    (@aymanpfs)

    Ok, Could me to send a screenshot of my index.php to you to check it, and guide me what code I remove it?

    Plugin Author Hristo Pandjarov

    (@hristo-sg)

    SiteGround Representative

    I am sorry, this is not something we can do. You have full access to your account and you can check it out.

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Irreverent message’ is closed to new replies.