Problem with Free Rereplacer V12.1.0

Search
Other Bug Reports questions
Forum

Problem with Free Rereplacer V12.1.0

Rottenberg Michel's Avatar Rottenberg Michel
Hello,

I'm using Free Rereplacer on Joomla 3.10.2.
I have uploaded today the V12.1.0.
I have a problem with ']]'.

I have a record to embed a Youtube video in my pages.

the search zone is
\[ytvideo\](.*?)\[/ytvideo\]

the replacer zone is
{source 0}
<?php

//recuperation de l'id de la video YT
$parm =  stripslashes('[[escape]]\1[[/escape]]');

echo "[[iframe width='100%' height='480' src='//www.youtube-nocookie.com/embed/".$parm."?&autoplay=1&autohide=1&rel=0&modestbranding=1' frameborder='0' allowfullscreen]][[/iframe]]";

?>
{/source}


On previous version the result of the page is :
<iframe width='100%' height='480' src='//www.youtube-nocookie.com/embed/[[escape>OQWTWICDvzY</escape>?&autoplay=1&autohide=1&rel=0&modestbranding=1' frameborder='0' allowfullscreen></iframe>

With the V12.1.0 the result is :
<iframe width='100%' height='480' src='//www.youtube-nocookie.com/embed/[[escape>OQWTWICDvzY</escape>?&autoplay=1&autohide=1&rel=0&modestbranding=1' frameborder='0' allowfullscreen]]</iframe>

The text
allowfullscreen]]
is not transformed like that :
allowfullscreen>


Is it possible (presently) to reload the previous version until you correct it. Presently my site is completely blocked.


thank you for your help

Best regards
Michel Rottenberg
Peter van Westen's Avatar Peter van Westen ADMIN
It is probably due to the system plugin ordering. Try changing the ordering of the plugins in question.
See: regularlabs.com/blog/242-plugin-order-is-important
Please post a rating at the Joomla! Extensions Directory
Rottenberg Michel's Avatar Rottenberg Michel
I'm afraid to create another problems changing the plugin order.
Until today the site was working correctly.
I have not changed other thing on the site today except the upload of Regular lab new versions.

Is it possible to get the Rereplacer previous version to have my site working ASAP ?

thank you for your help
Peter van Westen's Avatar Peter van Westen ADMIN
Just restore to the backup you made just before you updated. You made one of course.
Otherwise download an older version from the downloads page:
regularlabs.com/rereplacer/download
Please post a rating at the Joomla! Extensions Directory
Rottenberg Michel's Avatar Rottenberg Michel
Of course I have a backup. But before doing a restore, I have just uploaded the V12.0.0 (from august 14th). With this version the site is working. Thank you.

If you need an access to the site to see what has happened, tell it me. I will give you a superadmin access to the site.
Peter van Westen's Avatar Peter van Westen ADMIN
I cannot reproduce the issue.
First check if the issue is just with ReReplacer and not with a combination of things you have going on.

So try replacing something with simply:
[[iframe ...]][[/iframe]]

Also, why are you using the double bracket syntax in the first place?
Why not simply replace with:
{source 0}<?php

//recuperation de l'id de la video YT
$parm =  stripslashes('[[escape]]\1[[/escape]]');

echo '<iframe width="100%" height="480" src="//www.youtube-nocookie.com/embed/' . $parm . '?&autoplay=1&autohide=1&rel=0&modestbranding=1" frameborder="0" allowfullscreen></iframe>";

?>{/source}
Please post a rating at the Joomla! Extensions Directory
Rottenberg Michel's Avatar Rottenberg Michel
I have got the problem in 2 cases. I give you the Rereplacer record in this post

the first case is when I want to embed a youtube video in the site.
I have changed the content of the record as you asked it. The Rereplacer record is
{source 0}
<?php

//recuperation de l'id de la video YT
$parm =  stripslashes('[[escape]]\1[[/escape]]');

echo "<iframe width='100%' height='480' src='//www.youtube-nocookie.com/embed/".$parm."?&autoplay=1&autohide=1&rel=0&modestbranding=1' frameborder='0' allowfullscreen></iframe>";

?>
{/source}

The second cas is when I display the list of article for a categorie. The Rereplacer record is :
{source 0}
<?php

//recuperation de l'id de la video YT
$parm =  stripslashes('[[escape]]\1[[/escape]]');
$parm = str_replace("[vide]","",$parm);

$parm2 = substr($parm,0,35);
if($parm2 <> $parm) $parm2 .= "...";
echo '<div style="padding-left:9px;">'.$parm2.'</div>';

?>
{/source}


It's working with Rereplacer 12.0.0 (august 14th). When I upload to V12.1.0. I get the problem.

when displaying list of articles of a category I get this error message:
0 - syntax error, unexpected 'essence' (T_STRING), expecting ')'
syntax error, unexpected 'essence' (T_STRING), expecting ')'
Peter van Westen's Avatar Peter van Westen ADMIN
Can you give me (super) admin and (s)ftp access so I can take a look?
And tell me on what url I can see/reproduce the issue.
You can use the 'Confidential information' button in the forum editor to hide sensitive information.
Please post a rating at the Joomla! Extensions Directory
Rottenberg Michel's Avatar Rottenberg Michel
Confidential information:
(hidden)
Peter van Westen's Avatar Peter van Westen ADMIN
Well, the reason is that you are using the [[escape]]...[[/escape]] dynamic tags.
These are only for the Pro version. And due to some 'bug' this (half) worked in the free version too. That was fixed with version 12.1.0 as stated in the changelog.

So the solution would be to upgrade to the Pro version of ReReplacer (then you can also use PHP directly in the replacement, without needing Sourcerer).

Or keep version 12.0.0 installed and do not upgrade.
Please post a rating at the Joomla! Extensions Directory
Rottenberg Michel's Avatar Rottenberg Michel
Thank you,
I have bought the Orifessiobnal version.
How can I insert my download key in Rereplace component.

Thank you for help
Best regqrds
Michel Rottenberg
Peter van Westen's Avatar Peter van Westen ADMIN
Read the text above the download keys:
regularlabs.com/download-keys
Please post a rating at the Joomla! Extensions Directory
Rottenberg Michel's Avatar Rottenberg Michel
thank you
It's done now
You can only post on this forum if you log in