ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

"Edit Group" page hanging

July 31, 2012 12:09am

Subscribe [2]
  • #1 / Jul 31, 2012 12:09am

    iamnick

    17 posts

    Hi,

    The page used to edit our Member Groups, “Edit Group”, is hanging for quite a while when loading the page. And once it loads, if I change a group using the drop down, it suffers the same hanging issue.

    We have quite a few member groups and it looks like an issue with jQuery or another javascript, as it tries to load content. Using Firebug, the line being called out is found within the jquery file, 1.7.2, line 106.

    We’re using EE 2.4.0 with MSM, Structure, and Low Variables add ons.

  • #2 / Jul 31, 2012 12:53pm

    Shane Eckert

    7174 posts

    Hello iamnick,

    I am sorry to hear you are running into this problem.

    Can you enable **debugging to see if there is any more information?

    Are all your Add-Ons up to date? Did you recently upgrade?

    **To enable debugging please go to your Control Panel and navigate to Admin->System Administration-> Output and Debugging. Please set the last two settings, which are “Display Output Profiler?” and “Display Template Debugging?”, to yes.

    Please let me know what you find.

    Cheers,

  • #3 / Jul 31, 2012 1:40pm

    iamnick

    17 posts

    When Firefox halts the page and asks to debug script, here’s a screenshot of what’s seen.

    I turned on Debugging and Output Profiler. Query time seemed just fine and nothing out of the ordinary for sessions or headers when I visit this page.

  • #4 / Jul 31, 2012 5:17pm

    Shane Eckert

    7174 posts

    Hey iamnick,

    Thank you.

    Did you upgrade recently?

    Are all of your Add-Ons up to date?

    Thank you,

  • #5 / Jul 31, 2012 11:35pm

    iamnick

    17 posts

    No, not recently. Not since 2.4.0 was released.

  • #6 / Aug 01, 2012 1:03pm

    Dan Decker

    7338 posts

    Hi Nick,

    iamdan 😉

    Let’s see if we can get you sorted out.

    I noticed Shane has a asked a few great questions already, but I don’t see all of your answers. Just to make sure we have everything we need to help, can you reply with answers to the following?
    1) Are all of your add-ons up to date?

    2) Do you recall any changes that were made before you noticed problem?

    3) What version of MSM are you using on this install?

    4) Do you notice the hang on all sites, or just one?

    4) Is the Membership area the only area in the Control Panel you notice the hang?

    I look forward to your answers!

    Thanks!

  • #7 / Aug 01, 2012 8:54pm

    iamnick

    17 posts

    Hi Dan,

    I’ve done a bit more troubleshooting from here and nailed down the code causing the issue:

    The file is located at system/expressionengine/views/edit_member_group.php, the loop starting at line 61.

    <?php
       // each site
       foreach($group_data as $key => $site):
       ?>
       <div id="site_options_<?=$key?>" class="site_prefs">
        <?php foreach ($site as $prefname => $prefs): ?>
         <?php
          $this->table->set_caption(lang($prefname));
          $this->table->set_heading(lang('preference'), lang('setting'));
    
          foreach ($prefs as $pref)
          {
           $this->table->add_row(
            $pref['label'], 
            array(
             'style' => 'width:50%',
             'data' => $pref['controls']
            )
           );
          }
      
          echo $this->table->generate();
          // Clear out of the next one
          $this->table->clear();
         ?>
        <?php endforeach; ?>
       </div>
       
       <?php 
        endforeach;

    If I comment out the following, the page loads perfectly:

    echo $this->table->generate();

    Maybe an issue with loading member group details for each MSM site? Maybe the page is loading all of these preferences and then using jQuery to show/hide using the drop down menu? Not entirely sure, just guessing.

    I don’t know the history of this install, I just inherited it as is.  In response to your questions, here’s my best:

    1. There are only a few add-ons installed, a few of which are behind a version or two. I uninstalled all of them and it had no effect.
    2. Version: 2.1.2 Build: 20120123
    3. It happening on this page only, for all sites
    4. Yes, this particular view is the only area where the lag occurs. It lasts about 30 seconds.

    Hope this helps! Thanks!

     

     

  • #8 / Aug 02, 2012 3:09pm

    Dan Decker

    7338 posts

    Hey Nick,

    Good news/bad news…

    You are correct!

    We don’t have an immediate fix :-(

    However, I filed this lovely bug report and the developers have been made aware.

    Thanks for brining this to our attention, and sorry for the inconvenience.

    Is there anything else I can assist you with?

    Cheers,

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases