Missing argument in level.php on line 684
-
Hello!
Please, I need help with this problem: when I login with any user (except the admin), in the moment that I going to create a new post, I have this error in the top of the page: “Warning: Missing argument 4 for RUA_Level_Manager::user_level_has_cap() in C:\xampp\htdocs\wp-content\plugins\restrict-user-access\level.php on line 684”. I uninstalled the plugin and reinstalled it, with the same result.
The line 684 on that file has the following:public function user_level_has_cap( $allcaps, $cap, $args, $user ) { $global_access = $this->_has_global_access(); // if ($cap && $cap[0] == RUA_App::CAPABILITY && $global_access ) { // $allcaps[ $cap[0] ] = true; // } if( !$global_access && defined('WPCA_VERSION') ) { $allcaps = $this->get_user_levels_caps( $user->ID, $allcaps ); } return $allcaps; }What should I do to solve this error?
Thanks in advance.Alan Sandoval
The page I need help with: [log in to see the link]
The topic ‘Missing argument in level.php on line 684’ is closed to new replies.