Tips and Tricks HQ Forum

Support Forum for Tips and Tricks HQ Products

Register or log in - lost password? (Having an issue with the forum login?)

Search the Forum

Our Products

Tips and Tricks HQ Forum » General Stuff » Instructions/F.A.Q

The plugin generated xxxx characters of unexpected output

(4 posts) (3 voices)
  • Started 2 years ago by Ivy
  • Latest reply from Ivy
  • Possible Solutions (Related Topics):
    1. Error during install - plugin generated 295 characters...
    2. PayPal IPN Notification URL is already set for another plugin
    3. Lightbox Ultimate - Is the File Type WMV Supported with this Plugin?
    4. BulletProof security plugin reporting strange timthumb URL
    5. eMember - new user not created in Wordpress/Nextend (social) Connect plugin

Tags:

  • activation errors
  1. Ivy
    Administrator

    You can receive the following error at activation time of a plugin for a few reasons:

    The plugin generated xxxx characters of unexpected output during activation.

    1) There was an error that occurred at activation time on your server (try to capture and output the error message from your PHP script)
    2) The PHP files have characters outside the <?php ?> tag
    3) Some files got corrupted when you uploaded the plugin.

    Try deactivating and reinstalling the plugin. Sometimes characters can get appended to a file when you use the standard FTP transfer. Please transfer using binary mode or just use the WordPress plugin uploader (see the video tutorial from the following link):

    http://www.tipsandtricks-hq.com/ecommerce/wp-estore-quick-setup-and-usage-video-tutorial-593

    Sometimes it could be that the error was shown from a minor warning message. So if you find the plugin to be working as you expect just ignore the message.

    Posted 2 years ago #
  2. johnzena
    Member

    One good thing to remember is to get the above error to stop showing (because it will prevent some functions from working like installing other plugins) is to log out then log back in. The error will then disappear and wordpress will function as normal.

    Posted 2 years ago #
  3. itzco
    Member

    I was getting this error and went in to debug it, the plugin generates a number of notices here and there, mostly reading $_POST vars that are not set. Of course in most hostings it's not a problem but on yours might be if you are here.

    My specific fix:
    My case (localhost, affiliate plugin) for a weird reason $wpdb was unset so lines 16-22 generated a lot of notices.
    Fixed by adding this line before any use of var $wpdb (line 16)
    if (!isset($wpdb)) $wpdb = $GLOBALS['wpdb'];

    How to find what's causing yours:

    In the file: wp-admin/includes/plugin.php add to the file at the end (Change the path(wp-content/uploads/2012), this is just an example):

    add_action('activated_plugin','save_error');
    function save_error(){
    file_put_contents(ABSPATH. 'wp-content/uploads/2012/error_activation.html', ob_get_contents());
    }

    If you prefer to store the data in DB, check out this page and follow the complete instructions on debugging activation errors: http://hungrycoder.xenexbd.com/wordpress-2/how-i-have-solved-the-the-plugin-generated-xxxx-characters-of-unexpected-output-during-activation-problem.html

    Posted 10 months ago #
  4. Ivy
    Administrator

    Thank you for sharing your fix with us. =)

    Posted 10 months ago #

RSS feed for this topic

Reply

You must log in to post.

Tips and Tricks HQ  | WordPress Shopping Cart  | WP Affiliate Software  | WordPress Membership Plugin