Post by bhavhirani » Thu Apr 05, 2018 1:14 pm

I'm using opencart version and When I trigger an event for the controller, it runs fine but when I trigger for langauge and config, it gives me the arguments error as follows.

Code: Select all

Catchable fatal error: Argument 2 passed to Action::execute() must be of the type array, string given, called in ...\system\engine\event.php on line 29 and defined in ...\system\engine\action.php on line 29
i just put code in ...\system\config\catalog.php file append in $_['action_event'] array as follow:

Code: Select all

'language/*/before' => 'event/language',
Is this a bug of opencart?
If there are no bugs, tell me how to trigger the event of langauge and config, and if this is an opencart bug then tell me how to fix this bug.

User avatar


Sun Dec 04, 2016 12:54 pm
Location - india

Post by straightlight » Thu Apr 05, 2018 8:54 pm

By testing the v2.3.0.2 release, you could compare the results.

The most generated errors being found on Opencart forum originates from contributed programming. The increased post counters are caused by redundancies of the same solutions that were already provided prior.

F. Rules:

- viewtopic.php?f=176&t=200480
- viewtopic.php?f=176&t=200804


Legendary Member


Mon Nov 14, 2011 11:38 pm
Location - Canada, ON
Who is online

Users browsing this forum: No registered users and 7 guests