Class DrupalDefaultMetaTag has the following statement:

return tidyValue($this->data['value']);

The above uses an undefined function in the global scope. It should be replaced by $this->tidyValue($this->data['value']);

Here is the error:

Fatal error: Call to undefined function tidyValue() in /home/juampy/projects/myproject/docroot/sites/all/modules/contrib/metatag/metatag.inc on line 43

Patch in the next comment.

CommentFileSizeAuthor
#1 2170363-metatag-undefined-tidyValue.patch740 bytesjuampynr

Comments

juampynr’s picture

Status: Active » Needs review
StatusFileSize
new740 bytes

Here it is.

dave reid’s picture

Status: Needs review » Reviewed & tested by the community

Confirmed. Not sure how our tests are passing with such an error like this?

damienmckenna’s picture

Status: Reviewed & tested by the community » Fixed

All bundled meta tags use DrupalTextMetaTag or one of the other classes, not DrupalDefaultMetaTag, which is why the tests don't fail.

Committed. Thanks juampy!

Status: Fixed » Closed (fixed)

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