⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠

  •     

profile picture

Access level to grocery_CRUD_Form_validation must be public



KaBaDaBrA
  • profile picture
  • Member

Posted 29 February 2012 - 17:34 PM

Have this strange issue - just downloaded latest version from github and extracted to fresh CodeIgniter 2.1 installation. When I try run the site I get the following error:


Fatal error: Access level to grocery_CRUD_Form_validation::$CI must be public (as in class CI_Form_validation) in C:\www\xampp\htdocs\landlordsglobal\application\backend\libraries\grocery_crud.php on line 3503


On line 3505 I just changed

protected $CI;


to

public $CI;


It works now but just wanted to find out what would cause the error and if there was something I was perhaps doing wrong in regards to this error?

Thanks :)

web-johnny
  • profile picture
  • Administrator
  • 1,166 posts

Posted 29 February 2012 - 19:08 PM

No my fault. You just find a bug. I just change it. The good thing is that it is not to a released version ;) .

Thank you to mention it.

KaBaDaBrA
  • profile picture
  • Member

Posted 01 March 2012 - 06:58 AM

Ok grrreat!! :P I shall continue bug testing etc by downloading the github version every now and then... :ph34r:

web-johnny
  • profile picture
  • Administrator
  • 1,166 posts

Posted 01 March 2012 - 07:29 AM

;)