Knowledgebase: Opencart Extensions
Extension Conflict : Troubleshooting header.php
Posted by Muhammad Akram on 28 Jul 2019 20:21

My extension stopped working after installting Tag Manager extension?

Our extension heavely rely on header.php 90% of tags being handled here, so if our codes are not properly installed our extension won't work. We have changed the index() function to handle incoming data. This will cause trouble for other extension searching for public function index() { reference.

 

You can fix any of these extension by changing the ocmod xml like this:

 

<search><![CDATA[public function index() {]]></search>

<add position="replace"><![CDATA[

repalce with

<search regex="true"><![CDATA[/((?:public\ function\ index)(?:.*)(?:\))(?:\{))/]]></search>

<add><![CDATA[$1

 

 


© 2018 aits.xyz. All Rights Reserved.