installation problem on CI 2.0.3
- Single Page
Posted 20 October 2011 - 03:37 AM
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..
Posted 20 October 2011 - 15:54 PM
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
Posted 24 October 2011 - 11:18 AM
its working now
time to start my project using this cool library
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
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
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
Severity: Notice
Message: Undefined variable: lang
Filename: libraries/Grocery_CRUD.php
Line Number: 3880
Severity: Warning
Message: Invalid argument supplied for foreach()
Filename: libraries/Grocery_CRUD.php
Line Number: 3880
Severity: Notice
Message: Undefined index: form_inactive
Filename: libraries/Grocery_CRUD.php
Line Number: 3948
Severity: Notice
Message: Undefined index: form_active
Filename: libraries/Grocery_CRUD.php
Line Number: 3948
Severity: Notice
Message: Undefined index: list_record
Filename: libraries/Grocery_CRUD.php
Line Number: 3948
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
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
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
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
Posted 15 September 2014 - 04:02 AM
Thanks Johnny, You has solved my problem.... :)