{"action":"created","issue":{"url":"https://api.github.com/repos/nystudio107/seomatic/issues/67","repository_url":"https://api.github.com/repos/nystudio107/seomatic","labels_url":"https://api.github.com/repos/nystudio107/seomatic/issues/67/labels{/name}","comments_url":"https://api.github.com/repos/nystudio107/seomatic/issues/67/comments","events_url":"https://api.github.com/repos/nystudio107/seomatic/issues/67/events","html_url":"https://github.com/nystudio107/seomatic/issues/67","id":151256037,"number":67,"title":"No output using extractTextFromMatrix function","user":{"login":"hollandzone","id":16735645,"avatar_url":"https://avatars.githubusercontent.com/u/16735645?v=3","gravatar_id":"","url":"https://api.github.com/users/hollandzone","html_url":"https://github.com/hollandzone","followers_url":"https://api.github.com/users/hollandzone/followers","following_url":"https://api.github.com/users/hollandzone/following{/other_user}","gists_url":"https://api.github.com/users/hollandzone/gists{/gist_id}","starred_url":"https://api.github.com/users/hollandzone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hollandzone/subscriptions","organizations_url":"https://api.github.com/users/hollandzone/orgs","repos_url":"https://api.github.com/users/hollandzone/repos","events_url":"https://api.github.com/users/hollandzone/events{/privacy}","received_events_url":"https://api.github.com/users/hollandzone/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-04-26T22:39:15Z","updated_at":"2016-04-28T16:02:18Z","closed_at":null,"body":"Hi as discussed Im trying to use extractTextFromMatrix on my matrix field but no output is given. \r\n\r\nThis throws an internal server error (Call to a member function getType() on string):\r\n{{ extractTextFromMatrix(entry.matrixContent.first()) }}\r\n\r\nNo output with this:\r\n{{ extractTextFromMatrix(entry.matrixContent) }}\r\n\r\n<img width=\"1266\" alt=\"schermafbeelding 2016-04-27 om 00 29 12\" src=\"https://cloud.githubusercontent.com/assets/16735645/14836455/81cda566-0c10-11e6-8821-6fdf80725697.png\">\r\n"},"comment":{"url":"https://api.github.com/repos/nystudio107/seomatic/issues/comments/215477715","html_url":"https://github.com/nystudio107/seomatic/issues/67#issuecomment-215477715","issue_url":"https://api.github.com/repos/nystudio107/seomatic/issues/67","id":215477715,"user":{"login":"hollandzone","id":16735645,"avatar_url":"https://avatars.githubusercontent.com/u/16735645?v=3","gravatar_id":"","url":"https://api.github.com/users/hollandzone","html_url":"https://github.com/hollandzone","followers_url":"https://api.github.com/users/hollandzone/followers","following_url":"https://api.github.com/users/hollandzone/following{/other_user}","gists_url":"https://api.github.com/users/hollandzone/gists{/gist_id}","starred_url":"https://api.github.com/users/hollandzone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hollandzone/subscriptions","organizations_url":"https://api.github.com/users/hollandzone/orgs","repos_url":"https://api.github.com/users/hollandzone/repos","events_url":"https://api.github.com/users/hollandzone/events{/privacy}","received_events_url":"https://api.github.com/users/hollandzone/received_events","type":"User","site_admin":false},"created_at":"2016-04-28T16:02:18Z","updated_at":"2016-04-28T16:02:18Z","body":"I just tested it on my production site (english default) and dutch secondary language. I have set the FieldType to matrix. When I look at Preview SEO Meta tags in the CP, it appears fine for as well English and Dutch. When I look at the front-end it falls back on the Site meta for Dutch (english is fine). Im using this twig code.\r\n\r\n`{% set matrixText = extractTextFromMatrix(entry.matrixContent) %}\r\n\r\n{% set seomaticMeta = seomaticMeta | merge({\r\n        twitter: { \r\n        card: seomaticMeta.twitter.card,\r\n        site: seomaticMeta.twitter.site,\r\n        creator: seomaticMeta.twitter.creator,\r\n        title: seomaticMeta.twitter.title,\r\n        description: truncateStringOnWord(matrixText,160),\r\n        image: img.getUrl('articleSingleImage')\r\n    },\r\n       og: { \r\n        type: seomaticMeta.og.type,\r\n        locale: seomaticMeta.og.locale,\r\n        url: seomaticMeta.og.url,\r\n        title: seomaticMeta.og.title,\r\n        description: truncateStringOnWord(matrixText,160),\r\n        image: img.getUrl('articleSingleImage'),\r\n        site_name: seomaticMeta.og.site_name,\r\n        see_also: seomaticMeta.og.see_also\r\n    }\r\n\r\n}) %}`"}}