doublesecretagency / craft-viewcount

View Count plugin for Craft CMS
Other
6 stars 4 forks source link

PHP Error 'Trying to get property 'query' of non-object' on Craft 3.5.15.1 #9

Closed mdominguez closed 3 years ago

mdominguez commented 3 years ago

Hi,

When updating to the latest Craft CMS 3.5.15.1, I get a 'Trying to get property 'query' of non-object' error in the CMS as on the front-end where a ViewCount field is used.

Any ideas what could be the issue? Thanks!

Screenshot

lindseydiloreto commented 3 years ago

That's interesting. How were you updating (via command line or via the control panel)?

At a glance, that error doesn't make much sense. My gut is telling me that it might be a borked install. Try nuking your vendor folder and re-installing it.

rm -rf vendor/
rm composer.lock
composer clear-cache
composer update
mdominguez commented 3 years ago

Hi Lindsey,

Sorry for the late reply, I just tried what you did and all worked out :) thanks!

lindseydiloreto commented 3 years ago

Ok great, thanks for reporting back! 👍