⚠ 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

PHP error on line 3654 while upgrade to 1.3.1



Chanchai Manatrakul

Chanchai Manatrakul
  • profile picture
  • Member

Posted 06 September 2012 - 08:34 AM

[b] A PHP Error was encountered[/b]

Severity: Warning
Message: Creating default object from empty value
Filename: libraries/Grocery_CRUD.php
Line Number: 3654

I have found the issue when I open the admin as screenshot showing,

By the way, I have found my possible solution (may be workaround) to add line


[i]Put [/i][i]before line 3654 [/i][i]: $this->config = (object)array();[/i]
[i]Line 3654 : $this->config->default_language = $ci->config->item('grocery_crud_default_language');[/i]

After that, the error has been gone.

However I post here to ask your suggestion. Is the workaround correct, I'm afraid of impacted? Thanks.

web-johnny

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

Posted 06 September 2012 - 12:46 PM

Hello [member='Chanchai Manatrakul'] and welcome to the forum,

No your fix is correct and I will change it straight away. Probably this error is only for 5.2.x

Thanks for the sharing.

Chanchai Manatrakul

Chanchai Manatrakul
  • profile picture
  • Member

Posted 06 September 2012 - 13:51 PM

Thank you so much for your great work also. I love your framework so much.

web-johnny

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

Posted 07 September 2012 - 00:15 AM

Guys just to inform you I have uploaded again the grocery CRUD version 1.3.1 with this only line of code more. So Just try to download the project again from: http://www.grocerycrud.com/downloads if you have a similar problem.