I'm playing around with plugins, trying to figure out the ins and outs of their execution, etc.
To start, I have my plugin with the following code:
return $modx->event->name;
According to the documentation, the return statement should write the text to the error log.
This works great when I only have two system events checked:
OnWebPageComplete
OnWebPagePrerender
As soon as I add in OnParseDocument to the list of system events to listen for, the whole site produces a 500 http error.
I'm using MODx v2.2.5, I've got two pages to the site, with 1 template. Theat template loads several system settings(site name, site URL), and a buch of document data(page title, content, summary). There is a bit of content on the page, about a paragraph or two, just for show.
Any thoughts on what would cause the site to basically implode with the OnParseDocument system event?