I found something...
The URL is entered without a trailing slash. For example:
www.mysite.nl/page/item-3
However, in the plugin, the following line:
4. $uri = $modx->resourceIdentifier;
Gives:
www.mysite.nl/page/item-3/
With trailing slash. The result is that the last chunk of the URI is empty (it's the part after the trailing slash). This means the line
12. if(count($parameter)!=2)
is true (there are not two parameters in the last chunk) and the plugin returns without doing anything.
When I enter the URL
with a trailing slash, line 4 in this plugin in reverse gives the URL
without the trailing slash, and everything works. That's strange, isn't it?
I have not changed the URLs, they always worked without trailing slash. Why it's suddenly not working anymore is a mystery for now.
I wonder why $modx->resourceIdentifier gives the extra trailing slash if it wasn't there in the first place, and why it is removed when it IS there.
Any help would be appreciated!