• Hi,

    I set config to debug mode for test of new plugins.

    I tried to re-activate some plugins.

    After a quite long research during which I had to add complementary traces (into public function has_cap( $cap ) of capabilities.php), I found that one of these plugins defines indirectly a $cap which is numerical.

    This is normally a warning.

    Then when the plugin activation is launch this error generates the simple display : (French translation capture)

    Notice: has_cap est appelé avec un argument qui est déprécié depuis la version 2.0 ! L’utilisation des niveaux d’utilisateur par les extensions et thèmes est désormais interdite. Utiliser les rôles et capacités à la place. in /home/spacprot/www/wp3-01/wp-includes/functions.php on line 3508
    Voulez-vous vraiment faire cela ? (do you really want to do this ?)

    But this screen doesn’t contain any way to go on and answer…
    You just have to find yourself a solution and repair plugins (unknown which and where) or deactivate debug mode.

    Then this is a dead-lock that is issued.

    How it is planned to normally deal with these cases ?
    I spent six hour to develop a way to localize the plugin which generates the error. I had to go to internal WP functions to understand and finally enhance the traces capabilities.

    Best regards

    Trebly

The topic ‘has_cap(numeric) with debug is a dead lock in admin’ is closed to new replies.