Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
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 CreditAttribution: 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 CreditAttribution: 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 CreditAttribution: Steven commentedI think this is for the maintenance pages. We need to avoid using the css preprocessor there.
Comment #4
Dries CreditAttribution: 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 CreditAttribution: chx commentedComment #6
Dries CreditAttribution: Dries commentedCommitted to CVS HEAD. Thanks.
Comment #7
(not verified) CreditAttribution: commented