How do I solve the problem of error that open stream

How do I fix these errors?
Apache config Document Directory App root Directory.
I use Apache 2.4, Php7.1 And Xampp
My Project CakePhp 2.7

Warning : include(C:\Tube\app\Config\core.php): failed to open stream: No such file or directory in C:\Tube\lib\Cake\Core\Configure.php on line 72

Warning : include(): Failed opening ‘C:\Tube\app\Config\core.php’ for inclusion (include_path=‘C:\Tube\lib;C:\xampp\php\PEAR’) in C:\Tube\lib\Cake\Core\Configure.php on line 72

Fatal error : Can’t find application core file. Please create C:\Tube\app\Config\core.php, and make sure it is readable by PHP. in C:\Tube\lib\Cake\Core\Configure.php on line 76

Does C:\Tube\app\Config\core.php exist?

1 Like

oh I solved it thanks to you.

But there was another problem.

Uncaught Error: Class ‘Controller’ not found in C:\Tube\lib\Cake\Error\ExceptionRenderer.php:174 Stack trace: #0 C:\Tube\lib\Cake\Error\ExceptionRenderer.php(92): ExceptionRenderer->_getController(Object(FatalErrorException)) #1 C:\Tube\lib\Cake\Error\ErrorHandler.php(129): ExceptionRenderer->__construct(Object(FatalErrorException)) #2 C:\Tube\lib\Cake\Error\ErrorHandler.php(287): ErrorHandler::handleException(Object(FatalErrorException)) #3 C:\Tube\lib\Cake\Error\ErrorHandler.php(216): ErrorHandler::handleFatalError(64, 'Cannot use ‘Obj…’, ‘C:\Tube\lib…’, 30) #4 C:\Tube\lib\Cake\Core\App.php(933): ErrorHandler::handleError(64, 'Cannot use ‘Obj…’, ‘C:\Tube\lib…’, 30, Array) #5 C:\Tube\lib\Cake\Core\App.php(906): App::_checkFatalError() #6 [internal function]: App::shutdown() #7 {main} thrown in C:\Tube\lib\Cake\Error\ExceptionRenderer.php on line 174

I think it’s a PHP version issue.
Can you help me, too?

My understanding is that CakePHP 2.x wasn’t compatible with PHP 7.x until 2.9.