When specifying a non-existent database for connection I'm getting a number of PHP Warnings:
Warning: mysql_real_escape_string() expects parameter 2 to be resource, null given in /Users/mcarter/Sites/drupal-5.0/includes/database.mysql.inc on line 396
Warning: mysql_real_escape_string() expects parameter 2 to be resource, null given in /Users/mcarter/Sites/drupal-5.0/includes/database.mysql.inc on line 396
Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /Users/mcarter/Sites/drupal-5.0/includes/database.mysql.inc on line 148
Warning: mysql_errno(): supplied argument is not a valid MySQL-Link resource in /Users/mcarter/Sites/drupal-5.0/includes/database.mysql.inc on line 163| Comment | File | Size | Author |
|---|---|---|---|
| #5 | t_m_p_r_d_g_c | 1.07 KB | chx |
| #1 | 93079.patch.txt | 616 bytes | dopry |
Comments
Comment #1
dopry commentedanother duplicate of http://drupal.org/node/99030, however I do get a calling undefined functino file_directory_path now.... Thats fixed by the attached patch.
It seems there are times when drupal_get_css calls file directory path before we've loaded file.inc, after the new css preprocessor landed.
Comment #2
ChrisKennedy commentedCan you give more description of how you're getting this error? I don't have a way to verify the patch otherwise.
Comment #3
Steven commentedI think this is for the maintenance pages. We need to avoid using the css preprocessor there.
Comment #4
dries commentedtheme_maintenaince_page() calls drupal_add_css('misc/maintenance.css', 'module', 'all', FALSE) and gets it again with drupal_get_css();
If modules (or configuration settings) can't tab into that, we might be able to shortcut these calls per Steven's suggestion.
Needs to be investigated. :)
Comment #5
chx commentedComment #6
dries commentedCommitted to CVS HEAD. Thanks.
Comment #7
(not verified) commented