TM
Asked
Hi there
I keep getting a HTTP ERROR 500 when I try to access my website on the browser.
It should be taking me to the store as customer but it's not.
here is what I found on the error log.
<?php defined('BASEPATH') OR exit('No direct script access allowed'); ?>
ERROR - 2020-07-23 17:50:16 --> Severity: error --> Exception: syntax error, unexpected 'secret' (T_STRING) /home/eggscgwq/public_html/app/config/hybridauthlib.php 67
ERROR - 2020-07-23 17:50:51 --> Severity: error --> Exception: syntax error, unexpected 'secret' (T_STRING) /home/eggscgwq/public_html/app/config/hybridauthlib.php 67
How can I fix this ?
I keep getting a HTTP ERROR 500 when I try to access my website on the browser.
It should be taking me to the store as customer but it's not.
here is what I found on the error log.
<?php defined('BASEPATH') OR exit('No direct script access allowed'); ?>
ERROR - 2020-07-23 17:50:16 --> Severity: error --> Exception: syntax error, unexpected 'secret' (T_STRING) /home/eggscgwq/public_html/app/config/hybridauthlib.php 67
ERROR - 2020-07-23 17:50:51 --> Severity: error --> Exception: syntax error, unexpected 'secret' (T_STRING) /home/eggscgwq/public_html/app/config/hybridauthlib.php 67
How can I fix this ?
- MSAnsweredHello,
I am not sure but you can try to remove everything from file and add the lines below
```php
<?php
defined('BASEPATH') or exit('No direct script access allowed');
/* ----------------------------------------------------------------------------
/* HybridAuth Guide: http://hybridauth.github.io/hybridauth/userguide.html
/* ------------------------------------------------------------------------- */
$config = [
// For godady Shared Hosting Server uncomment the line below
// Please update the callback url too
'Hauth_base_url' => 'social_auth/endpoint',
// Please comment this if you have uncommented the above
// 'Hauth_base_url' => 'social_auth/endpoint',
'providers' => [
'Google' => [
'enabled' => false,
'keys' => ['id' => '', 'secret' => ''],
],
'Facebook' => [
'enabled' => false,
'keys' => ['id' => '', 'secret' => ''],
'scope' => 'email, public_profile, user_birthday',
],
'Twitter' => [
'enabled' => false,
'keys' => ['key' => '', 'secret' => ''],
],
'Yahoo' => [
'enabled' => false,
'keys' => ['id' => '', 'secret' => ''],
],
'Live' => [
'enabled' => false,
'keys' => ['id' => '', 'secret' => ''],
],
'MySpace' => [
'enabled' => false,
'keys' => ['key' => '', 'secret' => ''],
],
'OpenID' => [
'enabled' => false,
],
'LinkedIn' => [
'enabled' => false,
'keys' => ['key' => '', 'secret' => ''],
],
'Foursquare' => [
'enabled' => false,
'keys' => ['id' => '', 'secret' => ''],
],
'AOL' => [
'enabled' => false,
],
],
'debug_mode' => false,
'debug_file' => APPPATH . 'logs/hybridauth.php',
];
```
Thank you - TMAnsweredHi there
This worked.
Thank you. - Login to Reply