This movie requires Flash Player 9

Call to undefined method: wp_error > has_cap()

Program of the day: meeting with a new WordPress error , and its solution.
I only made files down / upload to the server and watch out in return the error who appeared when I wanted to connect to the administration WordPress page :

[php]
Fatal error: Call to undefined method: wp_error->has_cap() in /yourWordPressPath/wp-login.php
Or
Fatal error: Call to undefined method WP_Error::has_cap() in /yourWordPressPath/wp-login.php
[/php]

1) I thought of one or several corrupted files, so I deleted my WordPress files excluding ‘wp-config.php’ and ‘/wp-content’, then uploaded again my local files, but nothing changed.

2) I thought of a problem with the SQL Database, a look inside that, check out the tables, but everything seemed OK…

3)The Final Solution: I have downloaded again a clean version of the Worpdress archive, and uploaded files ‘/wp-admin’, ‘/wp-includes’, and all the files in root (excluding ‘wp-config.php’ file), and miracle : no more error!

In conclusion I think of a corrupted file – during a transfer – on the server BUT ALSO in my local datas.
Fortunately : a fixed problem!

bug_wordpress

Leave a Reply

Suivez notre actu
TwitterFacebookFlux RSSnetvibesYoutube
Dernier Job
  • Renault formation
Vos commentaires
Téléchargements