I’ve successfully installed yii and I’m very impressed so far.
The first problem I’ve run into is trying to install the yiishop module:
I’ve followed the install instructions but when I point the browser to /path/to/app/shop/install I get the following error:
I’ve looked in the module files for mysql files to install DB manually but no luck. Besides I would prefer to run the install script just incase it does other things like creating dirs etc.
I’ve tried posting comments on the extension page but I get the message “Sorry, you are too new to post comments. Please try posting in our forum first.”
My guess is that you changed the default table names on installation. On trying out the installation a while ago, I used defaults and everything worked. It looks like the changed table names currently won’t be saved and subsequently used for accessing the shop.
I found a problem with yiishop install. I had a new theme that was being accessed which lead to an unexpected layout being accessed in the new theme. I disabled the new theme in config/main.php and then the install page rendered as expected.
CDbCommand failed to execute the SQL statement: CDbCommand failed to prepare the SQL statement: SQLSTATE[HY000]: General error: 1 near "SET": syntax error. The SQL statement executed was: SET FOREIGN_KEY_CHECKS=0;
I have downloaded yiishop and i created webapp with the name yiishop..and i extracted the yiishop.rar file to my webapp(yiishop) modules...after i have opened my url but it is showing object not found... please can you exaplain in detail..how to install and run yiishop..
This is a very late reply but if anyone is facing this problem
then do the below:
In protected/modules/shop/controllers/InstallController.php
find in around line 314
$this->render('start');
and replace with
$this->renderPartial('start');
The problem is happening because it is loading the default shop layout which looks for the required tables but they are not created yet.
If you are using a theme in your Yii site then you may want to set the theme file for this yiishop install to nothing by adding one line above the new renderPartial code you just added above.