⚠ In case you've missed it we are migrating 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 forum is read-only and soon will be archived. ⚠


PHP error on line 3654 while upgrade to 1.3.1


  • Please log in to reply
3 replies to this topic

#1 Chanchai Manatrakul

Chanchai Manatrakul

    Newbie

  • Members
  • Pip
  • 4 posts

Posted 06 September 2012 - 08:34 AM

A PHP Error was encountered

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


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

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.

Attached Thumbnails

  • Screen Shot 2555-09-06 at 3.28.19 PM.png
  • Screen Shot 2555-09-06 at 3.29.03 PM.png


#2 web-johnny

web-johnny

    grocery CRUD Author

  • Administrators
  • 1,166 posts

Posted 06 September 2012 - 12:46 PM

Hello 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.

#3 Chanchai Manatrakul

Chanchai Manatrakul

    Newbie

  • Members
  • Pip
  • 4 posts

Posted 06 September 2012 - 01:51 PM

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

#4 web-johnny

web-johnny

    grocery CRUD Author

  • Administrators
  • 1,166 posts

Posted 07 September 2012 - 12: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.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users