WordPress.org

Ready to get started?Download WordPress

Forums

Youtube shortcode
[resolved] Headers already sent error (4 posts)

  1. blurped
    Member
    Posted 1 year ago #

    I'm receiving this error after activating the Youtube Shortcode plugin:

    Notice: Undefined property: Youtube_shortcode::$is_mobile in /home/content/31/9891731/html/wp-content/plugins/youtube-shortcode/youtube-shortcode.php on line 372

    Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/content/31/9891731/html/wp-content/plugins/youtube-shortcode/youtube-shortcode.php:372) in /home/content/31/9891731/html/wp-content/plugins/formidable/classes/controllers/FrmAppController.php on line 284

    It sounds like your plugin offers the ability to add RSS feeds for YouTube search terms, so that a page can display recent YouTube videos based on the search/feed parameters. Is that correct?

    http://wordpress.org/extend/plugins/youtube-shortcode/

  2. zanozik
    Member
    Posted 1 year ago #

    Hi,
    I think the problem lies in the recent update when the author decided to take out the resetting of the initial is_mobile switch.
    Also, you can see that if debugging is turned on in your wordpress installation, meaning that the notice of an error is sent before the actual header of your page. Anyway, hopefully this can be resolved in the next release. Until then you can use this small hack to bring the resetting back on:
    insert new line @ youtube-shortcode.php:306
    $this->is_mobile = false;

  3. Tubal
    Member
    Plugin Author

    Posted 1 year ago #

    Try the new release 1.8.5. Fixes this issue. Sorry guys!

  4. zanozik
    Member
    Posted 1 year ago #

    Thank you for the rapid fix :) I can confirm it's working. No biggie anyway - only debugging installation were affected.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags