• Resolved alankiller

    (@alankiller)


    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

    • This topic was modified 8 years, 4 months ago by alankiller.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author Joachim Jensen

    (@intoxstudio)

    Thank you for reporting this. I’m not sure why you’re seing that error when you’re using the latest WordPress version. Perhaps there is a conflict with another plugin.

    Would it be possible for you to quickly deactivate other plugins to find out if that is the cause?

Viewing 1 replies (of 1 total)

The topic ‘Missing argument in level.php on line 684’ is closed to new replies.