cforms II User Forum

Registration is currently disabled.
Guest

FAQs

Login form protected by Login LockDown.


Lost password?
Advanced Search

— Forum Scope —

  

— Match —

   

— Forum Options —

    

Wildcard usage:
*  matches any number of characters    %  matches exactly one character

Minimum search word length is 4 characters - maximum search word length is 84 characters

Topic RSS
Fatal error: Call to a member function has_cap()
Installation - issue Version 14.6
August 4, 2014
11:17 pm
ram
Guest

trying to install plugin i get this message

 

Fatal error: Call to a member function has_cap() on a non-object in /var/www/blog/wp-content/plugins/cforms/lib_functions.php on line 156

 

$role = get_role('administrator');
    if(!$role->has_cap('manage_cforms')) {                 <—156 line
        $role->add_cap('manage_cforms');
    }
    if(!$role->has_cap('track_cforms')) {
        $role->add_cap('track_cforms');
    }

 

thanks for solution.

Forum Timezone: Europe/Berlin

Most Users Ever Online: 959

Currently Online:
24 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

tracedef: 43

mores: 21

Gyrus: 20

frozenwaste: 18

asuffredini: 15

photoworks: 14

Member Stats:

Guest Posters: 3757

Members: 1463

Moderators: 3

Admins: 2

Forum Stats:

Groups: 1

Forums: 4

Topics: 5355

Posts: 18732

Newest Members: juredujmovic, dreamkeeper, rajattyagi, wrokaa, lukass

Moderators: Paul (421), cnymike (8), sonika (95)

Administrators: Oliver (6400), Nicky (3)