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"?
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
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)
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...?