Welcome Guest, Not a member yet? Register   Sign In
Community Auth for CI3 Parse error in Auth_Controller.php line 142
#1

Went through the installation process, receiving this error when I try to browse to the root.

Quote:A PHP Error was encountered
Severity: Parsing Error
Message: syntax error, unexpected '[', expecting ')'
Filename: core/Auth_Controller.php
Line Number: 142
Backtrace:

I went to the code in question at application/third_party/community_auth/core/Auth_Controller.php line 142
PHP Code:
        $this->load->library([
            
'session','tokens','Authentication'
        
])->helper([
            
'serialization','cookie'
        
])->model('auth_model'); 

The only thing I can figure is that for whatever reason php doesn't like the use of [] brackets to define the array and expects instead to see array()?  I didn't want to start modifying code that I didn't 100% understand so figured I would post the question as to how best to address this.
Thanks in advance,
Jim
Reply


Messages In This Thread
Community Auth for CI3 Parse error in Auth_Controller.php line 142 - by jimconnors - 04-21-2017, 03:49 PM



Theme © iAndrew 2016 - Forum software by © MyBB