Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
markhalliwellPlease 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.
Comment #2
Alan D. CreditAttribution: Alan D. commentedThese 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 :)
Comment #3
wnnpg CreditAttribution: wnnpg commentedApologiues 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.
Comment #4
Alan D. CreditAttribution: Alan D. commentedDoes 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 :)
Comment #5
athakural CreditAttribution: athakural commentedHi 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?
Comment #6
athakural CreditAttribution: athakural commentedI 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
Comment #7
mariacha1 CreditAttribution: mariacha1 commentedTo reiterate:
Setting to status to reflect the need for further information.
Comment #8
rodeldesign CreditAttribution: rodeldesign commentedIt 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!
Comment #9
dotist CreditAttribution: dotist commentedi'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?
Comment #10
Alan D. CreditAttribution: Alan D. commentedFunction namespace clash :)
Comment #11
markhalliwellIcon 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.