You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I have a tag of 'time' I get the following error
Whoops\Exception\ErrorException: time() expects exactly 0 parameters, 2 given in file /Applications/MAMP/htdocs/cms-dev/site/plugins/meta-tags/src/MetaTags.php on line 106
Is there a way I can escape this? I have tried to do the following
Which is wrong as it should just say 'time' within the content.
If I change the tag from 'time' to 'times' then it works, so it specifically relates to the word 'time' and I'm guessing it's already a function within Kirby.
The text was updated successfully, but these errors were encountered:
Then I get it to work, but the tag now has a whitespace in front of it
<meta property="og:article:tag" content=" time">
Then when I try to remove the whitespace using trim or str_replace for example, I then get the same error about time()
Whoops\Exception\ErrorException: time() expects exactly 0 parameters, 2 given in file /Applications/MAMP/htdocs/cms-dev/site/plugins/meta-tags/src/MetaTags.php on line 106
So I have an og tag defined as follows:
'tag' => $page->tags()->split(',')
If I have a tag of 'time' I get the following error
Whoops\Exception\ErrorException: time() expects exactly 0 parameters, 2 given in file /Applications/MAMP/htdocs/cms-dev/site/plugins/meta-tags/src/MetaTags.php on line 106
Is there a way I can escape this? I have tried to do the following
'tag' => $page->tags()->kt()->split(',')
But this then returns
<meta property="og:article:tag" content="time</p>">
Which is wrong as it should just say 'time' within the content.
If I change the tag from 'time' to 'times' then it works, so it specifically relates to the word 'time' and I'm guessing it's already a function within Kirby.
The text was updated successfully, but these errors were encountered: