Question: Http Error 500 When I Open With Default Url

Http Error 500 When I Open With Default Url

HTTP ERROR 500 when I open with default url. But works fine when I open with url/admin. Below are the logs ERROR - 2021-02-23 20:32:27 --> Severity: error --> Exception: syntax error, unex

KA

Kwamina Anderson

Asked

HTTP ERROR 500 when I open with default url. But works fine when I open with url/admin.

Below are the logs

ERROR - 2021-02-23 20:32:27 --> Severity: error --> Exception: syntax error, unexpected ‘secret’ (T_STRING) /url/app/config/hybridauthlib.php 67 ERROR - 2021-02-23 20:34:36 --> Severity: error --> Exception: syntax error, unexpected ‘secret’ (T_STRING) /url/app/config/hybridauthlib.php 67

  • MS

    Mian Saleem

    Answered

    Hello,

    Did you edit that file? I am not sure why you getting this but you can try to remove everything from file and add the lines below

    <?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

  • Login to Reply