• PHP Fatal error:  Uncaught TypeError: Illegal offset type in isset or empty in /web/wp/wp-includes/capabilities.php:801
    
    Stack trace:
    #0 /web/wp/wp-includes/class-wp-user.php(778): map_meta_cap()
    #1 /web/wp/wp-includes/capabilities.php(982): WP_User->has_cap()
    #2 /web/wp/wp-includes/capabilities.php(874): user_can()
    #3 /web/wp/wp-admin/includes/plugin.php(1411): current_user_can()
    #4 /web/app/plugins/gravityforms/gravityforms.php(1801): add_submenu_page()
    #5 /web/wp/wp-includes/class-wp-hook.php(308): GFForms::create_menu()
    #6 /web/wp/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()
    #7 /web/wp/wp-includes/plugin.php(517): WP_Hook->do_action()
    #8 /web/wp/wp-admin/includes/menu.php(155): do_action()
    #9 /web/wp/wp-admin/menu.php(420): require_once('...')
    #10 /web/wp/wp-admin/admin.php(158): require('...')
    #11 /web/wp/wp-admin/index.php(10): require_once('...')
    #12 {main}
      thrown in /web/wp/wp-includes/capabilities.php on line 801
    

    due to drip-gravity-forms/includes/class-gfp-drip.php defining capabilities_form_settings as an array thus breaking login with this Fatal error.

    Must be fixed ASAP

Viewing 1 replies (of 1 total)
  • Have also hit this recently, which blocked out non-admin editors and users on the site.

    As an immediate workaround we could promote trusted users to be admins, which bypasses the capability checks and the error.

    As a second workaround, I modified the class-gfp-drip.php file to remove the arrays. Lines 129-131 now look like this instead:

    capabilities_settings_page' => 'gravityforms_drip_plugin_settings',
    'capabilities_form_settings' => 'gravityforms_drip_form_settings',
    'capabilities_uninstall' => 'gravityforms_drip_uninstall'

    I’ve tried to get in touch with the plugin’s developer through various means (email, slack request, mastodon), but no luck so far.

    Would be very interested to know if this plugin is still being supported, and/or whether there any alternatives that provide the same functionality.

    • This reply was modified 7 months, 3 weeks ago by exmosis.
Viewing 1 replies (of 1 total)
  • The topic ‘incompatible with ACF 6.1.x’ is closed to new replies.