Tuesday 14 May 2013

Cannot access empty property in PHP

,

Error

  Cannot access empty property in Test.php on line 90

Reason 

  1. You put a dollar sign in the wrong place on a member variable.


$this->$test = 8;   // $test is wrong


Possible solution :

  1. Put your dollar sign in correct place.

 $this->test = 8;    // test is right

>
Read more →

Saturday 11 May 2013

Error Messages in Rails - {{attribute}} {{message}}

,

Error : Error Messages in Rails - {{attribute}} {{message}}

Reason 

  1. You'll get this error when running Rails 2.3.8 and older.

Possible solution :

  1. Check for correct version of i18n.
  2. First check installed i18n version and then open your Gemfile to see correct version of i18n.
  3. Uninstall incompatible i18n version  and install correct version of i18n found in Gemfile
Read more →