💡A fix for "AdminTwigExtension is not enabled" server error

Sometimes when you update admin plugin, you will get this error:

0 - The "Grav\Plugin\AdminTwigExtension" extension is not enabled in "dashboard.html.twig" at line 1.

If you hit this error upon admin plugin update, this is what worked for me:

  1. Go to /admin/dashboard/task:clearCache in your browser.
  2. Clean the cache from admin dashboard
  3. Done!