Basically it goes like this (relevant steps only):
plugins.php
page callsactivate_plugin()
function.- Function starts output buffering.
- Includes plugin file.
- Fires
activate_plugin
action. - Fires
'activate_' . trim( $plugin )
action. - Fires
activated_plugin
action. - If buffer is not empty it creates
WP_Error
object and returns it. plugins.php
page 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_Error
object 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 can I create a bash install script for my WordPress sites setup (WP+plugins+theme)?
- 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?
- PHP Deprecated: Non-static method should not be called statically
- WordPress plugin installation error
- Make plugin uninstalable on older versions of WordPress
- Please select a file error
- Plugin.php: PHP Notice: Undefined offset: 0 in
- check for the current screen
- An Unexpected HTTP Error occurred during the API request
- echo do_shortcode is not working on theme’s template
- Getting a 404 when trying to load /wp-admin/plugin-install.php
- Can’t use the built-in wordpress install/upgrade plugin feature [closed]
- Unable to activate wordpress importer after installing it
- Weird problems after recovery from security breach
- Can a plugin still effect a site even after deletion?
- Accessing GET variable named ‘error’
- Error uploading plugin zip file
- Call to undefined function get_userdata in user.php
- Only Homepage not loading properly
- One of my plugins broke when I tried to update it, how do I safely uninstall it?
- Images not showing after changing wp-content folder name
- Theme and plugin install or update display error in localhost
- Hook (or other way) to find out when another plugin is activated / installed
- WooCommerce Checkout Error [closed]
- Plugin: Google Analytics for Dashboard error – Timestamp is too far from current time
- How to redirect a URL with parameters?
- Problem using Press-this book marklet
- Python with wordpress plugin
- Nonce failing on form submission
- get 404 when accessing wp-admin/plugin-install.php
- Deactivating all plugins and reactivating one by one, fixes conflicts. Why?
- WordPress shows error related to allow_url_fopen
- Get errors from WP_Error to different variables
- 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
- Plugin Add New Installer failing
- 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
- Oxygen plugin wordpress stuck in loading sequence forever when trying to edit a page [closed]