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

  1. blurped
    Posted 3 years 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?


  2. zanozik
    Posted 3 years ago #

    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
    Plugin Author

    Posted 3 years ago #

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

  4. zanozik
    Posted 3 years 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

  • Youtube shortcode
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic