I have an extension that do layout update to push something to all pages headers. It worked so far for several clients and versions, but suddenly we got a client that just don't get the layout update.
- We know the extension works because routes we added work.
- We already checked with the client that extension output is not disabled in admin panel.
- The client assured us they did clear cache in admin.
- Its probably not because some full-page cache extensions (like varnish), because we tried accessing the pages with "?aaa=bbb" added to the URL and it still didn't work, and usually full-page caching solutions are URL-based.
And important point to note: this client manage two sites/stores on the same server (from the same admin), if that might affect anything...
Anyway... here's our layout xml:
<!-- Layout updates to inject vendor headers to all pages (include vendor js and page metadata). --> <layout version="0.1.0"> <default> <reference name="head"> <block type="vendor_core/injectjs" name="vendor_js" as="vendor_js" template="vendor/injectjs.phtml" /> </reference> </default> </layout>
And here's the
config.xml that apply this update:
<?xml version="1.0" encoding="UTF-8"?> <config> <modules> <Vendor_Core> <version>1.0.0</version> </Vendor_Core> </modules> <global> <models> <vendor_core> <class>Vendor_Core_Model</class> </vendor_core> </models> <helpers> <vendor_core> <class>Vendor_Core_Helper</class> </vendor_core> </helpers> <blocks> <vendor_core> <class>Vendor_Core_Block</class> </vendor_core> </blocks> </global> <frontend> <layout> <updates> <vendor_core> <file>vendor/core.xml</file> </vendor_core> </updates> </layout> </frontend> </config>
Note that the company name was replaced with "vendor", so if you notice any typos there ignore them :)
Any ideas why the layout update might not work or how can I figure it out? I might get like an hour at the client's office to test things, but right now I don't have any access, just the code.
Added the phtml file: