Maximum replacements being ignored

Search
Other Bug Reports questions
Forum

Maximum replacements being ignored

Ian Rispin's Avatar Ian Rispin
Joomla vsn 3.10.11
php 7.4
Rereplacer 12.4.0

I have used rereplacer to replace key words in Kunena forum posts with html links for several years.

I have Maximum Replacements set to 1 for all my replacements.

Recently (not sure exactly when - but likely after a joomla core update) the Maximum Replacements value is being ignored and every matching word is replaced rather than respecting my chosen limit of 1.

Examples showing multiple replacements (should be just 1):

divorce.wikivorce.com/forum-index/family...usation-in-mediation

divorce.wikivorce.com/forum-index/child-...joint-shared-custody
Peter van Westen's Avatar Peter van Westen ADMIN
What is the Search Area set to in the ReReplacer item?
Please post a rating at the Joomla! Extensions Directory
Ian Rispin's Avatar Ian Rispin
Has been same settings for couple of years - and used to work until very recently.

Enable in area - components.

Only between (start):
<div class="kmsg">

Only between (end):
</div>

Normally I only use rereplacer in my forum.

But i just added a new rereplacer item to replace the word "Wikivorce" with a hyper link in a normal article on my "about us" page. So you can see that the Maximum Replacements value is ignored even in a normal article:

divorce.wikivorce.com/about-us.html

The word "Wikivorce" should only be replaced once - but is replaced every time (5 times in this article).
The search area for this example is just set to "Body(not in head)"
Peter van Westen's Avatar Peter van Westen ADMIN
Please try the latest development version from:
regularlabs.com/development-releases
Please post a rating at the Joomla! Extensions Directory
Ian Rispin's Avatar Ian Rispin
Thanks Peter for such a fast response.

That seems to be working now. Your excellent support is very much appreciated.
Peter van Westen's Avatar Peter van Westen ADMIN
Ok, great 🙂
The fix will be included in the next release.
Please post a rating at the Joomla! Extensions Directory
You can only post on this forum if you log in