WordPress.org

Ready to get started?Download WordPress

Forums

Font - official webfonts plugin. NO CODING! Just click & change font size, color and font face v
[Plugin: Font] Warning: Cannot modify header information - headers already sent... (14 posts)

  1. LJagermaster
    Member
    Posted 3 years ago #

    As soon as I activated the Font plugin the following message appeared near the top of the plugins page:

    The plugin generated 3 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.

    And sure enough, when I reloaded the sites homepage the following message was displayed at the top of the page:

    Warning: Cannot modify header information - headers already sent by (output started at /.../wp-content/plugins/font/Font.php:1) in /.../wp-content/plugins/wp-activity/wp-activity.php on line 172

    On this occasion it seems to be conflicting with the WP-Activity plugin, of which the above mentioned line (172) contains the following:

    setcookie('act_logged',time());

    I'd prefer to keep both activated with the WP-Activity plugin taking priority so any help to resolve this would be greatly appreciated.

    Thanks in advance,

    LJ

    P.S.
    I had a look inside the wp-activity.php file for the line setcookie('act_logged',time());, but it's not inside that file which rules out a duplicate execution issue...

  2. LJagermaster
    Member
    Posted 3 years ago #

    I stand corrected, it's also causing the same issue with the Social Connect plugin when clicking on some of the Open ID Providers - this is a wild guess but I'm assuming it'll conflict pretty much any plugin that checks if a user is logged in (could be - and probably am - wrong but it seems like a likely scenario based on the above trend).

    Would removing the line I posted above - setcookie('act_logged',time()); - cause more problems than I'm already experiencing?

  3. killerdeveloper
    Member
    Plugin Author

    Posted 3 years ago #

    Hello,
    Thanks for your feedback and using my plugin!

    I'm currently working on major extension which will make this plugin 2x more useful!
    During that I've made some mistake and in late night hours commited that in SVN.

    Somehow "Include Unicode Signature (BOM)" became seleted in main .php file properties and that was the reason of generating that unexpected input!

    Remove and reinstall plugin that will help as correct version is already online. Please confirm that's working for you too.

    Expect version 2.0 with main page title and post titles changing option soon!

    cheers,
    Pawel

  4. LJagermaster
    Member
    Posted 3 years ago #

    Just to clarify, do you mean the working version is available via the plugin directory (can be installed automatically from the admin area)? I just searched for it and the only matching result was the 1.0beta version I have installed, there's also no mention of any changes:

    http://wordpress.org/extend/plugins/font/

    Just need to be sure in case after re-installing it I have the same issue... :-/

  5. killerdeveloper
    Member
    Plugin Author

    Posted 3 years ago #

    Yes you have to download same version I've put no update information just as when I've broken it. First deactivate and remove with files. Then install again.

    This is my first plugin so I have to learn how to put new version...as new version:) Currently I'm learning how to do it because I'm going to upload big new version tonight in couple of hours!

    Great features as I said in previous post!

  6. LJagermaster
    Member
    Posted 3 years ago #

    Thanks for the update. Unfortunately there's another issue though, when I change regular font into one provided by your plugin it seems to work fine, however as of yet I've been unable to change the font of a text entry more than once. I've tried closing and re-opening the Font box but doesn't make any difference... :-/

  7. killerdeveloper
    Member
    Plugin Author

    Posted 3 years ago #

    Where's the problem occuring?
    Is it post editing and changing of selected text or Appearance->Font and changing font for blog title and post headers?
    What is your browser?
    Which wordpress and plugin version are you using?

  8. LJagermaster
    Member
    Posted 3 years ago #

    It was the post/page edit screen I was referring to initially, however, I've since tried the Page Title function and that didn't work either. Using the latest version of the browser with 3.0.1 of wordpress (due to essential customisations made to core wordpress files before 3.0.2 was released it's not possible to upgrade the core files for the foreseeable future as it would create too big a workload than can be handled). Using Orca which runs on FireFox's Gecko engine (it's basically a more functional "skin" for the engine)... :-/

  9. killerdeveloper
    Member
    Plugin Author

    Posted 3 years ago #

    I've just tried on 3.0.1 version and it was working fine. Try other browser. Plugin was developed for the latest versions of IE, Chrome and Firefox. Orca might have same engine as FF but still MAY be a reason of this problem.

  10. LJagermaster
    Member
    Posted 3 years ago #

    Sorry, I should have been more specific, it doesn't use the same engine as firefox, it uses firefox's own engine to display web content (if firefox isn't installed on the same machine as Orca it can't be used). Much like the SeaMonkey browser (which is completely unrelated, I'm just using it as an example as it's a more notorious browser than Orca).

    However, I did log in using firefox and attempted to change the page title font, it still didn't work (when I click on the desired font nothing happens within the preview window, when I click save the preview window is the same as before and all pages on the site remain unchanged). And it's the same story for the post/page edit screen, can change a font item once, but can't change it again... :-/

    If it's definitely working on your end under 3.0.1 then there's a chance it's a conflict with another plugin. Are you aware of it conflicting with any specific ones, or even certain types of plugins (that call certain functions)?

  11. killerdeveloper
    Member
    Plugin Author

    Posted 3 years ago #

    Aaah I think the problem is SELECTOR under preview.
    Show me a website and I'll see if selector is set up correctly.

  12. LJagermaster
    Member
    Posted 3 years ago #

    Show me a website and I'll see if selector is set up correctly.

    I'm not sure what you mean by that - do you mean my own website or a general one? I'm confused as to how either would help (surely the "selector" code would be contained in the plugin code?)... :-/

    If you mean the site I used it on, it's at:
    http://sin.theweare.net

  13. killerdeveloper
    Member
    Plugin Author

    Posted 3 years ago #

    Finally we have an answer,

    The problem is that your template is using image as a title and that's why there's nothing we can do to change font using "Font" plugin.

    Here's the source to that image from your blog:
    http://sin.theweare.net/wp-content/themes//grunge-style/images/bg_header.jpg

  14. LJagermaster
    Member
    Posted 3 years ago #

    So what you're saying is the plugin can only change the main title of the blog up in the header section? The way it's worded it sounds like it's supposed to be able to change the titles of pages & posts (the "Page title/Post headers" selectable items strongly imply this). I experience the same issue posted above with both of these functions (Page title/Post header). Since they're displayed in text format (and if this plugin should be able to change the font used on those items) the main image wouldn't interfere with them.

    The CSS file also uses the default page/post title styling classes so shouldn't be any problems there... It also wouldn't explain why I'm only able to change the font of a text entry once in the Edit Post/Page box... :-/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic