Fatal error: Uncaught Error: Failed opening required

27 Views Asked by At

I upgraded an old PHP application with Zend framework from PHP 5.2 to PHP 8.2 using Rector. Now Its giving me an error as follows,

Fatal error: Uncaught Error: Failed opening required 'D:\projects\my_project\public/Zend/Application.php'

The error is triggerd by the following line in the index.php file,

require_once __DIR__.'/Zend/Application.php';

This require_once method worked in the earlier version and gave out path as,

D:/projects/library/Zend/Application.php

The upgraded project gives out the path as,

D:\projects\my_project\public/Zend/Application.php

making it unable to locate the Application.php file.

I echoed the value of "DIR" and its "D:\projects\my_project\public" in both instances.

0

There are 0 best solutions below