• Resolved Alex Furr

    (@alexfurr)


    Hi,

    Just to let you know when I installed this (very useful!) plugin it broke a load functionality on our site.

    We found the problem was an additional line break on your code.
    Your existing code:
    —————-
    <?php
    /*
    Plugin Name: Soundcloud oEmbed
    Plugin URI: http://www.brandonshutter.com
    Description: Enables the ability to paste a SoundCloud URL in it’s own line and for oEmbed to make it play.
    Version: 1.0
    Author: Brandon Shutter
    Author URI: http://www.brandonshutter.com
    */
    ?>

    <?php
    function add_oembed_soundcloud(){
    wp_oembed_add_provider( ‘http://soundcloud.com/*&#8217;, ‘http://soundcloud.com/oembed&#8217; );
    }
    add_action(‘init’,’add_oembed_soundcloud’);

    ?>

    We simply took out the extra line break (see below)
    —————-
    <?php
    /*
    Plugin Name: Soundcloud oEmbed
    Plugin URI: http://www.brandonshutter.com
    Description: Enables the ability to paste a SoundCloud URL in it’s own line and for oEmbed to make it play.
    Version: 1.0
    Author: Brandon Shutter
    Author URI: http://www.brandonshutter.com
    */

    function add_oembed_soundcloud(){
    wp_oembed_add_provider( ‘http://soundcloud.com/*&#8217;, ‘http://soundcloud.com/oembed&#8217; );
    }
    add_action(‘init’,’add_oembed_soundcloud’);

    ?>
    ————–

    to fix things. I’m sure other people may have problems with this – basically it broke a file serving problems as added an extra byte to the start of the served documents that caused corrupt files.

    Please update your plugin with the removed line!

    Alex

    http://ww.wp.xz.cn/plugins/oembed-soundcloud/

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Erroneous line break causing major problems’ is closed to new replies.