jorenvanhee / craft-template-guard

Password protect any page or entry in Craft CMS.
Other
5 stars 0 forks source link

syntax error, unexpected '...' (T_ELLIPSIS), expecting ']' #10

Closed vaughn-taylor closed 2 years ago

vaughn-taylor commented 2 years ago

Everything is working properly on my local environment, however I receive this error when the plugin is deployed my remote dev server. This error shows when I visit a protected area (eg. /blog/my-blog-post):

Screen Shot 2022-04-20 at 12 50 57 PM

I'm using Craft CMS 3.7.37

jorenvanhee commented 2 years ago

I guess that your dev server runs an older (unsupported) version of php. PHP versions starting from 7.4 should support the ... syntax.

vaughn-taylor commented 2 years ago

@jorenvanhee thanks for the quick response. That makes sense.