nystudio107 / craft-templatecomments

Adds a HTML comment with performance timings to demarcate `{% block %}`s and each Twig template that is included or extended.
https://nystudio107.com/
MIT License
20 stars 1 forks source link

1.0.4 throws error on migration #3

Closed michaelroper closed 5 years ago

michaelroper commented 5 years ago

Hey Andrew! That slight tweak you did for the 1.0.4 release seems to be causing a migration error on the console?

> ./craft migrate/all
Exception 'yii\base\UnknownPropertyException' with message 'Getting unknown property: craft\console\Request::isAjax'

in /Users/michael.roper/Sites/website-v3/vendor/yiisoft/yii2/base/Component.php:154

Stack trace:
#0 /Users/michael.roper/Sites/website-v3/vendor/nystudio107/craft-templatecomments/src/TemplateComments.php(92): yii\base\Component->__get('isAjax')
#1 /Users/michael.roper/Sites/website-v3/vendor/nystudio107/craft-templatecomments/src/TemplateComments.php(68): nystudio107\templatecomments\TemplateComments->addComponents()
...

(Craft v3.1.3)

khalwat commented 5 years ago

ups! Fixed in 1.0.5 -> https://github.com/nystudio107/craft-templatecomments/releases/tag/1.0.5