WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Warning: Cannot modify header information - headers already sent by (9 posts)

  1. AdminRespAWN
    Member
    Posted 2 years ago #

    Warning: Cannot modify header information - headers already sent by (output started at public_html/wp-includes/class.wp-styles.php:92) in public_html/wp-includes/pluggable.php on line 881 i am getting this error when i try to post a specific post with a specific content. i checked the class.wp-styles it doesnt end with a ?> i went to the file and wrote the "?>" nothing changed, i get the same error. the content the post has is this one --->

    <a href="http://tzatzikinews.gr/wp-content/uploads/2012/06/logo.jpg"><img class="alignright size-thumbnail wp-image-6560" title="logo" src="http://tzatzikinews.gr/wp-content/uploads/2012/06/logo-150x150.jpg" alt="" width="150" height="150" /></a>Καλησπέρα, δυστυχώς δεν πρόλαβα να μαζέψω αυτά που μου στείλατε για να τα έχω έτοιμα την παρασκευή, αλλά θα σας τα παραθέσω σήμερα δευτέρα :). Λοιπόν παρακάτω έχουμε τα 3 καλύτερα Tragic - Funny - Weird Moments της εβδομάδας που μας πέρασε.
    
    <ol>
    <li>Η πιο "tragic" στιγμή της ζωής μου ήταν όταν με πήρε ο ύπνος καθώς έκανα μπάνιο! - Ουρανία</li>
    <li>Την περασμένη Κυριακή μου ψιθύρισε στο αυτή κάτι η μητέρα μου δεν άκουσα καλά και φανταστικά ότι ήταν κάποιο αστείο και γέλασα, από ότι φαίνεται μου είπε ότι πέθανε η θεία μου.</li>
    <li>Ανακάλυψα ότι ο συγχωρεμένος παππούς μου, μου άφησε ένα μεγάλο ποσό με λεφτά στην διαθήκη του. Μου φάνηκε περίεργο γιατί πάντα συμπεριφερόταν λες και με μισούσε. Όταν πήρα τον φάκελο, είχε μέσα 300.000€, σε λεφτά μονοπωλείς.</li>
    </ol>
    <em>Και το καλύτερο από αυτά τα τρία είναι το νούμερο 2 ήταν μια δύσκολη επιλογή γιατί όλα ήταν "ξεκαρδιστικά" με τον τρόπο τους</em>
    
    Ευχαριστούμε που μοιραστήκατε μαζί μας αυτές τις περίεργες στιγμές της ζωής σας συνεχίστε να στέλνετε e-mail στο contact@tzatzikinews.gr ή στην παρακάτω φόρμα.
    
    [contact-form subject="ASTIES EMPIRIES" to="contact@tzatzikinews.gr"] [contact-field label="Όνομα" type="name" required="true" /] [contact-field label="Πιο όνομα θέλετε να φαίνεται όταν αναρτήσουμε την εμπειρία σας;" type="text" required="true" /] [contact-field label="Email" type="email" required="true" /] [contact-field label="Μια περίεργη - άσχημη - αστεία - στιγμή της ζωής σας" type="textarea" required="true" /] [/contact-form]

     

    in line 92 of the class.wp-style there is this code echo $tag;
    i havent added or removed any plugin recently i use the ifeature theme. thanks in advance and sorry for my bad english

  2. Kapil Chugh
    Member
    Posted 2 years ago #

    First of all don't change core WordPress code.

    Then check same thing with default WordPress theme(Twentyeleven). If you don't get any error then you can ask author of theme to check this issue.

  3. AdminRespAWN
    Member
    Posted 2 years ago #

    the problem persists even with the default wordpress theme

  4. Peter Wooster
    Member
    Posted 2 years ago #

    First the missing ?> is intentional, don't add it back in. It prevent extraneous text in the file from being send to the response.

    Second, turn on debug to see if something s failing and writing out to the response.

    Third are you trying to redirect? You can only do that very early in the request, I usually hook into the init action to process form data so I can redirect if complete.

  5. AdminRespAWN
    Member
    Posted 2 years ago #

    i am not trying to redirecting anything this happens when i try to post an article... but it only happens with the specific post content everything else is okay.

    yes i have delete the "?>" also used a file from a backup same thing happens.

    this are the warnings

    [22-Jul-2012 14:07:48] PHP Warning:  session_start() [<a href='function.session-start'>function.session-start</a>]: Cannot send session cookie - headers already sent by (output started at /home/ab4276/public_html/wp-content/db.php:43) in public_html/wp-content/plugins/asynchronous-widgets/async-widgets.php on line 62
    
    [22-Jul-2012 14:07:48] PHP Warning:  session_start() [<a href='function.session-start'>function.session-start</a>]: Cannot send session cache limiter - headers already sent (output started at /home/ab4276/public_html/wp-content/db.php:43) in public_html/wp-content/plugins/asynchronous-widgets/async-widgets.php on line 62
    
    [22-Jul-2012 14:06:18] PHP Warning:  Cannot modify header information - headers already sent by (output started at public_html/wp-content/db.php:43) in /home/ab4276/public_html/wp-content/plugins/wp-super-cache/wp-cache-phase2.php on line 89
    
    [22-Jul-2012 14:06:19] PHP Warning:  session_start() [<a href='function.session-start'>function.session-start</a>]: Cannot send session cache limiter - headers already sent (output started at /home/ab4276/public_html/wp-content/db.php:43) in public_html/wp-content/plugins/asynchronous-widgets/async-widgets.php on line 62
    
    [22-Jul-2012 14:19:30] PHP Warning:  session_start() [<a href='function.session-start'>function.session-start</a>]: Cannot send session cookie - headers already sent by (output started at /home/ab4276/public_html/wp-content/db.php:43) in public_html/wp-content/plugins/asynchronous-widgets/async-widgets.php on line 62
    
    [22-Jul-2012 14:19:30] PHP Warning:  session_start() [<a href='function.session-start'>function.session-start</a>]: Cannot send session cache limiter - headers already sent (output started at /home/ab4276/public_html/wp-content/db.php:43) in public_html/wp-content/plugins/asynchronous-widgets/async-widgets.php on line 62
    
    [22-Jul-2012 14:19:30] PHP Warning:  Cannot modify header information - headers already sent by (output started at public_html/wp-content/db.php:43) in /home/ab4276/public_html/wp-includes/class-wp-ajax-response.php on line 129
    
    [22-Jul-2012 14:19:17] PHP Warning:  Cannot modify header information - headers already sent by (output started at public_html/wp-content/db.php:43) in public_html/wp-includes/pluggable.php on line 881

    also i tried disabling every plugin and found out this happens when i enable jetpack plugin
    UPDATE:i managed to narrow it down even more, if i disable the contact form function in the jetpack plugin it works alright. Is there anything we can do or should i file a bug at the jetpack support?

  6. Peter Wooster
    Member
    Posted 2 years ago #

    You should contact jet pack support.

  7. s_ha_dum
    Member
    Posted 2 years ago #

    Do you have any other plugins running that might be causing a conflict? Either way, contact Jet Pack Support, but that is the first question I'd ask if I were them.

  8. AdminRespAWN
    Member
    Posted 2 years ago #

    For anyone having the same problem with me. i found the plugin that conflicts with jetpack its called relevanssi when i disable this plugin everything works alright, will contact both plugin authos. i will mark this thread as solved. thanks everyone for your help and suggetions :)

  9. AdminRespAWN
    Member
    Posted 2 years ago #

    i found a quick fix you can uncheck expanding shortcodes in relevanssi settings

Topic Closed

This topic has been closed to new replies.

About this Topic