artifex404 / wp-power-stats

Powerful and accurate real-time visitor statistics for your WordPress site.
http://wordpress.org/plugins/wp-power-stats/
12 stars 4 forks source link

Set permissions issue #7

Open vinz-web opened 7 years ago

vinz-web commented 7 years ago

Hi there,

First of all, many thanks for your work on this light weight yet powerful plugin. Currently running WP Power Stats plugin v2.2.1 on Wordpress v4.8.2, and connected as Admin. I cannot set roles (editor in my case) for (tab Permissions) : ./wp-admin/admin.php?page=wp-power-stats-settings – Statistics View Roles – Configuration Roles I always get the following error: Fatal error: Call to a member function remove_cap() on null in /myinstall/wordpress/wp-content/plugins/wp-power-stats/admin/config/index.php on line 92

I tried to force this by updating “wp-power-stats.php”, l. 117-119 _// Permissions ‘view_roles’ => ‘editor’, ‘adminroles’ => ‘administrator’, but nothing changed.

Can you help ?

Many thanks.

artifex404 commented 7 years ago

Did you try to re-install the WP Power Stats plugin? Your statistics won't be lost if you uninstall and install the plugin.

vinz-web commented 7 years ago

Hi Igor,

Thanks for your answer. I did uninstall the plugin then tried again to set permissions: "editor" for stats viewing "administrator" for admin management

And I always get this message :

Fatal error: Call to a member function remove_cap() on null in /home/kahamutaeq/www/wordpress/wp-content/plugins/wp-power-stats/admin/config/index.phphttp://index.phpononhttp://index.phpon line 92

Any other Idea? Thanks

Vincent


From: Igor Buyanov notifications@github.com Sent: Wednesday, October 11, 2017 12:54:17 PM To: artifex404/wp-power-stats Cc: vinz-web; Author Subject: Re: [artifex404/wp-power-stats] Set permissions issue (#7)

Did you try to re-install the WP Power Stats plugin? Your statistics won't be lost if you uninstall and install the plugin.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/artifex404/wp-power-stats/issues/7#issuecomment-335772590, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AeiSfdlhSoLNwXT88QNfO_VayvM5fsKEks5srJ5YgaJpZM4Pxs0r.

artifex404 commented 7 years ago

Could you please provide some more info about your environment, OS, PHP version, MySQL version, etc. Thanks!

vinz-web commented 7 years ago

Hi Igor,

Sorry for the late answer... Here is my current configuration:

Do you see / miss anything else ? Is there a new version of the plugin coming out soon ?

Thanks

Vincent