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

I'm using opencart version 2.2.0.0 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
Newbie

Posts

Joined
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.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

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

Users browsing this forum: No registered users and 25 guests