Tag Archive | "Wordpress Plugin issue"

Tags: ,

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

print_r($request);
exit();

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".

Share

Posted in WordpressComments (0)

Tags:

WordPress Plugin installation error


When you install a wordpress sometimes you might get the following error:

Unable to create directory /…something…/wp-content/uploads/…. Is its parent directory writable by the server?

Although you might have granted full permissions to all the directories you still get the same error, the track is on the "Miscellaneous" setting, you can login to your wordpress admin > Settings > Miscellaneous > Store uploads in this folder. By default it should have put the upload full path of the upload directory to the box, you just need to replace it with "wp-content/uploads" and save, This will fix the error.

Share

Posted in WordpressComments (0)