Reputation: 3
I have a project, build in Yii Framework
, in my machine 1.
Now I moved my whole project to new laptop.
But it's not running and displaying some error:
Warning: require_once(D:\xampp\htdocs\rpadmin/../framework/yii.php): failed to open stream: No such file or directory in D:\xampp\htdocs\rpadmin\index.php on line 11
Fatal error: require_once(): Failed opening required 'D:\xampp\htdocs\rpadmin/../framework/yii.php' (include_path='.;D:\xampp\php\PEAR') in D:\xampp\htdocs\rpadmin\index.php on line 11
Does anyone know what is happening?
Upvotes: 0
Views: 2242
Reputation: 6781
You need to edit in your project the file index.php
and change the line:
// change the following paths if necessary
$yii=dirname(__FILE__).'/../framework/yii.php';
$config=dirname(__FILE__).'/protected/config/main.php';
with your Yii Framework
path location.
If you have framework
folder in the same location with the project, you need to change like this:
$yii=dirname(__FILE__).'/framework/yii.php';
Upvotes: 2
Reputation: 675
actually u have folder of yii(framework named folder) framework outside the rpadmin folder now u have to upload it from your local machine to the server and put it outside the rpadmin from... the error message ...
Warning: require_once(D:\xampp\htdocs\rpadmin/../framework/yii.php):
so there will be a framework named folder....
after that make some changes
Upvotes: 0