Search
Other ReReplacer questions
Forum

Upgrading Rereplacer, (and adding conditions component) broke website

Stanley Rieck's Avatar Stanley Rieck
Hi.

I updated my Rereplacer component, and when doing so, the site stopped functioning with the following error:

in_array(): Argument #2 ($haystack) must be of type array, string given

Unfortunately, the error doesn't state where or which rereplacer is an issue, and going into both Rereplacer, and the newly installed conditions, doesn't supply a hint of any issues either?

This is on the latest Joomla 4, and using PHP 8 (setting it back to PHP 7.4 made no difference)

When I disable the Rereplacer plugin, the site works fine (but obviously the important parts are not replaced).

Is this to do with the rereplacer upgrade, or the new "Conditions"?
Peter van Westen's Avatar Peter van Westen ADMIN
Should be fixed in latest release v12.2.1
Please post a rating at the Joomla! Extensions Directory
Stanley Rieck's Avatar Stanley Rieck
Hi,

This issue was fixed, but now I have a new issue with Conditions:

Fatal error: Cannot declare class RegularLabs\Component\Conditions\Administrator\Table\ConditionTable, because the name is already in use in /home/medemoco/public_html/cc/E729/components/com_conditions/src/Table/ConditionTable.php on line 20

/home/medemoco/public_html/cc/E729/components/com_conditions/src/Table/ConditionTable.php:20

use Joomla\CMS\Table\Table;
use Joomla\Database\DatabaseDriver;
defined('_JEXEC') or die;
class ConditionTable extends Table
{
/**
* @param DatabaseDriver $db Database object.
*/
public function __construct(DatabaseDriver $db)
Peter van Westen's Avatar Peter van Westen ADMIN
No idea what is going on on your site.
There should be no files at all in the /components/com_conditions folder.
All files are in the /administrator/components/com_conditions folder.
Maybe remnants from a very early dev version or something?

I take it public_html/cc/E729 is the folder of your website...?
Please post a rating at the Joomla! Extensions Directory
Stanley Rieck's Avatar Stanley Rieck
Yes that is the site folder

Removing the files from the "replicated folder"fixed the issue, could this have been there from a migration from J3 - J4?
Peter van Westen's Avatar Peter van Westen ADMIN
I don't think so. There is know com_conditions for Joomla 3.

See if reinstalling ReReplacer places back that frontend folder…
If so then you have a weird issue on your setup.
Please post a rating at the Joomla! Extensions Directory
You can only post on the extension support forum if you have an active subscription and you log in

Buy a Pro subscription