Basically it goes like this (relevant steps only):
plugins.phppage callsactivate_plugin()function.- Function starts output buffering.
- Includes plugin file.
- Fires
activate_pluginaction. - Fires
'activate_' . trim( $plugin )action. - Fires
activated_pluginaction. - If buffer is not empty it creates
WP_Errorobject and returns it. plugins.phppage checks for error and displays error message.
So output happens somewhere between steps 2 and 7. If it comes up for multiple plugins then steps 3 and 5 are safe to exclude, they are plugin-specific.
So it is likely something in either activate_plugin or activated_plugin. Also actual unwanted output is passed in WP_Errorobject but not used (only its length).
I’d try to dump hooks first, will take bit of extra code in core a bit to get to that output in WP_Error object.
Related Posts:
- Why do I get this “peer’s certificate issuer not recognised” error when trying to install a theme?
- How to catch/what to do with a WP Error Object
- wordpress on localhost lamp doesn’t let me install plugins
- An unexpected error occurred. Something may be wrong with WordPress.org or this server’s configuration
- What are the best practices for updating?
- How to eliminate weird 404 errors in wp-admin?
- How to automatically install default WordPress plugins?
- Does plugin uninstall always put WordPress back into original state?
- How to get Login Error messages on a custom template
- WordPress plugin installation error
- Please select a file error
- Error: “Cannot modify header information”
- Plugin.php: PHP Notice: Undefined offset: 0 in
- check for the current screen
- An Unexpected HTTP Error occurred during the API request
- Dashboard Disappears after Upgrade
- echo do_shortcode is not working on theme’s template
- How to implement Sentry on WordPress? [closed]
- Can a plugin still effect a site even after deletion?
- Accessing GET variable named ‘error’
- Error uploading plugin zip file
- How does WordPress process plugin installations?
- Call to undefined function get_userdata in user.php
- Only Homepage not loading properly
- Images not showing after changing wp-content folder name
- Hook (or other way) to find out when another plugin is activated / installed
- qTranslate conflicts with SEO-plugins [closed]
- CSV file generation failing
- How to redirect a URL with parameters?
- Problem using Press-this book marklet
- Python with wordpress plugin
- Nonce failing on form submission
- Uncaught TypeError: jQuery(…).flipster is not a function in wordpress
- WordPress site periodically goes down
- Deactivating all plugins and reactivating one by one, fixes conflicts. Why?
- Why do plugins deactivate by themselves?
- WordPress shows error related to allow_url_fopen
- Why this function not working for install database on plugin activation
- Import sql data from a large file when installing plugin
- Redirect to another page using contact form 7? [closed]
- Get plugin download URL from slug
- Modify wp_installed_email / wp_new_blog_notification
- Installing wordpress on a subdomain of an already existing static website
- HTTP 500 error after plugin install
- Can’t activate Plugin: unexpected T_STRING, expecting T_FUNCTION [closed]
- plugin generated 751 characters of unexpected output during activation
- Plugin getting Cannot modify header information errors
- What are the correct permissions so WP doesn’t ask for FTP credentials if installing plugin?
- XML Sitemap Generator can’t notify google and bing
- There has been a critical error on your website – won’t fix no matter what
- To perform the requested action, WordPress needs to access your web > server
- UTF-32be error WordPress
- WordPress unable to write files in the server
- Plugin showing error
- Classic, but puzzling “The uploaded file could not be moved”
- Can’t Install/Upgrade Plugins Through WordPress
- Problem after updating plugins
- Apparent errer when installing plugin
- Undefined index: ratings_score …/wp-postratings.php on line 994
- Strange Behavior on New Theme Points to Idiocy
- Error activating certain plugins
- Stopping WordPress’ WYSIWYG Editor from Converting “didn’t” into “didn””””’t”?
- WordPress fatal error from php protocol codes
- WP search box on page not finding .PDF files
- Changing wordpress/woocommerce notices default message to other languages (text)
- Upload WordPress Plugin from ZIP Broken – Returns Symbols Squares & question marks
- Critical Error after Updraft Restoration
- There has been a critical error on your website
- I can’t view the orders on the woocomerce dashboard with the brainblocks plugin
- ERROR message: “The site is experiencing technical difficulties. Please check your site admin email inbox for instructions.”
- Object of class WP_Error could not be converted to string in /formatting.php
- Cannot modify header information – headers already sent during plugin activation
- WordPress website dont load CSS, JS and images
- WordPress Plugin Install / Update Problem
- ClassLoader.php issues after moving to a new host
- WP default file upload hook not working if used in a plugin
- Plugin install error: Installation failed: The package could not be installed
- Warning: Illegal offset type in /var/www/html/wp-includes/option.php on line 1924
- Speed issues because of CSS & JavaScript
- A more elegant way to handle notices/warnings
- WordPress menu and plugin installation problem
- Is there going to an issue running different features of WP site in different subdomains?
- Moving to WordPress Premium versus a hosting provider
- A plugin is giving me “You do not have sufficient permissions to access this page.” error
- Upacking the package… stalls, but installs plugin
- Restore Category Base
- WordPress 3.5 install error
- Is there a plugin that will override the “Error establishing a database connection” message? [closed]
- HTTP Error 403 When Trying to Login
- Using one-click plugin upgrade feature securely on suexec server
- The plugin generated xxx characters of unexpected output during activation
- WordPress Customer Reviews Error: Line 239?
- WordPress Plugin: Demon Image Annotation
- WordPress Plugins Error
- How to get an error message if a form is empty (plugin: Post for site) [closed]
- automation of plugin installations
- WordPress error Fatal error: Uncaught TypeError: Argument 3 passed to Automattic :get_setting_for_feature() [closed]
- Oxygen plugin wordpress stuck in loading sequence forever when trying to edit a page [closed]
- Plugin that supports the purchase and installation of other plugins?
- How to fix a Wordfence scan that doesn’t finish?