Yii Framework Forum: Trying to install yiishop - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Trying to install yiishop Rate Topic: -----

#1 User is offline   reactor 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 4
  • Joined: 03-October 11

Posted 03 October 2011 - 07:26 PM

Hi all,

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:

Quote

CDbException

The table "shop_category" for active record class "Category" cannot be found in the database.

/var/www/svnwc_yii/framework/db/ar/CActiveRecord.php(2276)


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."

Thanks
0

#2 User is offline   tri 

  • Elite Member
  • Yii
  • Group: Moderators
  • Posts: 1,651
  • Joined: 20-November 08
  • Location:Stockholm, Sweden

Posted 03 October 2011 - 08:17 PM

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.

/Tommy
Don't forget to read The Definitive Guide to Yii (en) (sv) | The class reference has the details
0

#3 User is offline   reactor 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 4
  • Joined: 03-October 11

Posted 13 October 2011 - 02:24 AM

View Posttri, on 03 October 2011 - 08:17 PM, said:

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.

/Tommy


Thanks Tommy but I don't think I did, and I've left all defaults. I'll try another clean install and see what I get...
0

#4 User is offline   blevy009 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 10
  • Joined: 06-October 11

Posted 18 November 2011 - 02:57 AM

View Postreactor, on 13 October 2011 - 02:24 AM, said:

Thanks Tommy but I don't think I did, and I've left all defaults. I'll try another clean install and see what I get...


I get the same error. In looking at the code, it gets past the tests for debug and db, and goes to render install, but them runs into this error??
0

#5 User is offline   blevy009 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 10
  • Joined: 06-October 11

Posted 18 November 2011 - 03:31 AM

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.

2011/11/18 00:04:10 [trace] [system.CModule] Loading "widgetFactory" application component
in ...........Cat\themes\new\views\layouts\column1.php (1)
in ............Cat\protected\modules\shop\controllers\InstallController.php (309)
in ......Cat\protected\modules\shop\controllers\InstallController.php (318)
2011/11/18 00:04:10 [trace] [system.db.CDbCommand] Querying SQL: SHOW COLUMNS FROM `shop_category`
0

#6 User is offline   mocapapa 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 428
  • Joined: 04-January 09
  • Location:Tokyo, JAPAN

Posted 29 November 2011 - 09:20 PM

I also had the same installation problem:(.
Though I have not investigated the root cause, I happened to have a workaround of this.

Just try following.

1. Download 0.7rc3 and extract as shop under modules.
2. Run 'shop/install', then you can create several tables in the specified MySQL database.
3. Remove shop (rm -rf shop).
4. Checkout the latest from google-code under modules as shop.

As there may be lots of bugs, I can continue to debug by doing this:).
0

#7 User is offline   mocapapa 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 428
  • Joined: 04-January 09
  • Location:Tokyo, JAPAN

Posted 29 November 2011 - 11:38 PM

View Postmocapapa, on 29 November 2011 - 09:20 PM, said:

As there may be lots of bugs, I can continue to debug by doing this:).


I have started to fix yiishop at following repository. As mentioned there, I don't want to fork yiishop. I just would like it work :)

http://code.google.c...ishop-from-r79/
0

#8 User is offline   blaces 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 80
  • Joined: 06-April 12

Posted 06 April 2012 - 05:35 PM

Hi,

Can somebody help me, where can I find the modules dir?
And the shop dir will be extracted or the contain of the shop dir? (modules/shop or modules/ShopMoudule.php etc)
0

#9 User is offline   shamshad 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 4
  • Joined: 18-October 12

Posted 18 October 2012 - 01:07 AM

Webshop is not in Debug Mode
why do i get this message? where is the changes i should make?
0

#10 User is offline   shamshad 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 4
  • Joined: 18-October 12

Posted 18 October 2012 - 02:54 AM

i got the problem solved
just create a new folder named Modules under your webapplication/protected directory. and unzip the extension under Modules directory.
0

#11 User is offline   jacmoe 

  • Elite Member
  • Yii
  • Group: Moderators
  • Posts: 2,601
  • Joined: 10-October 10
  • Location:Denmark

Posted 18 October 2012 - 03:46 PM

/* Moved from Installation and Setup ... */
"Less noise - more signal"
0

#12 User is offline   NatalyaKontak 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 1
  • Joined: 24-October 13

Posted 24 October 2013 - 11:34 AM

Hi all

I also tried to install yiishop but got an error:

CDbException

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;

Z:\home\yiishop\www\framework\db\CDbCommand.php(358)
0

#13 User is offline   rakeshj 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 3
  • Joined: 13-January 14

Posted 13 January 2014 - 03:45 AM

Hello,
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..

Thank you.
0

#14 User is offline   rakeshj 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 3
  • Joined: 13-January 14

Posted 13 January 2014 - 03:48 AM

hi sir..
i have few doubts...on yiishop app..why dont you keep videos in youtube..please can you upload the video..so that beginners can easily understand..
thank you.
0

#15 User is offline   Larry Jr. 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 19
  • Joined: 13-March 13
  • Location:Tomohon

Posted 24 August 2014 - 11:45 PM

Hi I'm having problem while running the extension <webapp>/shop/install, it says:

Alias "shop.ShopModule" is invalid. Make sure it points to an existing PHP file and the file is readable.

I've already tried to give permission to the folder:

sudo chmod -R 777 /var/www/

but still have no effect.. Any ideas?

Thanks
JoenMarz
0

#16 User is offline   Pecos 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 22
  • Joined: 21-March 14

Posted 26 August 2014 - 12:48 AM

View PostLarry Jr., on 24 August 2014 - 11:45 PM, said:

Hi I'm having problem while running the extension <webapp>/shop/install, it says:

Alias "shop.ShopModule" is invalid. Make sure it points to an existing PHP file and the file is readable.

I've already tried to give permission to the folder:

sudo chmod -R 777 /var/www/

but still have no effect.. Any ideas?

Thanks


I have Yii-Shop installed. Save the files in modules, in a folder called shop. Make the settings in main.php. Something like...

'modules'=>array(
  'shop' => array( 
                    'debug' => 'true',
                    'loginUrl' => array('/user/auth'),
			'currencySymbol' => '£',
			'termsView' => array('/myprojectspecific_controller/terms'),
			'successView' => array('/myprojectspecific_controller/success'),
			'failureView' => array('/myprojectspecific_controller/failure'),
         ),
...
)


Then run install and create the tables. You also need a folder to store images (app/productimages).

I couldn't simulate your error.
0

#17 User is offline   danmburu 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 1
  • Joined: 02-October 14

Posted 02 October 2014 - 02:05 AM

View Postrakeshj, on 13 January 2014 - 03:45 AM, said:

Hello,
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..

Thank you.


Incase anyone is still experiencing this issue, ensure URLManager is enabled by uncommenting the following code in config/main.php


/*
'urlManager'=>array(
'urlFormat'=>'path',
'rules'=>array(
'<controller:\w+>/<id:\d+>'=>'<controller>/view',
'<controller:\w+>/<action:\w+>/<id:\d+>'=>'<controller>/<action>',
'<controller:\w+>/<action:\w+>'=>'<controller>/<action>',
),
),
*/
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users