After Installing Shop Module

0

After installing Shop module, sma is working on following URL http://domain.com/admin/welcome. but my shop module is not working on URL http://domain.com.

received following error

This page isn’t workingmaximemonline.com is currently unable to handle this request.
HTTP ERROR 500

Question Resolved For: Shop (Shopping Cart) & APIs Modules for Stock Manager Advance 0 Votes 5 Answers 687 Views
Asked by Mohamed Ishraque Kalideen 3 years ago

0

Answered by Frank Pennock 3 years ago

What's your error log on php and apache look like?

0

Answered by Mian Saleem 3 years ago

Hello,

You need to check your server php error logs to know the cause. You can enable app logs by changing the log_threshold to 1 in the app/config/config.php and then try to visit shop page again to produce errors. Lastly check the latest log file in the app/logs/ folder.

Thank you

0

Answered by Mohamed Ishraque Kalideen 3 years ago

<?php defined('BASEPATH') OR exit('No direct script access allowed'); ?>

ERROR - 2022-03-17 23:11:23 --> Severity: error --> Exception: syntax error, unexpected '=>' (T_DOUBLE_ARROW) /home/530186.cloudwaysapps.com/vmwpfckdxd/public_html/app/config/hybridauthlib.php 67
ERROR - 2022-03-17 23:11:26 --> Severity: error --> Exception: syntax error, unexpected '=>' (T_DOUBLE_ARROW) /home/530186.cloudwaysapps.com/vmwpfckdxd/public_html/app/config/hybridauthlib.php 67
ERROR - 2022-03-17 23:11:48 --> Severity: error --> Exception: syntax error, unexpected '=>' (T_DOUBLE_ARROW) /home/530186.cloudwaysapps.com/vmwpfckdxd/public_html/app/config/hybridauthlib.php 67

error received on my log file

0

Answered by Mohamed Ishraque Kalideen 3 years ago

already I have changed log_threshold to 1, but still not working

1

Answered by Mian Saleem 3 years ago

Hello,

Please make sure you are on php 7.4

If yes, you can replace the contents of file app/config/hybridauthlib.php with following

<?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
    'callback'       => 'social_auth/login',
    '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',
        ],

        '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

We use Cookies

We use cookies to ensure that we give you the best experience on our website. By continuing to browse the site you are agreeing to our use of cookies.