• Resolved netstepinc

    (@netstepinc)


    WP: 5.2.4
    WooCommerce: 3.7.1
    PHP: 7.2

    Unzip > Upload > Activate = Fatal Error
    What am I missing?

    
    Fatal error: Uncaught Error: Call to a member function add_cap() on null in /wp-content/plugins/wc-product-table-lite/main.php:187 Stack trace: #0 /wp-includes/class-wp-hook.php(286): wcpt_activate('') #1 /wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters('', Array) #2 /wp-includes/plugin.php(465): WP_Hook->do_action(Array) #3 /wp-admin/plugins.php(177): do_action('activate_wc-pro...') #4 {main} thrown in /wp-content/plugins/wc-product-table-lite/main.php on line 187
    
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author WC Product Table

    (@wcproducttable)

    Hi,

    Thank you for sending in your query.

    Are you sure you have the administrator role available on your site (available by default)? Do you have any custom functions modifying user role on the site or any plugin handling user roles?

    This error does not normally come up while activating WCPT on a fresh WP install. So, we need to isolate what other component could be coming in the way and causing this issue.

    Would it be possible for you to try creating a completely fresh wordpress install, then add in only woocommerce and wcpt to check if you face any errors in that scenario? Now begin adding other plugins one by one to find out when the issue starts in order to isolate the conflicting plugin?

    Please drop in an email to [email protected] so we can discuss further as I might require more details about the site.

    Regards,
    Kartik

    Plugin Author WC Product Table

    (@wcproducttable)

    Appears you have resolved the issue yourself! For everyone else’s reference – the issue originated from a user role manager plugin that modified the administrator user role on the site. This caused problems because WCPT requires admin user role to provide access to editor pages. However, WCPT also allows the admin to change who can access the admin pages via a user role plugin.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Install Fail > Fatal Error’ is closed to new replies.