⚠ 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

Bug with CI 3.1.3



Benoit VRIGNAUD

Benoit VRIGNAUD
  • profile picture
  • Member

Posted 09 January 2017 - 20:19 PM

Hello evrybody,

 

I had just update CI 3.1.2 -> 3.1.3.

 

It's look like there is a bug with Grocery CRUD.

 

As someone the same issue ?


Faleddo

Faleddo
  • profile picture
  • Member

Posted 11 January 2017 - 05:52 AM

Me too. Undefined $object in core/Loader

 

I fixed it by changed get_object_vars($object) into ? get_object_vars($vars) in system\core\Loader.php line 1381 and everything works well. Looks like there's bug fixed to in their github repo -> https://github.com/bcit-ci/CodeIgniter/blob/develop/system/core/Loader.php


web-johnny

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

Posted 11 January 2017 - 20:11 PM

Hello guys,

 

Isn't that a bug of Codeigniter 3.1.3 however? What do you think? Is there anything we can do at Grocery CRUD??

Thanks
Johnny


Benoit VRIGNAUD

Benoit VRIGNAUD
  • profile picture
  • Member

Posted 12 January 2017 - 08:33 AM

Hello,

 

Yes, it's a CodeIgniter's bug : https://github.com/bcit-ci/CodeIgniter/pull/4975


JohqASCHearts

JohqASCHearts
  • profile picture
  • Member

Posted 15 January 2017 - 01:08 AM

have the exact issue, thanks for making the thread @bvrignaud


Yeisson G

Yeisson G
  • profile picture
  • Member

Posted 19 January 2017 - 20:49 PM

Same thing happened to me


web-johnny

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

Posted 22 January 2017 - 08:16 AM

Just in case someone else is looking for the issue (that I am sure that someone just couldn't find a solution for his/her problem yet!) I am copying the exact error so google can help them faster :)

 

A PHP Error was encountered

 

Severity: Notice

Message: Undefined variable: object

Filename: core/Loader.php

Line Number: 1381

 

A PHP Error was encountered

 

Severity: Warning

Message: get_object_vars() expects parameter 1 to be object, null given

Filename: core/Loader.php

Line Number: 1381

 

and the fix is at the link: https://github.com/bcit-ci/CodeIgniter/commit/b9ac1a1c268dd6590bb8fb283f45326ce3e0c919

 

 

 


 


Spirizon

Spirizon
  • profile picture
  • Member

Posted 26 January 2017 - 10:58 AM

Yep, same here, just reinstalled codeigniter 3.1.2 and everything works fine.