⚠ 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

Unable to Test Run Example: Message: include(assets/grocery_crud/languages/english.php)



loyalty
  • profile picture
  • Member

Posted 18 September 2012 - 00:54 AM

Hi,

I got the following errors while trying to test run the included Grocery CRUD example:



[color=#ff0000]Severity: Warning[/color]
[color=#ff0000]Message: include(assets/grocery_crud/languages/english.php) [[/color][color=#ff0000]function.include[/color][color=#ff0000]]: failed to open stream: No such file or directory[/color]
[color=#ff0000]Filename: libraries/grocery_crud.php[/color]
[color=#ff0000]Line Number: 3331[/color]


[color=#ff0000]Severity: Warning[/color]
[color=#ff0000]Message: include() [[/color][color=#ff0000]function.include[/color][color=#ff0000]]: Failed opening 'assets/grocery_crud/languages/english.php' for inclusion (include_path='.:/Applications/MAMP/bin/php/php5.2.17/lib/php')[/color]
[color=#ff0000]Filename: libraries/grocery_crud.php[/color]
[color=#ff0000]Line Number: 3331[/color]


[color=#ff0000]Severity: Notice[/color]
[color=#ff0000]Message: Undefined variable: lang[/color]
[color=#ff0000]Filename: libraries/grocery_crud.php[/color]
[color=#ff0000]Line Number: 3333[/color]


[color=#ff0000]Severity: Warning[/color]
[color=#ff0000]Message: Invalid argument supplied for foreach()[/color]
[color=#ff0000]Filename: libraries/grocery_crud.php[/color]
[color=#ff0000]Line Number: 3333[/color]


[color=#ff0000]Severity: Notice[/color]
[color=#ff0000]Message: Undefined index: form_inactive[/color]
[color=#ff0000]Filename: libraries/grocery_crud.php[/color]
[color=#ff0000]Line Number: 3401[/color]


[color=#ff0000]Severity: Notice[/color]
[color=#ff0000]Message: Undefined index: form_active[/color]
[color=#ff0000]Filename: libraries/grocery_crud.php[/color]
[color=#ff0000]Line Number: 3401[/color]


[color=#ff0000]Severity: Warning[/color]
[color=#ff0000]Message: include(assets/grocery_crud/themes/flexigrid/config.php) [[/color][color=#ff0000]function.include[/color][color=#ff0000]]: failed to open stream: No such file or directory[/color]
[color=#ff0000]Filename: libraries/grocery_crud.php[/color]
[color=#ff0000]Line Number: 2371[/color]


[color=#ff0000]Severity: Warning[/color]
[color=#ff0000]Message: include() [[/color][color=#ff0000]function.include[/color][color=#ff0000]]: Failed opening 'assets/grocery_crud/themes/flexigrid/config.php' for inclusion (include_path='.:/Applications/MAMP/bin/php/php5.2.17/lib/php')[/color]
[color=#ff0000]Filename: libraries/grocery_crud.php[/color]
[color=#ff0000]Line Number: 2371[/color]


[color=#ff0000]Severity: Notice[/color]
[color=#ff0000]Message: Undefined variable: config[/color]
[color=#ff0000]Filename: libraries/grocery_crud.php[/color]
[color=#ff0000]Line Number: 2373[/color]

I'm running on Local machine.

I have made sure that all the files required by Grocery CRUD are there.

But the error still persists, saying "[color=#FF0000]failed to open stream: No such file or directory[/color]" although the files are clearly there!

Can someone please shed some light as to what went wrong?












Thanks very much!

victor
  • profile picture
  • Member

Posted 18 September 2012 - 06:48 AM

which version of the library you are using?

loyalty
  • profile picture
  • Member

Posted 18 September 2012 - 07:37 AM

Latest stable (1.3.1).

I'm also using Codeigniter 2.1.2

I even tried a fresh copy of CodeIgniter and simply merged Grocery CRUD's files into the project.

But still not working.

(The database + all tables are in place of course).

Thanks!

victor
  • profile picture
  • Member

Posted 18 September 2012 - 07:50 AM

Maybe your index.php file isn't in the same folder with the folder "assets".

loyalty
  • profile picture
  • Member

Posted 18 September 2012 - 08:24 AM

Hi,

The "index.php" was in the same folder (root) as "assets" folder.

But it's still not working :-(

Cheers

victor
  • profile picture
  • Member

Posted 18 September 2012 - 12:37 PM

try include this file in index.php. But don't use this library in your test controller.

loyalty
  • profile picture
  • Member

Posted 20 September 2012 - 23:34 PM

Hey Victor,

I tried including the grocery crud library in the "index.php" file in the root of the project,
like so:


require_once $application_folder.'/'.'libraries/grocery_crud.php';


I also [u][b]commented out[/b][/u] the following line in the "examples.php" controller:


$this->load->library('grocery_CRUD');


Still doesn't work :-(

When I click on the "Customers" link, it brings up this error:

[color=#b22222][b]Fatal error[/b][font=Times][size=1]: Class 'grocery_CRUD' not found in [/size][/font][b]/Users/Mac25/Sites/test.local/application/controllers/examples.php[/b][font=Times][size=1] on line [/size][/font][b]74[/b][/color]

Can I find/download anywhere a fresh CI project that is already integrated with Grocery CRUD?

Thanks!