5.5 Site Specific JS Loading Issues

Permalink
First, let me say a BIG TWO THUMBS UP to the C5 team for really doing a nice job on 5.5. Have loaded on five sites now and have become acquainted with the new interface and it is great! While not yet tested, there is definitely a speed enhancement.

Have had no issues with the installs other than on the 5th ecommerce site upgraded this morning it appears to be having issues with JS loading properly.

1)Missing the selections in the edit bar on all pages (white bar) with the exception of when selecting view cart and checkout pages, bar returns
2)Coolinput Search Box Script Not Loading
3)Product Sliders Not Loading
4)Slideshow Not Loading
5)Superfish is Loading fine

Amazingly if I enable Miser, everything works, as it should when signed in as admin. Works perfect on all pages, with no other apparent issues. However, works as described above as a registered user or guest. Completely remove Miser and all the scripts and the issues return in the admin mode as well.

Have manually cleared the cache and any JS and CSS scripts every step along the way (dozens of times)

Have tried reverting back to stock “Dark Chocolate” footer and header files, and assured required footer and header scripts exist.

All was working great before the 5.5 install, and have other 5.5 site installs where I am having no problems, so it appears the issue is specific to this site.

Going to continue to plug away at this, but thought by chance someone may have had a similar occurrence or have an idea what could be up.

Merry Christmas to All!

MrGrowBizz
 
Mnkras replied on at Permalink Reply
Mnkras
If you could post a URL that would be a big help, I think I know what the issue is, the addons have to be updated to 5.5, basically, for all the js they add to the header, they now have to add to the footer, (Miser takes all js and sticks it in the footer anyway).

Most addons are not yet 5.5 compatible.
MrGrowBizz replied on at Permalink Reply
MrGrowBizz
Thanks Mnkras, Will PM You
MrGrowBizz replied on at Permalink Reply
MrGrowBizz
This is Bizarre at best, struggle continues. I have taken the entire theme (modified Dark Chocolate) and applied to another 5.5 site and added some of the same blocks with no problems on that site. Something has to be screwing up the JS especially since adding Miser makes everything perfect as designed in the admin mode (but not others).
Remo replied on at Permalink Reply
Remo
Hey Tim,

I can't tell you what causes the problem yet, but here's what probably happens:

I assume that there's an add-on (couldn't find it though) which has something like addHeaderItem('ccm.app.js') in it. This causes 5.5 to add that javascript to the head of the document. However, when you compare this to a working site, you'll see that ccm.app.js is in the footer and not the header.

I therefore think this is nothing but a problem with the order of the JavaScripts.

Does anyone have an idea why ccm.app.js is in the head on his site but not on mine?
Mnkras replied on at Permalink Reply
Mnkras
Remo, I was trying to figure that out, things like ccm.base.js should not
be in the header either, the html helper is supposed to strip it out.
On Dec 31, 2011 7:39 AM, "concrete5 Community" <discussions@concretecms.com>
wrote:
Remo replied on at Permalink Reply
Remo
Tim, I don't want to make such changes on your site but is it possible for you to uninstall you add-on's one by one? This might help us to identify the cause of the problem, thanks!
MrGrowBizz replied on at Permalink Reply
MrGrowBizz
Remo, Thanks much for your involvement and Mike chiming in. Know that the C5 team indicates the eCommerce add-on will not work with 5.5, of course just found out about this recently. I don't know if that's the cause of this mess, even on pages it is not associated. The view cart is on most all of the pages and that may be a related issue. However, the only way you can access the dash board is by selecting view cart. But then again the view cart page and checkout pages do not have the view cart button, and maybe that is why they work? Removing each add-on will result in redoing a good number of pages. Not a real problem for the 50 or so core pages, but would be crazy on the 300 plus product pages. It may just be best for me to just revert back to 5.4.2.2. Let me give it another go today and see what I come up with. Your assistance is/has been greatly appreciated, Tim
Phallanx replied on at Permalink Reply
Phallanx
@mrgrowbiz
Try removing the cache.php in your top level "libraries" directory. ;)
MrGrowBizz replied on at Permalink Reply
MrGrowBizz
Shaun, Thanks, will give a try.
Remo replied on at Permalink Reply
Remo
I already tried that, didn't work for me??
MrGrowBizz replied on at Permalink Reply
MrGrowBizz
Me either
MrGrowBizz replied on at Permalink Reply
MrGrowBizz
Remo, Was able to access one of my test pages through the site map and the menu worked...it did not have the View Cart. Added the view cart and... the Edit/Dashboard bar labels disappeared. This in fact maybe the problem as it links to the eCommerce add-on.
MrGrowBizz replied on at Permalink Reply
MrGrowBizz
Issue Isolated: C5’s eCommerce Add-on View Cart link

With all due respect, this can only be viewed as ridiculous at best. Feel I have wasted the time of many fine members of this forum and over 30 hours of my own to find out that my problem lies with the premium that is not even compatible with its own C5’s 5.5 upgrade.

Did it ever occur to anybody that this is important? Sites, especially higher valued sites may use it, it is a C5 centerpiece and a premium valued add-on, not to mention a profit center for C5!
“Some add-on’s will not work and need to be upgraded” does not seem to get it. This is a C5 add-on, no mention anywhere that it would not work, until I uncovered a snippet in eCommerce support 2 days ago and had to ask the specific question. The market place still shows: Works With 5.3.3.1 or higher.

I posted this tread on December 25, 2011 at 11:36 AM, it would have been nice to have someone on the C5 team who was in the know that the View Cart could be the problem, or just mention the fact that C5’s own eCommerce add-on did not work.

Much thanks to Remo, Mike, and Shaun for helping me isolate this problem.