orangehrm / orangehrm

OrangeHRM is a comprehensive Human Resource Management (HRM) System that captures all the essential functionalities required for any enterprise.
GNU General Public License v3.0
740 stars 538 forks source link

Fatal Error Index #1839

Open rindhaf opened 1 week ago

rindhaf commented 1 week ago

OrangeHRM version

5.6.1

Environment details

Describe the bug

I'm cloning the project to my computer at C:\xampp\htdocs\orangehrm-main\orangehrm-main. However when I access in Chrome using http://localhost/orangehrm-main/orangehrm-main/, I get the error message: Fatal error: Uncaught Value: Path cannot be empty in C:\xampp\htdocs\orangehrm-main\orangehrm-main\index.php:21 Stack trace: #0 {main} inserted in C:\xampp\htdocs \orangehrm -main\orangehrm-main\index.php on line 21

image

and the index.php, have source codes like below:

<?php
/**
 * OrangeHRM is a comprehensive Human Resource Management (HRM) System that captures
 * all the essential functionalities required for any enterprise.
 * Copyright (C) 2006 OrangeHRM Inc., http://www.orangehrm.com
 *
 * OrangeHRM is free software: you can redistribute it and/or modify it under the terms of
 * the GNU General Public License as published by the Free Software Foundation, either
 * version 3 of the License, or (at your option) any later version.
 *
 * OrangeHRM is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
 * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 * See the GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License along with OrangeHRM.
 * If not, see <https://www.gnu.org/licenses/>.
 */

use OrangeHRM\Config\Config;

require realpath(__DIR__ . '/src/vendor/autoload.php');

/* For logging PHP errors */
include_once('./src/config/log_settings.php');

if (!Config::isInstalled()) {
    header('Location: ./installer/index.php');
} else {
    header("Location: ./web/index.php/auth/login");
}

What is the solution of this? Help me please!

To reproduce

No response

Expected behavior

No response

Relevant log output

No response

devishke-orange commented 1 week ago

Hi @rindhaf,

Please follow the instructions here to install the dependencies for the frontend and backend: https://github.com/orangehrm/orangehrm/wiki/5.x-development-guide

devishke-orange commented 1 week ago

If you want to just get a system up and running, please download our latest release: https://github.com/orangehrm/orangehrm/releases/tag/v5.6.1