I recently implemented Panels 2 and the Advanced Profile module. Everything has worked well with it, but now I am receiving an error message related to the Date module. Whenever I load the page I get the following:

  • warning: mysql_get_server_info() [function.mysql-get-server-info]: Access denied for user 'ODBC'@'localhost' (using password: NO) in /htdocs/web/sites/all/modules/date/date.inc on line 2001.
  • warning: mysql_get_server_info() [function.mysql-get-server-info]: A link to the server could not be established in /htdocs/web/sites/all/modules/date/date.inc on line 2001.
  • warning: mysql_get_server_info() [function.mysql-get-server-info]: Access denied for user 'ODBC'@'localhost' (using password: NO) in /htdocs/web/sites/all/modules/date/date.inc on line 2006.
  • warning: mysql_get_server_info() [function.mysql-get-server-info]: A link to the server could not be established in /htdocs/web/sites/all/modules/date/date.inc on line 2006.

What would be causing this problem? Obviously it isn't liking the mysql_get_server_info function. I was able to comment out the offending lines in date.inc to get around this issue (since I'm using MySQL 5.0.45), but I'd rather not have to change the core module.

CommentFileSizeAuthor
#1 date_api_sql.inc_.mysqli.patch1.3 KBsun
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

sun’s picture

Title: SQL Error When Using Panels 2 and Advanced Profile » mysql_get_server_info() error under mysqli
Version: 5.x-1.8 » 5.x-2.0-rc
FileSize
1.3 KB

Confirming, still an issue in 5.x-2.0-rc.

Attached patch should fix this issue (sorry in advance, I'm in hurry, so it's against 5.x-2.0-rc).

sun’s picture

Status: Active » Needs review
asimmonds’s picture

Dup with http://drupal.org/node/234360?

I think date_server_zone_adj() has gone in 2.x-dev...

sun’s picture

Status: Needs review » Closed (duplicate)

True.