@romain I commented out that line in the plugin and it works now.
Also had to change line 166 in resourcewatcher.class.php located in: core/components/resourcewatcher/model/resourcewatcher from this:
$phs = array_merge($resource->toArray(),$user->toArray(), $profile->toArray(),$id); $this->modx->setPlaceholders($phs, $prefix);
to this:
$phs = array_merge(
//$resource->toArray(),
$user->toArray(),
$profile->toArray(),
$id);
$this->modx->setPlaceholders($phs, $prefix);
That got it working on both front end and back end.
Then I added this to get it working only for a specific user group since I don't want it emailing me every time someone creates or edits something on the backend.
if (!$modx->user->isMember('Blogger')) return;
On line 4 of the ResourceWatcher plugin in case someone wanted to run this on a specific user group.
@romain I hope this helps you to accomplish what you wanted to do with ResourceWatcher when we spoke on IRC.
Thanks for your help guys.