• Resolved chauhanheena

    (@chauhanheena)


    Hi,

    I had hosted my website a few months back and all was running well until yesterday.

    link
    https://www.amijangla.com

    Even now the website shows up on most of the screens(I assume its the total cache plugin thats working). but a few desktops throw the following error

    Warning: Cannot modify header information – headers already sent by (output started at /home/amijangla/public_html/wp-includes/class-wp-rewrite.php:1) in /home/amijangla/public_html/wp-includes/pluggable.php on line 1171

    when i try the link
    https://www.amijangla.com/wp-admin to login to the dashboard, it throws the samw error.

    Unsure of how to solve this.

Viewing 12 replies - 1 through 12 (of 12 total)
  • For now,

    You can login using this url: https://www.amijangla.com/wp-login.php

    And then try disabling the plugins one by one to see which one is causing the problem

    Thread Starter chauhanheena

    (@chauhanheena)

    I’m unable to login thru https://www.amijangla.com/wp-login.php

    it throws more warning messages

    Warning: Cannot modify header information – headers already sent by (output started at /home/amijangla/public_html/wp-includes/class-wp-rewrite.php:1) in /home/amijangla/public_html/wp-login.php on line 390

    Warning: Cannot modify header information – headers already sent by (output started at /home/amijangla/public_html/wp-includes/class-wp-rewrite.php:1) in /home/amijangla/public_html/wp-login.php on line 403

    Warning: Cannot modify header information – headers already sent by (output started at /home/amijangla/public_html/wp-includes/class-wp-rewrite.php:1) in /home/amijangla/public_html/wp-includes/pluggable.php on line 898

    Warning: Cannot modify header information – headers already sent by (output started at /home/amijangla/public_html/wp-includes/class-wp-rewrite.php:1) in /home/amijangla/public_html/wp-includes/pluggable.php on line 899

    Warning: Cannot modify header information – headers already sent by (output started at /home/amijangla/public_html/wp-includes/class-wp-rewrite.php:1) in /home/amijangla/public_html/wp-includes/pluggable.php on line 900

    When you go to https://www.amijangla.com/wp-login.php , are you able to see the login form?

    Sure, the warning messages are there, but I am able to see the form too.

    Let me know if you can see the login form?

    Thread Starter chauhanheena

    (@chauhanheena)

    yes when i visit wp-login.php, i see the login form and above the form i see two warning messages

    Warning: Cannot modify header information – headers already sent by (output started at /home/amijangla/public_html/wp-includes/class-wp-rewrite.php:1) in /home/amijangla/public_html/wp-login.php on line 390

    Warning: Cannot modify header information – headers already sent by (output started at /home/amijangla/public_html/wp-includes/class-wp-rewrite.php:1) in /home/amijangla/public_html/wp-login.php on line 403
    Ami Jangla Photography

    when i type in the login credentials and then login in,
    it throws
    ERROR: Cookies are blocked due to unexpected output. For help, please see this documentation or try the support forums.

    and

    Warning: Cannot modify header information – headers already sent by (output started at /home/amijangla/public_html/wp-includes/class-wp-rewrite.php:1) in /home/amijangla/public_html/wp-includes/pluggable.php on line 898

    Warning: Cannot modify header information – headers already sent by (output started at /home/amijangla/public_html/wp-includes/class-wp-rewrite.php:1) in /home/amijangla/public_html/wp-includes/pluggable.php on line 899

    Warning: Cannot modify header information – headers already sent by (output started at /home/amijangla/public_html/wp-includes/class-wp-rewrite.php:1) in /home/amijangla/public_html/wp-includes/pluggable.php on line 900
    Ami Jangla Photography

    along with the older warning messages.

    In that case, try to FTP to your WordPress intallation directory (or use your cPanel’s File Manager), then navigate to /wp-content/plugins directory.

    Now rename the suspected plugin by appending something like “_temp” to its name.

    Ideally the suspected plugin should be the last one you’ve activated. Or it could be W3 Total Cache, as you said.

    Now try loading your website. If everything works fine, you have found out the culprit.

    If it still does not work, trying renaming ALL the plugins (a few at a time) and checking if the website loads fine.

    Post the outcome here

    Thread Starter chauhanheena

    (@chauhanheena)

    Tried renaming all at oncw and also each at a time. It’s still the same warning message that appears.

    Are you able to see the website at https://www.amijangla.com
    or do you get the warning message there as well?

    No I cant see the website. I see the warning there.

    Its very difficult to pinpoint the problem without access to your setup.

    Tell me one thing: have you accidentally/knowlingly edited any file from the WordPress setup?

    Or any changes that you made just before the problem started appearing?

    Moderator James Huff

    (@macmanx)

    You have unexpected whitespace (either a space or an entire line) on line 1 of the /wp-includes/class-wp-rewrite.php file. See this guide for more info.

    Alternatively, replacing the file with one from a fresh download may resolve the issue.

    Does the file at /home/amijangla/public_html/wp-includes/class-wp-rewrite.php have a closing PHP tag ?> at the end? If it does try removing it.

    Thread Starter chauhanheena

    (@chauhanheena)

    the code for class-wp-rewrite.php is the same as the below link.

    https://github.com/WordPress/WordPress/blob/master/wp-includes/class-wp-rewrite.php

    I, unable to find the extra space int eh above code.

    Thread Starter chauhanheena

    (@chauhanheena)

    To my surprise this issue got solved automatically. Weird though. Thanks for helping me with this.

    Moderator James Huff

    (@macmanx)

    You’re welcome!

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Warning Message’ is closed to new replies.