-
Notifications
You must be signed in to change notification settings - Fork 27
Not returning serviceworker.js #18
Comments
Hi @bloggerpact, What version of Magento are you running? Do you have "Allow Symlinks" set to "Yes" in System > Configuration > Advanced > Developer > Template Settings (You might not have that setting anymore if you're running on the latest version of Magento)? First thing I would try is running:
Then flushing the Magento cache and running through setup scripts. |
I cleared cache and become this error message. In Safari = Blank page I use magento 1.9.1.1 and i have "Allow symlinks" enabled. |
@fintzen, looks like there's an exception being thrown on the server, resulting in a 500 HTTP response code. Could you check |
@tgerulaitis i found this 3 errors in system.log2018-01-09T09:36:01+00:00 ERR (3): Warning: simplexml_load_string(): Entity: line 55: parser error : Start tag expected, '<' not found in /html/magento/app/code/core/Mage/Core/Model/Layout/Update.php on line 450 |
@fintzen , that's strange. The error messages seem to indicate that you have an invalid layout xml file. I would check Just to eliminate another common issue, what web server are you using for Magento? Apache or Nginx? If it's Nginx, does it allow |
@tgerulaitis , now i found the invalid code at the start of a page.xml file. I use a apache server for magento. |
@fintzen, Yeah, I'm not sure either, unfortunately. I've set up a fresh instance of Magento 1.9.1.1 myself locally to test this and I'm not seeing any errors running the module. Unfortunately, without more information about the problem there's nothing else I can do. Have you looked at your web server error logs or PHP logs? |
@fintzen the |
@tgerulaitis, oh yes I'm really sorry for that dumb comment. 😅 |
Same problem with me! It was solved by locating the extension and updating meanbee_pwa.xml. Good luck! |
@rafaelpatro, Wich extension / wich block was the problem? Maybe we use the same. |
Extension: Mirasvit Searchautocomplete <?xml version="1.0"?>
<layout version="0.1.0">
<default>
<reference name="head">
<action method="addJs" ifconfig="searchautocomplete/general/enabled"><script>mirasvit/core/jquery.min.js</script></action>
<action method="addJs" ifconfig="searchautocomplete/general/enabled"><script>mirasvit/core/underscore.js</script></action>
<action method="addJs" ifconfig="searchautocomplete/general/enabled"><script>mirasvit/core/backbone.js</script></action>
<action method="addJs" ifconfig="searchautocomplete/general/enabled"><script>mirasvit/code/searchautocomplete/form.js</script></action>
<action method="addJs" ifconfig="searchautocomplete/general/enabled"><script>mirasvit/code/searchautocomplete/autocomplete.js</script></action>
<action method="addItem" ifconfig="sales/msrp/enabled"><type>skin_js</type><name>js/msrp.js</name></action>
</reference>
<block type="searchautocomplete/layout" name="search.block">
<action method="addSearchAutocomplete" ifconfig="searchautocomplete/general/enabled" />
</block> SolutionEdit: /app/design/frontend/base/default/layout/meanbee_pwa.xml <?xml version="1.0"?>
<layout>
<default>
<reference name="after_body_start">
<block name="serviceworker.register" type="meanbee_pwa/serviceworker_register" template="pwa/serviceworker/register.phtml"/>
</reference>
</default>
<serviceworker_index_js>
<remove name="root"/>
<remove name="search.block"/>
<block name="serviceworker.js" type="meanbee_pwa/serviceworker_js" template="pwa/serviceworker/serviceworker.js" output="toHtml"/>
</serviceworker_index_js>
</layout> |
Excellent, thank you @rafaelpatro ! |
Hey @tgerulaitis
I used the modman to install the plugin, everything looks okay from the back-end have https enabled cleared cache but the url.com/serviceworker.js service worker does not return Javascript. I'm using custom theme & also tried with rwd theme.
In waiting for your quick response
The text was updated successfully, but these errors were encountered: