Support » Plugin: Youtube shortcode » Headers already sent error

  • Resolved blurped

    (@blurped)


    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/

Viewing 3 replies - 1 through 3 (of 3 total)
  • 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;

    Plugin Author Tubal

    (@tubal)

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

    Thank you for the rapid fix 🙂 I can confirm it’s working. No biggie anyway – only debugging installation were affected.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Headers already sent error’ is closed to new replies.