Answers.Body: <p>So it sounds to me like either the plugin isn't installed (which doesn't make a ton of sense, because you'd be getting other errors, too), or if it is installed, pieces of it are missing.</p>
  
  <p><code>extractSummary</code> is a Twig filter/function and has been available since the start; I'd try making sure there's nothing wrong with your install/deploy, or try re-downloading a fresh copy of the SEOmatic plugin.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-08-10T08:41:26.803Z
Answers.Text: I installed the plugin using composer. I've overwritten the plugin with a downloaded one. And as expected: exactly the same. But the permissions on some files have changed. And the issue is resolved. But I'm not sure if that had something to do with it.
Answers.UserDisplayName: Diederik
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-08-09T21:47:13.783Z
Answers.LastActivityDate: 2017-08-09T21:47:13.783Z
Answers.UserDisplayName: andrew.welch
Answers.Body: <p>That method is definitely available as a global function in the <a href="https://github.com/nystudio107/seomatic/blob/376eddfbeff5c7ad3932b33de4fbf78b61b3dc5d/twigextensions/SeomaticTwigExtension.php#L73" rel="nofollow noreferrer">latest version</a>.</p>
  
  <p>And it looks like it's been there from the <a href="https://github.com/nystudio107/seomatic/blob/c72e37bf1dddba33b368153a96e5db54c499dc42/twigextensions/SeomaticTwigExtension.php#L51" rel="nofollow noreferrer">very beginning</a>.</p>
  
  <p>These might sound silly, but maybe double check that the plugin is installed and that you're using the latest version?  Even if you are, might be worth re-downloading to make sure you're not missing any of its files.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-08-09T21:30:58.197Z
Answers.LastActivityDate: 2017-08-09T21:30:58.197Z
Answers.UserDisplayName: Brad Bell
Body: <p>I'm trying to set a fallback description in case there is none. This is the bit of code:</p>
  
  <pre><code>{% if seomaticMeta.seoDescription is empty and entry is defined %}
      {% set fallbackDescription = "" %}
      {% if entry.description is defined %}
          {% set fallbackDescription = extractSummary( entry.description ) %}
      {% endif %}
      {% if fallbackDescription is not empty %}
          {% set seomaticMeta = seomaticMeta | merge({
              seoDescription: fallbackDescription,
              og: {
                  description: fallbackDescription
              },
              twitter: {
                  description: fallbackDescription
              }
          }) %}
      {% endif %}
  {% endif %}
  </code></pre>
  
  <p>But I get an error: <code>Unknown "extractSummary" function in "_globals/_layout"</code>.</p>
  
  <p>Am I doing something wrong?</p>
  
Tags: <plugin-seomatic>
Title: extractSummary twig filter is unknown
ThreadText: # extractSummary twig filter is unknown
  
  (Asked by: username_0 on 2017-08-09)
  
  I'm trying to set a fallback description in case there is none. This is the bit of code:
  
  ```
  {% if seomaticMeta.seoDescription is empty and entry is defined %}
      {% set fallbackDescription = "" %}
      {% if entry.description is defined %}
          {% set fallbackDescription = extractSummary( entry.description ) %}
      {% endif %}
      {% if fallbackDescription is not empty %}
          {% set seomaticMeta = seomaticMeta | merge({
              seoDescription: fallbackDescription,
              og: {
                  description: fallbackDescription
              },
              twitter: {
                  description: fallbackDescription
              }
          }) %}
      {% endif %}
  {% endif %}
  
  ```
  
  But I get an error: `Unknown "extractSummary" function in "_globals/_layout"`.
  
  Am I doing something wrong?
  
  **Tags:** plugin-seomatic
  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_1 on 2017-08-09. Score: 1
  
  So it sounds to me like either the plugin isn't installed (which doesn't make a ton of sense, because you'd be getting other errors, too), or if it is installed, pieces of it are missing.
  
  `extractSummary` is a Twig filter/function and has been available since the start; I'd try making sure there's nothing wrong with your install/deploy, or try re-downloading a fresh copy of the SEOmatic plugin.
  
  > **Comments:**
  > **username_0**: I installed the plugin using composer. I've overwritten the plugin with a downloaded one. And as expected: exactly the same. But the permissions on some files have changed. And the issue is resolved. But I'm not sure if that had something to do with it.  
  
  ---
  
  ### Answer by username_2 on 2017-08-09. Score: 0
  
  That method is definitely available as a global function in the [latest version](https://github.com/nystudio107/seomatic/blob/376eddfbeff5c7ad3932b33de4fbf78b61b3dc5d/twigextensions/SeomaticTwigExtension.php#L73).
  
  And it looks like it's been there from the [very beginning](https://github.com/nystudio107/seomatic/blob/c72e37bf1dddba33b368153a96e5db54c499dc42/twigextensions/SeomaticTwigExtension.php#L51).
  
  These might sound silly, but maybe double check that the plugin is installed and that you're using the latest version? Even if you are, might be worth re-downloading to make sure you're not missing any of its files.
  
  
  ---
  
  