In the install.inc there was a missing ')' on the t() function within the drupal set message on 227.

CommentFileSizeAuthor
#1 t_function_closure-2496679-1.patch3.04 KBdobe

Comments

dobe’s picture

StatusFileSize
new3.04 KB

Attached is a patch that fixes this issue and updates a few tab formatting for the function where the error was.

dobe’s picture

Status: Active » Needs review

david_garcia’s picture

Status: Needs review » Fixed

Weird I had to undo the changes from last commit. It indeed went from working to broken.

I tested the install screen w/o issues.

dean.p’s picture

Status: Fixed » Needs review

Hi, I don't think this issue is fixed. I have this error going to the reports/status page and it still happens when I've applied the above patch (although it's for a different file than what's specified below), and the report does not load. The site seems to function fine otherwise.

PDOException: SQLSTATE[42S02]: [Microsoft][SQL Server Native Client 11.0][SQL Server]Invalid object name 'sys.master_files'.: SELECT DB_NAME(db.database_id) DatabaseName, (CAST(mfrows.RowSize AS FLOAT)*8)/1024 RowSizeMB, (CAST(mflog.LogSize AS FLOAT)*8)/1024 LogSizeMB, (CAST(mfstream.StreamSize AS FLOAT)*8)/1024 StreamSizeMB, (CAST(mftext.TextIndexSize AS FLOAT)*8)/1024 TextIndexSizeMB FROM sys.databases db LEFT JOIN (SELECT database_id, SUM(size) RowSize FROM sys.master_files WHERE type = 0 GROUP BY database_id, type) mfrows ON mfrows.database_id = db.database_id LEFT JOIN (SELECT database_id, SUM(size) LogSize FROM sys.master_files WHERE type = 1 GROUP BY database_id, type) mflog ON mflog.database_id = db.database_id LEFT JOIN (SELECT database_id, SUM(size) StreamSize FROM sys.master_files WHERE type = 2 GROUP BY database_id, type) mfstream ON mfstream.database_id = db.database_id LEFT JOIN (SELECT database_id, SUM(size) TextIndexSize FROM sys.master_files WHERE type = 4 GROUP BY database_id, type) mftext ON mftext.database_id = db.database_id WHERE DB_NAME(db.database_id) = :database; Array ( [:database] => mydatabase ) in sqlsrv_requirements() (line 34 of D:\home\site\wwwroot\sites\default\modules\sqlsrv\sqlsrv.install).
The website encountered an unexpected error. Please try again later.
dean.p’s picture

Update on this, I get this same error on the following pages:

admin/config (but not admin/index or other admin pages )

david_garcia’s picture

Category: Bug report » Support request
Status: Needs review » Closed (won't fix)

The status page relies on sys.master_files being accesible to report status data.

If you can't acces it it might be a permission issue, a database version issue, whatever.

Please investigate and report properly on a separate issue.