doublesecretagency / craft-viewcount

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

Internal Server Error #5

Closed thefubon closed 4 years ago

thefubon commented 4 years ago

Please tell me how to set the counter correctly. I get an error after adding the code

{% do craft.viewCount.increment(elementId) %}

Internal Server Error server error

lindseydiloreto commented 4 years ago

That is the correct way to increment the counter.

What kind of error are you getting? Can you put the site into devMode to get a detailed stack trace?

lindseydiloreto commented 4 years ago

Haven't heard back, and I can't see any reason why this code would produce an error.