WordPress An unknown error occurred

When you login to wordpress admin panel and trying to search a plugin you might get the following error

"An unknown error occurred"

How does the error come out? generally speaking it’s because of the wordpress API, when the returned value is empty or imcomplete it will give out this error, you can install the plugin manually if it’s urgent. But for knowledge sharing purpose, we’ll try to find out what’s going on.

We can refer to this directory and file "wp-admin\includes\plugin-install.php"

and find

$request = wp_remote_post(‘http://api.wordpress.org/plugins/info/1.0/’, array( ’timeout’ => 15, ’body’ => array(‘action’ => $action, ’request’ => serialize($args))) );

then add theh following at the end


You can go to wp-admin and search the plugin again, if there’s any problem it will print out the actual error messages but not just the simple "An unknown error occured".


- has written 121 posts.

Leave a Reply

You must be logged in to post a comment.