After upgrading to the latest stable icon module (7.x-1.0-beta5), installing fresh Drupal (latest stable core, 7.26) with icon module in a custom install profile (using "dependencies[] = icon" in myprofile.info) results in the install hanging and PHP eating all available CPU / memory.

I narrowed it down, and it's hanging on the "menu_rebuild()" call in theme_enable(), which I call from a myprofile_install() hook implementation.

So, I suspect that the culprit is the recent changes to icon_menu() from #2075259: Add "view icons" permission and path alias for viewing icons (although that's just my guess, didn't see anything in the icon_menu() changes particularly bad-looking).

Enabling the icon module after site install works fine - just enabling it via install profile dependencies is problematic. Worked fine before I upgraded icon module to beta5 today. If I comment out "dependencies[] = icon" in myprofile.info, site installs fine.

Comments

blackice2999’s picture

Same issue here. I attached a patch that currently solves this problem. The problem is on first run there is no menu build on drupal so the menu router items are empty. In this case menu_get_item will try to rebuild the menu so we run here into a menu rebuild loop.

The attached patch simple removes the menu_get_item because i see no reason why it will be needed here?!

blackice2999’s picture

Status: Active » Needs review
drupov’s picture

Wow, thanks! It took me forever to figure out that the icon module was causing the infinite loop in my profile.

Confirming that the patch from #1 works.

plach’s picture

Version: 7.x-1.0-beta5 » 7.x-1.x-dev
StatusFileSize
new2.39 KB

@markcarver in IRC asked for something not skipping the menu item check.

markhalliwell’s picture

Status: Needs review » Fixed

Thanks @plach!

Committed 848b9d9 to 7.x-1.x:

Issue #2200087 by plach, Blackice2999 | Jaza: Icon module hangs install profile.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

  • Commit 848b9d9 on 7.x-1.x, icon_tabs-integration authored by plach, committed by Mark Carver:
    Issue #2200087 by plach, Blackice2999 | Jaza: Icon module hangs install...