Fatal error if user attempt to log-in on wp multisite
hi there
I've been using Civirules a bit, and it really rocks, thank's.
I however have bumped into an issue that I can't explain yet, it might be a bug, a "missing" feature or e very edge use case fall ?!
I have a wp network of sites, have set CiviCRM accordingly, and have installed and set a CiviRules, which works great. (it add a contact to a group on event registration). But, it appears that I get a fatal error when a random wp-user (tries) to log-in a sub-site (using wp-login.php).
To make sure there are no misunderstanding :
- The network admin can log-in, on any sites without crash,
- Any wp user can log-in on the main site without crash
- but any user (but the network admin) cause the fatal error below when trying to log in ; this applies even if the user is an admin of the sub-site he tries to log into.
Fixing attempt
- Disabling CiviRules fix the issue
- Creating a dumb (unrelated) rule just so CiviRule is not left empty do not fix the issue
- I have tried to check Civi-ACL with no Luck
- I have also tried to dig into wp-user roles and capability, using wp members plug-in but even a sub-site admin with all capabilities crash.
- I've done a chmod -r 777 on /home/html/wp-content/uploads/civicrm/ext/org.civicoop.civirules/ with no luck
In some case I get the following fatal error but the user in logged in anyhow, in some other the only way to get rid of this fatal error is to clear browser history ?!
If you have any clues where this comes from it would be great, and if I could help with some testing of debug log let me know :)
Regards
Fatal error: Uncaught Error: Class 'CRM_Civirules_Utils' not found in /home/html/wp-content/uploads/civicrm/ext/org.civicoop.civirules/civirules.php:356 Stack trace: #0 /home/html/wp-content/plugins/civicrm/civicrm/vendor/symfony/event-dispatcher/EventDispatcher.php(214): civirules_trigger_preinsert(Object(Civi\Core\DAO\Event\PreUpdate), 'civi.dao.preIns...', Object(Civi\Core\CiviEventDispatcher)) #1 /home/html/wp-content/plugins/civicrm/civicrm/vendor/symfony/event-dispatcher/EventDispatcher.php(44): Symfony\Component\EventDispatcher\EventDispatcher->doDispatch(Array, 'civi.dao.preIns...', Object(Civi\Core\DAO\Event\PreUpdate)) #2 /home/html/wp-content/plugins/civicrm/civicrm/Civi/Core/CiviEventDispatcher.php(198): Symfony\Component\EventDispatcher\EventDispatcher->dispatch('civi.dao.preIn in /home/html/wp-content/uploads/civicrm/ext/org.civicoop.civirules/civirules.php on line 356