Ecwid won't load in Firefox
-
Since upgrading wordpress 4.1 and your Ecwid plugin my store will no longer load in Firefox. I’ve checked with my hosting provider and they see in the error logs that its there but it doesn’t load at all.
It opens fine in safari and explorer, but it’s erratic in chrome. Never works in Firefox.
https://www.breathingunderwater.info/book/Thanks,
Steve
-
It looks like the problem was CloudFlare, when I disabled it the store opened fine after I cleared my cache.
Should ecwid work with cloudflare?
Hi,
Thanks for the report and sorry for the troubles you faced.
Ecwid plugin does include the necessary code to work fine with Cloudflare. So that shouldn’t be the reason. By the way, if the reason was incompatibility of the plugin with Cloudflare, the store wouldn’t load in any browser.
Did you contact CloudFlare on this issue? Did they reply to you?
You mentioned that it’s erratic in Chrome. Can you please elaborate on this a bit? What was wrong?
Thanks.
Good point, but when I paused CloudFlare Firefox loaded immediately.
What happened in Chrome is it tried to load, but very slowly and if you kept refreshing it eventually did. But customers to site aren’t going to do that. Safari never had a problem.
I did contact cloudflare but have not heard back yet. i will post here when I do.
Thanks,
SteveHi Steve,
Thanks for the update. Please do post here when CloudFlare responds – this is a serious issue and we will do our best to help you with it.
By the way, regarding not loading of your site in our browsers (Ecwid support engineers also reported that to you on the forums), that was caused by some kind of IP blocking on your hosting. Your site is not loaded here in Russia. I was only able to open it via proxy servers. This is unlikely related to the issue, so it’s just for your information.
Here is CloudFlare’s response:
Looks like it may be an issue with Rocket Loader, try turning Rocket Loader off.
If this is the issue, there are several options:
1) Leave Rocket Loader off
2) Create a page rule to turn CloudFlare off on affected pages
https://support.cloudflare.com/hc/en…
3) Set Rocket Loader to Manual and add a true flag to your JavaScript tags.
https://support.cloudflare.com/hc/en…
4) Set Rocket Loader to Auto and add the false flag to the scripts.
https://support.cloudflare.com/hc/en…Let me know if you have any further questions.
_______________________
AFter seeing this ECWID Forum responsed with….As you can see, the Rocket Loader replaces the standard
Code:<script type=”text/javascript”>
with the
Code:<script type=”text/rocketscript”>
I spoke with a member of our developer team and it turns out that this very replacement may be the cause of the issue, when your Ecwid store doesn’t display with the Rocket Loader enabled for your website.
In the past we had a similar issue to this one, when the following part of the code:
Code:<script data-cfasync=”false” type=”text/javascript” src=”//app.ecwid.com/script.js?6279362&data_platform=wporg”></script>
was replaced by this line by Rocket Loader:
Code:<script type=”text/rocketscript” data-cfasync=”false” src=”//app.ecwid.com/script.js?6279362&data_platform=wporg”></script>
which prevented Ecwid stores from loading. We fixed it in our WordPress plugin update by specifying the ‘data-cfasync=”false”‘ part in the beginning of the <script> tag, which worked successfully. So now as you can see, the Rocket Loader is replacing the widgets’ codes and that prevents them from loading correctly in Firefox and Chrome.
So in order to test the possible solution to this particular issue, I suggest you try the following:
– Create a test page on your WordPress website (WordPress control panel > Pages > Add new)
– Paste the following code in text mode of the page editor
Code:<script data-cfasync=”false” type=”text/javascript” src=”//app.ecwid.com/script.js?6279362″></script>
<div class=”ecwid-shopping-cart-minicart”><script data-cfasync=”false” type=”text/javascript”> xMinicart(“style=”,”layout=attachToCategories”); </script></div>
<div class=”ecwid-shopping-cart-categories”><script data-cfasync=”false” type=”text/javascript”> xCategories(“style=”); </script></div>
<div class=”ecwid-shopping-cart-product-browser”> <div id=”ecwid-store-6279362″></div>
<script data-cfasync=”false” type=”text/javascript”> xProductBrowser(“categoriesPerRow=3″,”views=grid(3,3) list(10) table(20)”,”categoryView=grid”,”searchView=list”,”style=”, “id=ecwid-store-6279362”);</script></div>
<div id=”my-categories-6279362″></div>– Save the changes and let me know the link to that page, where you inserted the code
After that you and I will check it and see if it works as a possible solution.
____________________And that did work, the only thing now is my facebook widget isn’t loading, probably for the same reason.
SteveHi Steve,
Thanks for the update.
It seems like CouldFlare changed something in their tool again and it now affects a way more scripts on the page including Ecwid widgets. Previously, we had troubles with RocketLoader, which we settled down by adding a special ‘data-cfasync=”false”‘ tag to the code loading scripts from Ecwid. Now, the other scripts should be marked too, as far as we can see.
We already planned to update Ecwid plugin to include those tags to prevent such an issue in the future. The next version of the plugin will include this. Meanwhile, you can use the manual integration with the code suggested on our forums.
> the only thing now is my facebook widget isn’t loading, probably for the same reason.
You’re right. The reason is likely the same. You can find that fb widget code and add a “data-cfasync” marker yourself or contact the widget’s author.Thanks,
I eventually decided to get off cloudflare.
The benefits they offer weren’t worth not knowing if my store would show for people on every browser.
Thanks,
SteveSteve,
Makes sense. You should probably send this feedback to them as well – hopefully, they will improve the tool to avoid such problems.
Thanks,
Hello Steve.
In the WordPress.org plugin version 2.8 we have released a fix for this issue, so now the required changes are done automatically by the Ecwid plugin.
You should be able to use your Ecwid plugin with the Rocket Loader now.
Thank you and please let us know if you still experience this issue!
The topic ‘Ecwid won't load in Firefox’ is closed to new replies.