• Resolved chocolate63

    (@chocolate63)


    Plugin could not be activated because it triggered a fatal error.
    Fatal error: Call to a member function add_cap() on null in /home/straypaw/public_html/wp-content/plugins/give/includes/admin/upgrades/upgrade-functions.php on line 788

    HELP!

    function give_v188_upgrades() {

    global $wp_roles;

    // Get the role object.
    $give_worker = get_role( ‘give_worker’ );

    // A list of capabilities to add for give workers.
    $caps_to_add = array(
    ‘edit_posts’,
    ‘edit_pages’,
    );

    foreach ( $caps_to_add as $cap ) {
    // Add the capability.
    Line: 788>>>>>>>>>>>> $give_worker->add_cap( $cap );
    }

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Devin Walker

    (@dlocc)

    Hi @chocolate63 – Sorry to hear you had trouble installing the plugin. I haven’t seen this issue before on install. Were you able to figure it out? If you could provide more info for us to troubleshoot that would be helpful! Thanks

    Plugin Author Matt Cromwell

    (@webdevmattcrom)

    Hi @chocolate63 just following up again to see whether we can help further. Can you provide us some details about your system info? In Give you can get them via “Donations > Tools > System Info” but it sounds like you can’t activate Give at the moment.

    Try installing a plugin called “Send System Info” and let me know what your PHP version is and how much memory your system has as well.

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Fatal error: Call to a member function add_cap() on null’ is closed to new replies.