Upon enabling ICON APi on a very standard Bootstrap 3 build, am presented with a blank screen on all pages/views/themes. Specifically, everything is now rendered thusly:

<html>
<head>
<title>YMCA of Canada</title>
</head>
</html>

I don't even know where to begin with this and so have implemented an alternative process for end-users to easily associate glyphs with field info. Though I figured I'd share this with you folks regardless.

Comments

markhalliwell’s picture

Title: ICON API breaks theme/templates » Icon API causes WSOD
Assigned: wnnpg » Unassigned
Priority: Critical » Normal
Status: Active » Postponed (maintainer needs more info)
Issue tags: -theme templates, -bootstrap, -icon api

Please read Blank pages or "white screen of death" (WSOD) and describe what errors you are receiving. It may something in this module, something with how your site is configured or some sort of incompatibility between the two. I can only help if more information is provided.

Alan D.’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)

These threads quickly turn users off using a module, and "so have implemented an alternative process" suggests that no more feedback will ever be given, so closing on your behalf, hope you don't mind :)

wnnpg’s picture

Apologiues for the ambiguous solution, or lack thereof, Alan. I'd not solved anything satisfactorily, but instead manually inserted .svg's where they needed to be in lieue of using this module. Would have preffered using this and would do so on future projects if a solution presents itself.

Alan D.’s picture

Does this cause the same error:

Install Drupal
Install Bootstrap
Install Icon API
View the main theme (assuming admin theme in use)

Instant WSOD

AKA, the maintainer needs to be able to replicate before they can help :)

athakural’s picture

Hi Alan,

I am facing the same issue as well. I have many modules installed in my Drupal instance, and all working fine. When I enable Icon module it does not even go to confirmation page and causes WSOD.

Any clue what can be wrong?

athakural’s picture

Status: Closed (cannot reproduce) » Needs work
Issue tags: +icon api

I have many modules installed. It is very difficult to check which module may be conflicting with Icon API. When I enable it it causes WSD. If I go to database and disabale the module, clear cache, it does bring back the system.

Any information on this will be appreciated

mariacha1’s picture

Status: Needs work » Postponed (maintainer needs more info)

To reiterate:

Please read Blank pages or "white screen of death" (WSOD) and describe what errors you are receiving. It may something in this module, something with how your site is configured or some sort of incompatibility between the two. I can only help if more information is provided.

Setting to status to reflect the need for further information.

rodeldesign’s picture

It appears that there may be an error preventing the boostrap based themes from loading properly. However by adding error handing into the Drupal index.php file is showing this error:

E_COMPILE_ERROR Error in file �icons.inc� at line 18: Cannot redeclare bootstrap_icon_providers() (previously declared in /home/webfolder/public_html/sites/all/themes/bootstrap/bootstrap_subtheme/theme/icons.inc:14). By the way, the module was working right on my localhost but not on live sites. This theme is located inside the bootstrap theme framework but is not enabled.

I was not completely satisfied and continue to dig/troubleshoot a little bit more and found that this is also caused by a conflict between the theme CSS and the Icon Api module. Apparently they are using different methods of calling the icons (CDN, local etc.) and that causes the WSOD. For some reason even if the theme is disabled the problem still occurs.

I think this can be solved in one of this two areas. The Icons.inc file or inside our themes and the way we call the icon font, but haven't been able to go further due a lack of time.

All the best!

dotist’s picture

i've got the exact same problem as #1 & #8. with icon api installed i get the double call for bootstrap_icon_providers() (from #8). without it, problem is gone. The issue does not appear locally, only when i moved the site to a shared hosting server (although no clue why that would make a dif...). any ideas?

Alan D.’s picture

Title: Icon API causes WSOD » Icon API and Bootstrap both declare bootstrap_icon_providers(); WSOD
Status: Postponed (maintainer needs more info) » Active

Function namespace clash :)

markhalliwell’s picture

Title: Icon API and Bootstrap both declare bootstrap_icon_providers(); WSOD » [WSOD] Cannot redeclare bootstrap_icon_providers()
Project: Icon API » Bootstrap
Version: 7.x-1.0-beta5 » 7.x-3.x-dev
Category: Bug report » Support request
Status: Active » Closed (works as designed)
Issue tags: -icon api

Icon API does not declare the function bootstrap_icon_providers() anywhere in it's code.

After reading #8, my guess is that when the sub-theme was created you had also copied over icons.inc, but never renamed the function inside it. To be fair though, I'm not entirely sure why anyone would copy this file over to begin with. This file isn't needed in sub-themes at all, just remove it.