AD
Asked
I'm installing on localhost and the admin panel runs fine, but when I run this module it doesn't load
https://1.bp.blogspot.com/-eqTUKXDbMks/X2fvwcSs6sI/AAAAAAAACJE/lTPWJqAtvm8n-AP_BqfaAJqSr6M8e2DNgCLcBGAsYHQ/s1080/tienda%2Bonline.JPG
the admin panel if it works
https://1.bp.blogspot.com/-2_-UJYpTETk/X2fvwmgxCCI/AAAAAAAACJI/sj8NOxvwYbo_M8UEKG8zCYEIeDKQx9_XQCLcBGAsYHQ/s1212/panel%2Badmin.JPG
https://1.bp.blogspot.com/-eqTUKXDbMks/X2fvwcSs6sI/AAAAAAAACJE/lTPWJqAtvm8n-AP_BqfaAJqSr6M8e2DNgCLcBGAsYHQ/s1080/tienda%2Bonline.JPG
the admin panel if it works
https://1.bp.blogspot.com/-2_-UJYpTETk/X2fvwmgxCCI/AAAAAAAACJI/sj8NOxvwYbo_M8UEKG8zCYEIeDKQx9_XQCLcBGAsYHQ/s1212/panel%2Badmin.JPG
- MSAnsweredHello,
Please check your server error logs and let us know the error details so that we can suggest solution.
Thank you - ADAnswered<?php defined('BASEPATH') OR exit('No direct script access allowed'); ?>
ERROR - 2020-09-20 00:19:19 --> Severity: Warning --> mysqli::real_connect(): (HY000/1045): Access denied for user 'dbuser'@'localhost' (using password: YES) /home/nwsktjeg/localhost/stock_manager/system/database/drivers/mysqli/mysqli_driver.php 203
ERROR - 2020-09-20 00:19:19 --> Unable to connect to the database
ERROR - 2020-09-20 00:19:19 --> Severity: Warning --> mysqli::real_connect(): (HY000/1045): Access denied for user 'dbuser'@'localhost' (using password: YES) /home/nwsktjeg/localhost/stock_manager/system/database/drivers/mysqli/mysqli_driver.php 203
ERROR - 2020-09-20 00:19:19 --> Severity: Warning --> session_start(): Failed to initialize storage module: user (path: /var/cpanel/php/sessions/ea-php74) /home/nwsktjeg/localhost/stock_manager/system/libraries/Session/Session.php 143
ERROR - 2020-09-20 00:19:19 --> Severity: Warning --> mysqli::real_connect(): (HY000/1045): Access denied for user 'dbuser'@'localhost' (using password: YES) /home/nwsktjeg/localhost/stock_manager/system/database/drivers/mysqli/mysqli_driver.php 203
ERROR - 2020-09-20 00:19:19 --> Unable to connect to the database
ERROR - 2020-09-20 00:19:19 --> Query error: Access denied for user 'dbuser'@'localhost' (using password: YES) - Invalid query: SET SESSION sql_mode = ""
ERROR - 2020-09-20 00:19:19 --> Severity: Warning --> mysqli::real_connect(): (HY000/1045): Access denied for user 'dbuser'@'localhost' (using password: YES) /home/nwsktjeg/localhost/stock_manager/system/database/drivers/mysqli/mysqli_driver.php 203
ERROR - 2020-09-20 00:19:19 --> Unable to connect to the database
ERROR - 2020-09-20 00:19:19 --> Query error: Access denied for user 'dbuser'@'localhost' (using password: YES) - Invalid query: SELECT *
FROM `sma_settings`
ERROR - 2020-09-20 00:19:19 --> Severity: error --> Exception: Call to a member function num_rows() on bool /home/nwsktjeg/localhost/stock_manager/app/models/Site.php 305 - MSAnsweredHello,
These are app logs and as you can see the only error is `Unable to connect to the database` Please check your db config in the `app/config/database.php`
Thank you - ADAnsweredthe connection is fine as I indicated the administrator panel is working fine, what does not work is the store the index
- MSAnsweredHello,
If the admin area is working fine then you need to check your server error logs and let me know the error details. You can check with your host/server admin about error logs.
There is no way to resolve 500 without error details as it could be due to various reason including code and server config.
The app logs might be before installation and if you have enable them there should be new log. If not you can enable app log by changing the `log_threshold` to 1 in `app/config/config.php` and then visit the page again to produce error. Lastly check the latest log file in the `app/logs/` folder.
Thank you - ADAnswered<?php defined('BASEPATH') OR exit('No direct script access allowed'); ?>
ERROR - 2020-09-25 23:14:42 --> Severity: error --> Exception: syntax error, unexpected 'secret' (T_STRING) /home/nwsktjeg/localhost/stock_manager/app/config/hybridauthlib.php 67 - MSAnsweredHello,
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
<?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