Closed (won't fix)
Project:
Tweetbacks
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
15 Jan 2009 at 00:25 UTC
Updated:
13 Dec 2010 at 09:25 UTC
Fatal error: Call to undefined function drupal_add_css() in /home/nynjtcn/public_html/new.nynjtc.net/sites/all/modules/tweetbacks/tweetbacks.module on line 13
-----------
I cannot cause it but two of my co-workers are seeing it, intermittently. Both IE and FF.
Searched all my modules for other calls to it, e.g. date.inc
drupal_add_css('./'. drupal_get_path('module', 'date_api') .'/date.css');
others don't have the './' prepended so I don't know if this has anything to do with it.
strangely all of them are in .inc files.
Comments
Comment #1
CSCharabaruk commentedI get this intermittently on coldacid.net as well, although that goes back to even before I used Tweetbacks. (I've gotten it from core modules.) It's in include/common.inc which is pulled in by include/bootstrap.inc which is called in by index.php, and should always be there. This is probably a Drupal bug.
BTW, putting './' at the beginning of the value passed in doesn't change anything with the call itself.
Comment #2
CSCharabaruk commentedYeah, looking through the Drupal code, common.inc should get included in everything that gets done via index.php, and before actual page building begins. So drupal_add_css() should be there. This is either a Drupal core issue, or a PHP one.
Comment #3
CSCharabaruk commented