• Resolved happyches

    (@happyches)


    Just upgraded to the latest version of Tooltips, and now have an error across every post/page that has “Tooltips” enabled and in-use.

    The error is:

    Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/public_html/wp-content/plugins/wordpress-tooltips/tooltips.php:12) in /home/public_html/wp-content/themes/parallelus-mingle/framework/utilities/email-functions.php on line 3

    An example of a post that has tooltips enabled:
    https://pennybutler.com/rice-water-test/

    I also cannot “update” any post. When I modify a Post, now I get:

    Warning: Cannot modify header information - headers already sent by (output started at /home/public_html/wp-content/plugins/wordpress-tooltips/tooltips.php:12) in /home/public_html/wp-admin/post.php on line 229
    
    Warning: Cannot modify header information - headers already sent by (output started at /home/public_html/wp-content/plugins/wordpress-tooltips/tooltips.php:12) in /home/public_html/wp-includes/pluggable.php on line 896

    (And the post is not updated/changed in any way, even when I make a change)

    I also cannot “clear cache”

    If I disable WordPress Tooltips, everything works again.

    But when I “re-enable” WordPress Tooltips, I get the following error upon activation:

    The plugin generated 4 characters of unexpected output during activation. If you notice “headers already sent” messages, problems with syndication feeds or other issues, try deactivating or removing this plugin.

    After re-enabling the plugin, I can no longer access posts from the admin area.. so I’m not sure how long I can keep it enabled for troubleshooting…

    Might have to revert back to the previous version in the meantime.. yeah I think I might do that now as I need tooltips to work and I can’t update my website when it’s enabled.. but hopefully you can see what the problem is without needing my site as an example.. ?? ??

    Kind Regards,

    Penny

    https://www.ads-software.com/plugins/wordpress-tooltips/

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Tomas

    (@zhuyi)

    Hi Happyches,

    Thanks for the message, but this problem is not caused by this plugin, I upgraded my wordpress tooltips plugin to 3.2.3 on my site from https://www.ads-software.com/plugins/wordpress-tooltips/ too, and the upgrade is success, there are no any error notification,
    you can find my plugins works well at https://tomas.zhu.bz/wordpress-plugin-tooltips.html/, maybe you need check the setting of your ftp software or if you changed code in our plugin, please be careful UTF-8 format, I guess mabye you changed some language for your users in your country, if so you need be careful your UTF-8 format, thanks.

    Best Regards,
    Tomas

    Plugin Author Tomas

    (@zhuyi)

    Also the line 12 is “<?php”

    <?php
    /*
    Plugin Name: Tooltips
    Plugin URI:  https://tomas.zhu.bz/wordpress-plugin-tooltips.html
    Description: WordPress Tooltips,You can add text,image,link,video,radio in tooltips, add tooltips in gallery. More amazing features? Do you want to customize a beautiful style for your tooltips? Get <a href='https://tooltips.org' target='blank'>Wordpress Tooltips Pro</a> now.
    Version: 3.2.3
    Author: Tomas Zhu: <a href='https://tooltips.org' target='_blank'>Tooltips Pro</a>
    Author URI: https://tomas.zhu.bz
    */
    ?>
    
    <?php

    You can find the line 12 is “<?php”, so there are no any code problem, please check what you changed in our plugin and your UTF-8 setting, Especially if you customized our plugin.

    Best Regards,
    Tomas

    Thread Starter happyches

    (@happyches)

    Hiya Tomas,

    I upgraded it the normal way (didn’t do it via FTP)..

    I just went to Dashboard > Updates
    Put a check in the checkbox next to Tooltips, and clicked Upgrade

    I didn’t need to change any language either (my blog is English)

    But not sure what you mean here.. :
    “please be careful UTF-8 format”

    Do I have to change something in regards to this? Where/why/how? ??

    Kind Regards,

    Penny

    Thread Starter happyches

    (@happyches)

    If I “disable” tooltips, then “delete” tooltips..
    Will I lose all my tooltips, or are they safe in the database?

    Then I can do a clean install of it, and see if that fixes the problem?

    (although I just checked the svn and it looks the same (at a glance) so I dont think anything got corrupted while upgrading)

    https://plugins.svn.www.ads-software.com/wordpress-tooltips/trunk/tooltips.php

    So weird if it’s only happening to me..

    Thread Starter happyches

    (@happyches)

    I can’t download an older version.. in developers.. all the svn versions are empty.. when you download the zip, the zip is empty and the svn’s are empty.. any chance of getting hold of the previous version? (version 3.2.1)

    Thread Starter happyches

    (@happyches)

    Fixed it.. don’t know why it’s fixed, maybe a character or something in your code?

    But I deleted this bit of code (compared the new file to my older version backup on a different server that I found).. and everything works perfect now.

    Had to remove all of this: (suspect it’s just a space or something that would’ve done the trick, but I don’t know where to look so just tested this and it worked).. hope that helps you find the character that might of caused it…

    ?>
    
    <?php
    /*  Copyright 2010-2014  tomas.zhu  (email : [email protected])
    
        This program is free software; you can redistribute it and/or modify
        it under the terms of the GNU General Public License as published by
        the Free Software Foundation; either version 2 of the License, or
        (at your option) any later version.
    
        This program is distributed in the hope that it will be useful,
        but WITHOUT ANY WARRANTY; without even the implied warranty of
        MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
        GNU General Public License for more details.
    
        You should have received a copy of the GNU General Public License
        along with this program; if not, write to the Free Software
        Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
    */
    ?>
    
    <?php

    Had the same problem, thanks Happyches for solving it.

    WordPress 3.8 english, updated plugin via dashboard – did not made any modifications at all before in it.

    Had the same problem everytime I tried to add category or write something. I had to remove all this code:

    <?php
    /*
    Plugin Name: Tooltips
    Plugin URI:  https://tomas.zhu.bz/wordpress-plugin-tooltips.html
    Description: WordPress Tooltips,You can add text,image,link,video,radio in tooltips, add tooltips in gallery. More amazing features? Do you want to customize a beautiful style for your tooltips? Get <a href='https://tooltips.org' target='blank'>Wordpress Tooltips Pro</a> now.
    Version: 3.2.3
    Author: Tomas Zhu: <a href='https://tooltips.org' target='_blank'>Tooltips Pro</a>
    Author URI: https://tomas.zhu.bz
    */
    ?>
    
    <?php
    /*  Copyright 2010-2014  tomas.zhu  (email : [email protected])
    
        This program is free software; you can redistribute it and/or modify
        it under the terms of the GNU General Public License as published by
        the Free Software Foundation; either version 2 of the License, or
        (at your option) any later version.
    
        This program is distributed in the hope that it will be useful,
        but WITHOUT ANY WARRANTY; without even the implied warranty of
        MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
        GNU General Public License for more details.
    
        You should have received a copy of the GNU General Public License
        along with this program; if not, write to the Free Software
        Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
    */
    ?>

    So something’s wrong in it. Tomas.Zhu did you tried to add anything on your page? I can see that there are no new posts or anything so try adding new post or new category and you should encounter the same problem i think.

    PS. This plugin is great! ??

    Plugin Author Tomas

    (@zhuyi)

    @happyches, Hey, thanks for fix the problem! It is a strange error, In my hosting after upgrade it works well, I tried to searched the google and wordpress support forum, I do found some brother said blank line maybe will caused some problem in some hosting?

    The reason of the blank line problem is because from this version I followed wordpress suggestion to add license information(https://codex.www.ads-software.com/Writing_a_Plugin#License), I fully copy the wordpress license texts, so I guess this part texts should have no problem and the problem is caused the blank line.

    I had rewrite a new version of tooltips plugin, in which I remove the blank line which after “?>” and before “<?php”, also I added a new line “error_reporting(0);” to avoid problem, hope this works well on your hosting, if any problem more, please tell me, I will try to find the rease, thanks.

    About old version 3.2.1, when I hope to upload it in tags->3.2.1 in svn, wordpress svn hosting always failed, I tried many times, but it always stoped the process when I upload jquert.js, I will try to upload old version again some days later.

    @berek333, Thanks for the message, I have no this kind of problem on my hosting, I upgrade the tooltips plugin via wordpress back end too, I guess maybe some hosting have blank line problem? I had published a new version to try to solve this problem.

    About “did you tried to add anything on your page”
    Sorry, I am not sure I understand which page you mentioned?

    About “PS. This plugin is great! :)”
    Hey! Thanks, I am try to make it more easy to use and have more features! ??

    Best Regards,
    Tomas

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘'headers already sent' error after upgrading’ is closed to new replies.