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

CSCharabaruk’s picture

I 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.

CSCharabaruk’s picture

Yeah, 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.

CSCharabaruk’s picture

Status: Active » Closed (won't fix)