Fresh install of DC 7.x-3.2 on IIS7, using SQL Server 2008 back end.
Using Drupal 7 SQL Server driver sqlsrv 7.x-1.2

No errors/warnings on install. When clicking on Groups or Events in front page of DC, I get this warning notice:

Notice: Undefined index: REQUEST_URI in metatag_page_build() (line 1153 of C:\inetpub\wwwroot\eWayLite\profiles\commons\modules\contrib\metatag\metatag.module).

CommentFileSizeAuthor
#3 metatag-n1995284-3.patch529 bytesdamienmckenna

Comments

devin carlson’s picture

Project: Drupal Commons » Metatag
Version: 7.x-3.2 » 7.x-1.x-dev
Component: Miscellaneous » Code
Status: Active » Fixed

It sounds like IIS is omitting REQUEST_URI.

I'm not overly familiar with IIS but you'll either want to ensure that it is including $_SERVER['REQUEST_URI'] or Metatag itself might want to add a check for the variable and attempt to determine the variable itself (see Fixing IIS and PHP Variables).

damienmckenna’s picture

Title: Undefined index in metatag_page_build using SQLSVR » Replace $_SERVER['REQUEST_URI'] with request_uri()
Status: Fixed » Active

Ah, a small but important bug report. Thanks for reporting it, I'll get this fixed soon.

damienmckenna’s picture

Status: Active » Needs review
StatusFileSize
new529 bytes

A simple patch.

Status: Needs review » Needs work

The last submitted patch, metatag-n1995284-3.patch, failed testing.

damienmckenna’s picture

Status: Needs work » Needs review

#3: metatag-n1995284-3.patch queued for re-testing.

damienmckenna’s picture

Status: Needs review » Fixed

Committed.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.