Yii Framework Forum: Migration Error - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • This topic is locked

Migration Error

#1 User is offline   JimL 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 2
  • Joined: 07-March 13

Posted 09 March 2013 - 02:21 PM

Hello all,

I am following instruction on book but I get the following error when running "yiic migrate"

Parse error: syntax error, unexpected '$this' (T_Variable in .....

Can someone please help

Thanks
0

#2 User is offline   Mikeyii 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 1
  • Joined: 15-July 13

Posted 15 July 2013 - 01:41 PM

Hi
That was a pain I had to undergo.
There was an answer on Stackoverflow and I am not allowed to embed links;

Simple Answer:
the root cause of the problem when copying code snippets from Kindle books: when you copy text from the Kindle app, it uses hex code 0xA0 for space characters, not 0x20. Hex code 0xA0 is extended ASCII for non-breaking whitespace. Well, this doesn't work when you are expecting to copy-and-paste HTML literal strings, as was the case in the aforementioned posting.

And so this explains the behavior in the aforementioned posting: the original poster indicated that he could get around the problem by hand-retyping all of the text. It's because the hand re-typing was using proper 0x20.

This had other symptoms which I didn't understand at first but are now explained: my text editor (Notepad++) was not correctly identifying the reserved keywords in my source code. Again, this is because the keywords were separated by 0xA0, not 0x20. The keyword parser in Notepad++ must be tokenizing off of 0x20.

Solution: after pasting text from Kindle, perform a search and replace using regular expression searching capabilities in your source code editor. Search for regular expression \xA0 and replace it with \x20 (or, depending on your editor just type in a single space bar character in the Replace field [that is how Notepad++ works]).
0

#3 User is offline   mohd arshad 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 29
  • Joined: 11-April 15
  • Location:New Delhi India

Posted 20 April 2015 - 01:11 AM

I created database with the name "trackstar", and also create a table with the name "tbl_project", now i want to create a migrate for this table.
when I create a migrate using this command-:
C:\xampp\htdocs\trackstar\protected>yiic migrate create create_projects_table
there is an error......
'yii' is not recognized as an in
operable program or batch file.

please help me out this problem..
how should I create migrate for a particular database table ?
0

#4 User is offline   najaram 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 7
  • Joined: 05-May 15
  • Location:Philippines

Posted 10 May 2015 - 07:52 AM

try editing your yiic.bat file.set PHP_COMMAND=php.exe -c c:\path\toyour\php.ini
0

#5 User is offline   carrishharris 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 3
  • Joined: 08-June 15
  • Location:Australia

Posted 08 June 2015 - 05:26 AM

If you receive an error message stating that account migration from a Minecraft to a Mojang account failed, please first make sure that you have typed your information correctly, and that you do not already have a migrated account under the same email address. If you have created a blank Mojang account, or have one from purchasing another game, you will need to log into your account with that email address, and migrate your account that way.
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • This topic is locked

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