Hi @alexfurr ,
You can run a quick plugin conflict test for this.
First, deactivate the Members plugin you’re using, clear browser cache, and try to install and activate WPVR.
If the plugin installs successfully this time, then we’ll look have a look and try to find the conflict issue and reasons on our dev site.
If the error still appears after deactivating the Members plugin, let us know.
You can also try to run plugin conflict tests with your other plugins.
Thanks.
Hi Jahir,
Apologies for the delay. I’ve deactivated all members plugins and activated the 2019 theme. Still get the same error. We are on Kinsta host, which does funny things with SESSION variables, if that helps?
Best wishes,
Alex
Hi @alexfurr ,
For now, you can try to find the issue using a debug plugin.
Install a debug plugin before installing and it should show the error messages this time you try to install WPVR.
Let us know how it goes.
Thanks.
Hi @alexfurr ,
We haven’t heard anything from you in a while.
Let us know if you’re still facing the issue.
Thanks.
Hi Jahir,
Unfortunately not – same error, different line since the update.
Fatal error: Uncaught Error: Call to a member function remove_cap() on null
in /www/medlearn_736/public/wp-content/plugins/wpvr/wpvr.php on line 1383
It may be because we only have subscribers, editors and admins in the site.
The author role doesn’t exist. Can you do a check if that role exists before running has_cap?
BW,
Alex
Hi @alexfurr ,
Since you’re facing this issue for a long time, what I can do, is replicate the same scenario on our dev site and look for the issue.
Can you tell me which membership plugin you’re using on your site or any other notable settings that you’ve applied there?
You can also tell about any caching or optimizing plugin you’re using.
Thanks.
Hi Jahir,
So I’ve done some more troubleshooting – and I can reproduce the fault on other sites without a plugin.
The following lines cause the issue:
wp_roles()->remove_role( 'contributor' );
wp_roles()->remove_role( 'author' );
As a reminder the error is:
Call to a member function remove_cap() on null in plugins/wpvr/wpvr.php on line 1383
So as a suggestion, simply check if the role exists before trying to remove it.
Thanks again for your help!
Best wishes,
Alex
Hey – the latest release has fixed the issue. Thank you! Not sure if this was intentional.
best wishes,
Alex
Hi @alexfurr ,
Sorry for not informing you.
We did add membership plugin compatibility with the plugin on our last update.
Let us know if you face any more issues with the plugin.
Thanks.