Welcome Guest, Not a member yet? Register   Sign In
[Help] CI PHP error
#1

I have an problem with my site it was runing well and this started to appear. Any help please ?

Code:
PHP Error was encountered

Severity: Warning

Message: require_once(/public_html/system/database/DB.php): failed to open stream: No such file or directory

Filename: core/Loader.php

Line Number: 337

Backtrace:

File: /public_html/application/core/MY_Controller.php
Line: 9
Function: __construct

File: /public_html/application/controllers/Admin.php
Line: 9
Function: __construct

File: /public_html/index.php
Line: 294
Function: require_once


Fatal error: require_once(): Failed opening required '/public_html/system/database/DB.php' (include_path='.:/opt/php-5.5/pear') in /public_html/system/core/Loader.php on line 337
A PHP Error was encountered

Severity: Compile Error

Message: require_once(): Failed opening required 'public_html/system/database/DB.php' (include_path='.:/opt/php-5.5/pear')

Filename: core/Loader.php

Line Number: 337

Backtrace:
Reply
#2

Quote:require_once(/public_html/system/database/DB.php): failed to open stream: No such file or directory

Do you have /public_html/system/database/DB.php on your server?
Reply
#3

(09-08-2015, 10:25 PM)kenjis Wrote:
Quote:require_once(/public_html/system/database/DB.php): failed to open stream: No such file or directory

Do you have /public_html/system/database/DB.php on your server?

Yes I have it :|
Reply
#4

If you can read /public_html/system/database/DB.php , why your web server (or PHP process) can't open it?
Someone has changed permission? or SELinux configuration?
Reply
#5

Like Kenjis said, there's only two possibilities : the path is wrong, or the permissions are wrong.
CodeIgniter 4 tutorials (EN/FR) - https://includebeer.com
/*** NO support in private message - Use the forum! ***/
Reply




Theme © iAndrew 2016 - Forum software by © MyBB