WordPress.org

Ready to get started?Download WordPress

Forums

WordPress Simple Website Screenshot
[resolved] Screenshot plugin shows the error- header already sent (6 posts)

  1. Gouri
    Member
    Posted 3 years ago #

    I am dying to use this plugin on one of my blogs. But it shows the error: header already sent. Can this be patched up somehow?

  2. mario1966
    Member
    Posted 3 years ago #

    Hi,

    I had the same problem, i because you get no answere, I fixed it by myself.

    How? I toke an older version, and replace same code.

    What you must do:

    Go to http://www.yourdomain.com/wp-content/plugins/wordpress-simple-website-screenshot/simplewebsitescreenshot.php

    Open this file.

    Replace the content i that file, with this file:

    <?php
    /*
    Plugin Name: WordPress Simple Website Screenshot
    Plugin URI: http://www.digg-it.info/wordpress-simple-website-screenshot-v-0-5
    Description: Make simple website screenshot via shortcode without watermark.
    Version: 0.5
    Author: Pigi
    Author URI: http://www.digg-it.info
    License: GPL2
    */

    /* Copyright 2010 Pigi (email : pigi.bari@gmail.com)

    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License, version 2, as
    published by the Free Software Foundation.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program; if not, write to the Free Software
    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
    */

    require_once('screenshot_menu.php');

    function screenshot($atts) {
    extract(shortcode_atts(array(
    "url" => 'www.'
    ), $atts));

    extract(shortcode_atts(array(
    "width" => 'width'
    ), $atts));

    extract(shortcode_atts(array(
    "height" => 'height'
    ), $atts));

    $sc_default_width = get_option('default_width');
    $sc_default_height = get_option('default_height');

    return '
    <img src="http://s.wordpress.com/mshots/v1/http%3A%2F%2F'.$url.'" width="'.$sc_default_width.'" height="'.$sc_default_height.'" border="0"><bt />

    <hr>
    ';
    }

    add_shortcode('screenshot', 'screenshot');
    ?>

    Maybe it is not a nice way, but before there is a solution, you can you it now.

    Have fun!

  3. Pigi_the_digg
    Member
    Plugin Author

    Posted 3 years ago #

    I think the problem is in the new function for thumbnail. I'm working to fix this problem. sorry!

  4. Pigi_the_digg
    Member
    Plugin Author

    Posted 3 years ago #

    Ok, bug fixed, tomorrow 100 % work version, with new features.

    Stay tuned

  5. mario1966
    Member
    Posted 3 years ago #

    Ok, we will wait for it.

    Thanks!

  6. Pigi_the_digg
    Member
    Plugin Author

    Posted 3 years ago #

    it's online, please let me know if you have any problems with the last version

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic