Needs review
Project:
Lightbox2
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
30 Aug 2008 at 05:40 UTC
Updated:
30 Sep 2011 at 14:57 UTC
Jump to comment: Most recent file
Comments
Comment #1
stella commentedWhat theme are you using?
Comment #2
drupaldoug commentedZen Classic theme. But I tried other themes including stock. Accessing the lightbox gallery, they all crash with the error message:
<!--[if lt IE 7]> Fatal error: Call to undefined function phptemplate_get_ie_styles() page-node-lightbox2.tpl.php on line 18Comment #3
stella commentedThe page-node-lightbox2.tpl.php is designed to work with the default theme, garland. That phptemplate_get_ie_styles() function is a garland function. You will need to modify this file to work with your own theme. It's only an example of what could be done.
Cheers,
Stella
Comment #4
drupaldoug commentedThanks for the clue. It's quite a surprise. I can't find the reference right now, but I believe the instruction was to copy page-node-lightbox2.tpl.php to your theme directory, not copy to your garland theme directory. If the file is not a generic example, it should be so described.
Thanks for the assistance.
Comment #5
stella commentedThe docs at http://drupal.org/node/252260 do say:
Cheers,
Stella
Comment #6
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.
Comment #7
mandclu commentedJust ran into this issue myself. This template file could be made more compatible by at least wrapping functions that are specific to individual themes within "if (function_exists('[theme-specific-function-here]')) {}" tags.
Comment #8
eaochoac commentedyes if (function_exists('[theme-specific-function-here]')) {} this is the best solution, I´ve added twice. Works perfect when adding lightbox2 to an html without any headers and you are using zen theme.
Comment #9
aaronbaumanThis issue persists to latest dev.
There is no reason one would want the lightbox page template to cause a fatal error out of the box, based on an undocumented and unenforced dependency on garland (a theme which is arguably past its prime). In the spirit of compromise, this patch adds "function_exists" calls to the template file (rather than removing them altogether).