⚠ 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

installation problem on CI 2.0.3



lenz_to_ion

lenz_to_ion
  • profile picture
  • Member

Posted 20 October 2011 - 03:37 AM

hi everyone..

i planing to use v-1.1.3 on my first CI project..
but i get this error on try to setup the example project :



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

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

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

Severity: Warning
Message: include() [function.include]: Failed opening 'assets/grocery_crud/themes/flexigrid/config.php' for inclusion (include_path='.:/opt/lampp/lib/php')
Filename: libraries/grocery_crud.php
Line Number: 1595

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

Severity: Notice
Message: Undefined variable: config
Filename: libraries/grocery_crud.php
Line Number: 1597

[b]Fatal error[/b]: Uncaught exception 'Exception' with message 'The template does not exist. Please check your files and try again.' in /opt/lampp/htdocs/CodeIgniter_2.0.3/application/libraries/grocery_crud.php:1013 Stack trace: #0 /opt/lampp/htdocs/CodeIgniter_2.0.3/application/libraries/grocery_crud.php(2618): grocery_Layout->set_basic_Layout() #1 /opt/lampp/htdocs/CodeIgniter_2.0.3/application/controllers/examples.php(86): grocery_CRUD->render() #2 [internal function]: Examples->customers_management() #3 /opt/lampp/htdocs/CodeIgniter_2.0.3/system/core/CodeIgniter.php(339): call_user_func_array(Array, Array) #4 /opt/lampp/htdocs/CodeIgniter_2.0.3/index.php(202): require_once('/opt/lampp/htdo...') #5 {main} thrown in [b]/opt/lampp/htdocs/CodeIgniter_2.0.3/application/libraries/grocery_crud.php[/b] on line [b]1013[/b]


please help to figured out and fix the problem...


thanks..

web-johnny

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

Posted 20 October 2011 - 15:54 PM

[quote name='lenz_to_ion' timestamp='1319081877' post='4']
hi everyone..

i planing to use v-1.1.3 on my first CI project..
but i get this error on try to setup the example project :



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

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

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

Severity: Warning
Message: include() [function.include]: Failed opening 'assets/grocery_crud/themes/flexigrid/config.php' for inclusion (include_path='.:/opt/lampp/lib/php')
Filename: libraries/grocery_crud.php
Line Number: 1595

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

Severity: Notice
Message: Undefined variable: config
Filename: libraries/grocery_crud.php
Line Number: 1597

[b]Fatal error[/b]: Uncaught exception 'Exception' with message 'The template does not exist. Please check your files and try again.' in /opt/lampp/htdocs/CodeIgniter_2.0.3/application/libraries/grocery_crud.php:1013 Stack trace: #0 /opt/lampp/htdocs/CodeIgniter_2.0.3/application/libraries/grocery_crud.php(2618): grocery_Layout->set_basic_Layout() #1 /opt/lampp/htdocs/CodeIgniter_2.0.3/application/controllers/examples.php(86): grocery_CRUD->render() #2 [internal function]: Examples->customers_management() #3 /opt/lampp/htdocs/CodeIgniter_2.0.3/system/core/CodeIgniter.php(339): call_user_func_array(Array, Array) #4 /opt/lampp/htdocs/CodeIgniter_2.0.3/index.php(202): require_once('/opt/lampp/htdo...') #5 {main} thrown in [b]/opt/lampp/htdocs/CodeIgniter_2.0.3/application/libraries/grocery_crud.php[/b] on line [b]1013[/b]


please help to figured out and fix the problem...


thanks..
[/quote]

This is probably because you didn't copy all the files to your root folder. Make sure that your project has all the files from the zip folder. Especially assets. The library don't work without those files to your project. If this doesn't work for you, try to download from the beginning codeigniter 2.0.3 and after this just copy the grocery CRUD files and folders to your project. Your project will look like this below:

website_folder/
–––– application/
–––––––– config/
–––––––––––– autoload.php
–––––––––––– ...
–––––––––––– datatables.php
–––––––––––– doctypes.php
–––––––––––– flexigrid.php
–––––––––––– foreign_chars.php
–––––––––––– grocery_crud.php
–––––––––––– ...
–––––––– controllers/
–––––––––––– examples.php
–––––––––––– index.html
–––––––––––– welcome.php
–––––––– libraries/
–––––––––––– grocery_crud.php
–––––––––––– index.html
–––––––– models/
–––––––––––– grocery_model.php
–––––––––––– index.html
–––––––– views/
–––––––––––– example.php
–––––––––––– index.html
–––––––––––– welcome_message.php
–––– assets/
–––––––– grocery_crud/
–––––––––––– css/
–––––––––––– js/
–––––––––––– texteditor/
–––––––––––– themes/
–––––––– uploads/
–––––––– index.html
–––– system/
–––– user_guide/
–––– change_log.txt
–––– example_database.sql
–––– index.php
–––– licence-grocery-crud.txt
–––– license.txt

