Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parse error: syntax error, unexpected '$config' (T_VARIABLE) in application/config/config.php on line 382 #8

Closed
DpoBoceka opened this issue Apr 4, 2018 · 2 comments
Assignees

Comments

@DpoBoceka
Copy link

the problem occures after GETting the index.php page. The line contains:

$config['sess_driver'] = 'database';

Database's up. Table 'ci_session' exists. What's incorrect?

@lbontecou
Copy link

You likely didn't update this line in the configuration. Set the encryption key (I believe you can use any string) and add a semi colon to the end. The issue you're getting is syntax and not related to L382 at all.

/*
|--------------------------------------------------------------------------
| Encryption Key
|--------------------------------------------------------------------------
|
| If you use the Encryption class, you must set an encryption key.
| See the user guide for more info.
|
| https://codeigniter.com/user_guide/libraries/encryption.html
|
*/

$config['encryption_key'] = ''

@xdanx xdanx self-assigned this Apr 16, 2018
@xdanx
Copy link
Member

xdanx commented Apr 16, 2018

@hoboken515 is right, there was a semicolon missing in the CI config file. I will fix it in the next commit. Meanwhile, remember to setup a strong encryption key https://www.codeigniter.com/user_guide/libraries/encryption.html#setting-your-encryption-key

@xdanx xdanx closed this as completed Apr 16, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants