Yii Framework Forum: Php crashes with model command - Yii Framework Forum

Jump to content

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

Php crashes with model command Rate Topic: -----

#1 User is offline   abellix 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 4
  • Joined: 26-March 09

Posted 27 March 2009 - 11:19 AM

Hello,

my connection string to the local mysql db (xampp installation) is the following:


'db'=>array(
'class'=>'CDbConnection',
'connectionString'=>'mysql:host=localhost;dbname=testyii',
'username'=>'root',
'password'=>'',
'charset'=>'utf8',
'emulatePrepare'=>true,
),


when I launch "model User" command by yiic shell I get a php.exe crash and the error:

The instruction at "0x0237250a" referenced memory at "0x00000000". The memory coudl not be "read".


How can I solve this? Thank you
0

#2 User is offline   qiang 

  • Yii Project Lead
  • Yii
  • Group: Yii Dev Team
  • Posts: 5,901
  • Joined: 04-October 08
  • Location:DC, USA

Posted 27 March 2009 - 11:22 AM

This is caused by PHP installation. Please check if your PHP cli version is compatible with the PDO extension. You may also consider reinstalling PHP.
0

#3 User is offline   abellix 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 4
  • Joined: 26-March 09

Posted 27 March 2009 - 11:35 AM

You're right! It's a problem caused by the php-mysql dll used by XAMP 1.7

Sorry, this question was already been solved... I realized after the right search.

Here the previous topic:
http://www.yiiframew...01.msg3718.html

Here the fix:
http://www.apachefri...hp?f=16&t=32617

Thank you!
:)
0

#4 User is offline   DiegoToala 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 13
  • Joined: 06-June 09
  • Location:Brooklyn, NY

Posted 06 June 2009 - 07:52 PM

Hi Folks,

I have had the same error, but I found the solution calling the boobstrap file within the shell command this way:

yiic shell ../index.php

I´m using Windows 7 with WampServer.

Greetings
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