I just updated both Grav and the Quark theme and now when I load my blog page (chasecrom.com/blog) I get:
Too few arguments to function Grav\Common\Twig\TwigExtension::markdownFunction(), 1 passed in /home/palmariu/public_html/main_site/cache/twig/08/0895f2ad1e6944840a44f3853e1da4766bdff2c54347f7616e8ac0e4b0747e2c.php on line 89 and at least 2 expected
I don't really understand what I can do to fix this or how to downgrade grav back to the prior version (I don't have backups setup apparently)
Community guidelines
Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.
I figured it out.
So.
In the file system/src/Grav/Common/Twig/TwigExtension.php on line 626 it reads
public function markdownFunction($context = false, $string, $block = true)
this needs to be changed to
public function markdownFunction($string, $context = false, $block = true)
so that the optional function arguments (context and block) are defined after the required ones.
Seems like you found a solution .. or a system bug. However I would be cautious altering system relevant files.
I had issues before myself after upgrading Grav to a newer version flagging all kind of s. As a standard procedure you should delete the 'cache' folder so it regenerates all the cache files. If it references a cached version created prior the upgrade it might through errors.
Not sure if you tried that. If you did.. ignore my comment.
Log in to reply.
Suggested topics
| Topic | Participants | Replies | Views | Activity |
|---|---|---|---|---|
| 2 | 76 | 7 hours ago | ||
| 1 | 47 | 12 hours ago | ||
| 0 | 44 | 1 day ago | ||
| 6 | 346 | 5 days ago | ||
| 3 | 40 | 5 days ago |