Just putting this here so I don't forget and if anyone else has similar issues please let me know.

I've been using this on my production website for a couple days now and it ocasionally certain functionality such as drag & drop re-ordering and collapsible fieldsets don't work. This happens only on admin pages and a refresh fixes it.

WTF right?!

Comments

alexweber’s picture

alexweber’s picture

Status: Active » Needs review
alexweber’s picture

Status: Needs review » Closed (fixed)

seems to be ok in dev release... since im the only one complaining and its fine for me ill close this.

alexbk66-’s picture

Status: Closed (fixed) » Active

1. Have the same problem, collapsible fieldsets don't work, refresh fixes the problem. Unfortunately not only on admin pages.
2. Drug&drop (i.e. blocks) doesn't work, refresh fixes the problem.
3. Most serious problem: CKEditor WYSIWYG doesn't appear, refresh doesn't help. Must admit LabJS causes this issue too.

That's very unfortunate, great module.

HobbyBlob.com

alexbk66-’s picture

Title: fails ocasionaly on admin pages » fails ocasionaly (not only) on admin pages
franzkewd’s picture

Subscribe

webfunkin’s picture

I am having the same issues as alexbk66.

alexweber can you please look into this? It happens very arbitrarily. Right now, I am using 6.x-1.4

CKEditor just fails to load sometimes and refreshing mutiple times does not seem to help at all. While, sometimes it just works like it is supposed to. Failure on admin pages (admin menu wont appear, collapsible fieldsets won't work) can be fixed by refreshing the page. Sometimes it takes 2-3 refreshes here too.

Also, a lot of times the inline javascript sections are not processed.

alexweber’s picture

Priority: Normal » Critical

no problem, I'll look into it as soon as I can.

I apologise as I don't have a lot of spare time but I should be able to get some hours in this weekend!

- Alex

alexbk66-’s picture

Alex, FYI the CKEditor problem happens with LabJS as well.
I wish I could help, it's a good module!

HobbyBlob.com

alexweber’s picture

working on this at the moment, hopefuly post back when there's anything new

alexweber’s picture

Version: 6.x-1.x-dev » 6.x-1.5
Status: Active » Needs work

there is a tentative fix on the way, expect an update tomorrow sometime

webfunkin’s picture

Is the issue fixed in 6.x-1.5 or you will be doing another update? And do we have to upgrade to HeadJS 0.96?

alexweber’s picture

the issue is not fixed in 1.5 and upgrading to 0.96 is not required but very strongly recommended.

I have found a satisfactory solution to the problem and release a new version later on today that will (hopefully) fix this and all other issues. Stay tuned! :)

alexweber’s picture

Version: 6.x-1.5 » 6.x-2.x-dev
Status: Needs work » Needs review

fixed in 2.0, please upgrade!

webfunkin’s picture

I upgraded to 6.x-2.0-beta1. This issue still remains. Not fixed.

franzkewd’s picture

Upgraded to 6.2-beta1, Panels' gear widget fail to appear, and also Admin menu fail to appear most of the time.

alexweber’s picture

this is weird I can't seem to replicate any of these bugs, would you mind sharing you list of currently enabled modules please? also, are there any firebug errors?

thanks!

webfunkin’s picture

StatusFileSize
new754.38 KB

My main problem happens to be with the admin menu, collapsible fieldsets and the views UI. I don't use panels so cannot comment on that. Also, a lot of times I get errors in the console (google chrome dev tools) which belong to the Fbconnect module and the Lightbox2 module (which I have disabled for the time being)..

This is one error I got due to fbconnect - Uncaught ReferenceError : $ is not defined.

<script>
        window.fbAsyncInit = function() {
          FB.init({
            appId  : *my appid goes here*,
            status : true, // check login status
            cookie : true, // enable cookies to allow the server to access the session
            xfbml  : true,
            logging: '0'
          });
          
          jQuery(document).trigger('fb:init');
        };
      
        (function() {
          var e = document.createElement('script');
          e.src = document.location.protocol + '//connect.facebook.net/en_US/all.js';
          e.async = true;
          document.getElementById('fb-root').appendChild(e);
        }());
      </script>

No, the code is not wrapped around head.ready. This error occurs pretty regularly, but not always.

I am attaching a zip file that has an HTML file that lists down all the modules enabled on my site in a proper form (Main project along with submodules). Take a look at it and do let me know if you need any other information.

alexweber’s picture

Hey,

First off thanks for your effort! :) Is this site live at all? I'd like to see what scripts are included inline, and where.

Thanks!

Alex

franzkewd’s picture

Hi. My both problems with Panels and Admin Menu mentioned in #16 related to this #1147048: AdvAgg, LABjs, CTools - JS Settings Issues. And now is solved with the recent Advagg version.
Thanks for your efforts.

barwonhack’s picture

I have this problem. I have the latest versions of Advagg, Headjs (head.js 0.96).
I get the occasional failure to load collapsed options in admin screens and also, my OpenLayers google maps don't always render (the maps issue is more pronounced with anon traffic).

Disabling headsjs removes the issue.

Should also mention that I use Varnish and Boost.

alexweber’s picture

please try the new release 6.x-2.0-beta2
thanks!

webfunkin’s picture

StatusFileSize
new142.73 KB

Although the number of instances of failure have decreased, there are a few times when it won't work.

I am attaching a file which has a page when headjs failed. Notice the lack of collapsible fieldsets and the administration menu.

I was just wondering, can using jQuery 1.4.2 from Google's CDN give rise to the problem. My jQuery update and AdvAgg modules have been hacked to dish out v1.4.2.

For advagg i did this - http://drupal.org/node/1071624#comment-4401842
I forgot what I did for jq update. Which is probably not a good thing :P

Let me know if you want any other information

Editing just to add that the number of failed instances have decreased, radically!

alexweber’s picture

Assigned: alexweber » Unassigned

lol, yeah hacking jquery_update and advagg could potentially have an adverse effect... how is headjs playing with the latest advagg release?

webfunkin’s picture

No issues that I have come across. There was one problem with the theme hooks implementation but that has been solved with the latest dev of advagg.

As for the failed instances, they have become so few that I couldn't care less. I am officially in love with HeadJS :)

alexweber’s picture

Awesome! :)

univate’s picture

Status: Needs review » Needs work

Ahh.... why is this set to needs review? (there is no patch to review - was hoping to find a solution here).

univate’s picture

My problem was fixed by setting weights on the js files I was including through drupal_add_js. This module will sort the files based on weight (which by default will be 0) so the order you add them is not always the same order it adds them to the page.