Question: ThispageisnotworkingHTTPERROR500

ThispageisnotworkingHTTPERROR500

i am getting this page is not working after successful installation. Why i am getting this error.

PS

Prashant Sharma

Asked
i am getting this page is not working after successful installation. Why i am getting this error.
  • MS

    Mian Saleem

    Answered
    Hello,

    I have replied you on your other question. Please follow up there.

    Thank you
  • PS

    Prashant Sharma

    Answered
    this is my error log file

    ERROR - 2020-01-29 09:09:02 --> Query error: No database selected - Invalid query: SELECT `data`
    FROM `sma_sessions`
    WHERE `id` = 'd5tuk2ejekh1s6isq101j45hacjllabe'

    ERROR - 2020-01-29 09:09:02 --> Severity: Parsing Error --> syntax error, unexpected '?' E:\xampp\htdocs\shahibanisalt\salt\app\libraries\Sma.php 88

    ERROR - 2020-01-29 09:09:02 --> Query error: No database selected - Invalid query: INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('d5tuk2ejekh1s6isq101j45hacjllabe', '::1', 1580288942, '__ci_last_regenerate|i:1580288942;')

    ERROR - 2020-01-29 09:09:02 --> Severity: Warning --> Unknown: Failed to write session data (user). Please verify that the current setting of session.save_path is correct (E:\xampp\tmp) Unknown 0
  • PS

    Prashant Sharma

    Answered
    this is the connection installation . Its showing successful.
  • MS

    Mian Saleem

    Answered
    > Please see the latest log, the above from 29th Jan 2020

    That's strange. You can check db settings in `app/config/database.php` Please double check it and check your database, if the tables are created successfully.

    Thank you
  • PS

    Prashant Sharma

    Answered
    I have checked it its fine. If database connection not fine its not show successful.
    please find attachment which attached.

    $db['default'] = [
    'dsn' => '',
    'hostname' => 'localhost',
    'username' => 'stockmgrDB',
    'password' => 'Trinken@9090',
    'database' => 'stockmgrDB',
    'dbdriver' => 'mysqli',
    'dbprefix' => 'sma_',
    'pconnect' => false,
    'db_debug' => false,
    'cache_on' => false,
    'cachedir' => '',
    'char_set' => 'utf8',
    'dbcollat' => 'utf8_general_ci',
    'swap_pre' => '',
    'encrypt' => false,
    'compress' => false,
    'stricton' => false,
    'failover' => [],
    'save_queries' => false,
    ];
    Attachments
  • MS

    Mian Saleem

    Answered
    Not sure, may be you can change the `hostname` to `127.0.0.1`
  • PS

    Prashant Sharma

    Answered
    i have changed localhost to 127.0.0.1 but error showing same.
  • PS

    Prashant Sharma

    Answered
    I am getting same error. Please help.
  • MS

    Mian Saleem

    Answered
    What is your php version? You need php7, please check this and did you database has `sam_sessions` table? How many tables are there?
  • PS

    Prashant Sharma

    Answered
    php version 5.6.5. sam_session table exist.

    total tables - 69
  • Login to Reply