• Resolved svkraj

    (@svkraj)


    Hi, I had installed and happily using this plugin, but for some reasons I had to reset user capacity roles to default, and I did that, since then the plugin is crashing.
    Error I am getting are as follows, (I am not a tech guy at all, this is just for your reference)

    “This plugin failed to load properly and is paused during recovery mode.

    An error of type E_ERROR was caused in line 18 of the file /var/www/html/wp-content/plugins/order-hours-scheduler-for-woocommerce/setting/setting.php. Error message: Uncaught Error: Call to a member function add_cap() on null in /var/www/html/wp-content/plugins/order-hours-scheduler-for-woocommerce/setting/setting.php:18 Stack trace: #0 [internal function]: Zhours\Setup->Zhours\{closure}(‘shop_manager’, 0) #1 /var/www/html/wp-content/plugins/order-hours-scheduler-for-woocommerce/setting/setting.php(19): array_walk(Array, Object(Closure)) #2 /var/www/html/wp-includes/class-wp-hook.php(286): Zhours\Setup->Zhours\{closure}(”) #3 /var/www/html/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(NULL, Array) #4 /var/www/html/wp-includes/plugin.php(465): WP_Hook->do_action(Array) #5 /var/www/html/wp-settings.php(525): do_action(‘init’) #6 /var/www/html/wp-config.php(66): require_once(‘/var/www/html/w…’) #7 /var/www/html/wp-load.php(37): require_once(‘/var/www/html/w…’) #8 /var/www/html/wp-admin/admin.php(34): require_once(‘/var/www/html/w…’) #9 /var/www/html/wp-admin/plugins.php(10): require_once(‘/var/www/html/w…’) #10 {main} thrown”
    Would be great if you can help me with this

Viewing 1 replies (of 1 total)
  • Plugin Author bizswoop

    (@bizswoop)

    The error reported by the plugin is related to user roles. Modifying or reseting WordPress user roles is a task we would recommend you consult a developer as these type of actions can create errors and issues.

    On the Order Hours plugin, we would recommend the following:

    1. Perform a Plugin/Theme conflict test to verify the plugin is not conflicting with another plugin, especially if you are using a plugin to modify and reset the WordPress user roles.

    2. Reset the Order Hours plugin. To reset the plugin, we would recommend these operations be performed by a technical developer individual. First deactivate and delete the plugin. Second, remove all zh and zhours tables from the database. Finally, open up the WordPress options file: /wp-admin/options.php and delete references to zh. After these steps are completed, download and activate the Order Hours plugin again.

    If neither recommendation works, you may consider syncing with a developer to review your WordPress user role configurations on your site.

Viewing 1 replies (of 1 total)
  • The topic ‘ERROR’ is closed to new replies.