0
votes

I am using laravel framewrok for a project it is running fine on localhost but giving errors when I upload it to a directory on host

Warning: require(DIR/../bootstrap/autoload.php) [function.require]: failed to open stream: No such file or directory in /hermes/bosoraweb187/b1812/ipg.girdtechnologiescom/test/acekamp1/public/index.php on line 21

Fatal error: require() [function.require]: Failed opening required 'DIR/../bootstrap/autoload.php' (include_path='.:/usr/local/lib/php-5.2.17/lib/php') in /hermes/bosoraweb187/b1812/ipg.girdtechnologiescom/test/acekamp1/public/index.php on line 21

I am using ipage host.

thanks in advance...

1

1 Answers

2
votes

In short - you have to upgrade PHP to 5.3 at least. The reason is because __DIR__ is a magic contstant that is only added in PHP 5.3.

Here is the explanation of the problem