I've seen a number of questions on this site regarding this exact issue, but I'm fairly certain that my case is a bit different. I recently upgraded from ZF 1.9.6 to 1.11.11 and since then things stopped working on my production server.
My localhost is running PHP 5.3.8 while the server is running 5.2.11. I am not sure if that has anything to do with it but I figured I would mention it just in case.
When I first upgraded the framework, I was getting a bunch of open_basedir restriction in effect.
errors. I resolved that exactly how several others mentioned, by removing the get_include_path()
from the call to set_include_path()
in the index.php file. As mentioned here.
That fixed the open_basedir errors, but now I'm having issues elsewhere. In several different files for various reasons I am including files via the include
and require
statements using relative paths.
For example:
require_once 'application/models/MyModel.php';
But now that suddenly doesn't work anymore! I've had to suddenly prepend all those paths with a ./
like so:
require_once './application/models/MyModel.php';
The problem is, there are way too may instances of that to manually go through and find all of them and change it. Rather, I want to figure out why those paths no longer work on the server but continue to work on my localhost.
My inclination is that it has something to do with the fact that I no longer include the get_include_path()
part in the set_include_path()
in the index.php file but I am not sure.
Can anyone shed some insight? Thanks!