Posted by Andrzej7 on August 3, 2008 at 5:07am
| Project: | Blockquote |
| Version: | 6.x-1.0 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed (won't fix) |
Issue Summary
Nice module - thanks!
I got such a message in Drupal 5.9, when I tried to log-out:Fatal error: Call to undefined function drupal_add_css() in .../modules/blockquote/blockquote.module on line 80
Comments
#1
Hi Andrzej7,
Glad you like it :-)
always makes me ask, Have you cleared the cache?
Is this consistently reproducible? Obviously drupal_add_css should be defined, in D5 & D6.
Do you have a live example on the internet?
Nick
#2
Couldn’t hold my breath any longer…
#3
I'm getting this error as well... found this similar issue. The fix is moving the drupal_add_css call into hook_menu(!$may_cache) instead of hook_init. I've attached a patch.
#4
Firstly, sorry for the delay – I’ve been out of the loop for a while.
This is caused by a difference between D5 & D6. The patch will cause an error for D6, but can be used for D5. Blockquote is correct for D6 as shown in http://api.drupal.org/api/function/hook_init .
As D7 is close, and we are about to lose D5, I have amended the project page to no longer mention D5.
Thanks for finding http://drupal.org/node/115901#comment-504918 .