lenz_to_ion

lenz_to_ion
  • profile picture
  • Member

Posted 24 October 2011 - 11:18 AM

Thanks so much master..

its working now :)

time to start my project using this cool library :D

jhonveryfied

jhonveryfied
  • profile picture
  • Member

Posted 04 September 2014 - 22:33 PM

Hi johnyy I have the same problem, I am working with the template manager from philsturgeon (backmodules and frontmodules) and It´s my error, please help me

 

:( . Thanks

 

 

 

 

A PHP Error was encountered

Severity: Warning

Message: include(assets/grocery_crud/languages/spanish.php): failed to open stream: No such file or directory

Filename: libraries/Grocery_CRUD.php

Line Number: 3878

A PHP Error was encountered

Severity: Warning

Message: include(): Failed opening 'assets/grocery_crud/languages/spanish.php' for inclusion (include_path='.;C:\xampp\php\PEAR')

Filename: libraries/Grocery_CRUD.php

Line Number: 3878

A PHP Error was encountered

Severity: Notice

Message: Undefined variable: lang

Filename: libraries/Grocery_CRUD.php

Line Number: 3880

A PHP Error was encountered

Severity: Warning

Message: Invalid argument supplied for foreach()

Filename: libraries/Grocery_CRUD.php

Line Number: 3880

A PHP Error was encountered

Severity: Notice

Message: Undefined index: form_inactive

Filename: libraries/Grocery_CRUD.php

Line Number: 3948

A PHP Error was encountered

Severity: Notice

Message: Undefined index: form_active

Filename: libraries/Grocery_CRUD.php

Line Number: 3948

A PHP Error was encountered

Severity: Notice

Message: Undefined index: list_record

Filename: libraries/Grocery_CRUD.php

Line Number: 3948

A PHP Error was encountered

Severity: Warning

Message: include(public/grocery_crud/themes/flexigrid/config.php): failed to open stream: No such file or directory

Filename: libraries/Grocery_CRUD.php

Line Number: 2761

A PHP Error was encountered

Severity: Warning

Message: include(): Failed opening 'public/grocery_crud/themes/flexigrid/config.php' for inclusion (include_path='.;C:\xampp\php\PEAR')

Filename: libraries/Grocery_CRUD.php

Line Number: 2761

A PHP Error was encountered

Severity: Notice

Message: Undefined variable: config

Filename: libraries/Grocery_CRUD.php

Line Number: 2763


Fatal error: Uncaught exception 'Exception' with message 'The template does not exist. Please check your files and try again.' in C:\xampp\htdocs\sysbite.com\application\libraries\Grocery_CRUD.php:1501 Stack trace: #0 C:\xampp\htdocs\sysbite.com\application\libraries\Grocery_CRUD.php(4310): grocery_CRUD_Layout->set_basic_Layout() #1 C:\xampp\htdocs\sysbite.com\application\back-modules\user\controllers\user.php(29): Grocery_CRUD->render() #2 [internal function]: User->index() #3 C:\xampp\htdocs\sysbite.com\system\core\CodeIgniter.php(359): call_user_func_array(Array, Array) #4 C:\xampp\htdocs\sysbite.com\admin\index.php(219): require_once('C:\\xampp\\htdocs...') #5 {main} thrown in C:\xampp\htdocs\sysbite.com\application\libraries\Grocery_CRUD.php on line 1501


web-johnny

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

Posted 08 September 2014 - 08:27 AM

Hello there,

 

What version of Codeigniter are you using? What version of grocery CRUD?

Also I am not sure but I think that phil's template is not actively developed anymore. You can try:

- Download latest codeigniter

- Download latest grocery CRUD

- Use Codeigniter Simplicity instead of Phill's template library

 

Thanks

Johnny


jhonveryfied

jhonveryfied
  • profile picture
  • Member

Posted 15 September 2014 - 04:02 AM

Thanks Johnny, You has solved my problem....  :)