⚠ 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

Error when placing system and application



HenryJahja

HenryJahja
  • profile picture
  • Member

Posted 31 May 2013 - 17:13 PM

Hello, and thanks for the developers of GCRUD lib.

First of all, I'm sorry for my bad english.

 

I have a question. 

 

I installed CI and GCRUD today.

Even I once installed them both on my own laptop with XAMPP apache, i have no problem, I placed in the same directory of index.php

 

today, i install them both on my web server. it got errors.

 

I'm using CPanel.

Here's my directory placement

[attachment=562:ci.bmp]

 

i put index on public folder, i config it on index.php like this

$system_path = '../system';
$application_folder = '../application';

(and as addtitional info, i made a sub domain right to my ci's public directory.)

everything went ok when i open examples controller, it shows the menus.

but in the end, when i open ci.(mysite).com/index.php/examples/film_management, i got these errors

A PHP Error was encountered

Severity: Warning

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

Filename: libraries/grocery_crud.php

Line Number: 3485

A PHP Error was encountered

Severity: Warning

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

Filename: libraries/grocery_crud.php

Line Number: 3485

A PHP Error was encountered

Severity: Warning

Message: include() [function.include]: Failed opening 'assets/grocery_crud/languages/english.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php')

Filename: libraries/grocery_crud.php

Line Number: 3485

A PHP Error was encountered

Severity: Notice

Message: Undefined variable: lang

Filename: libraries/grocery_crud.php

Line Number: 3487

A PHP Error was encountered

Severity: Warning

Message: Invalid argument supplied for foreach()

Filename: libraries/grocery_crud.php

Line Number: 3487

A PHP Error was encountered

Severity: Notice

Message: Undefined index: form_inactive

Filename: libraries/grocery_crud.php

Line Number: 3555

A PHP Error was encountered

Severity: Notice

Message: Undefined index: form_active

Filename: libraries/grocery_crud.php

Line Number: 3555

A PHP Error was encountered

Severity: Warning

Message: include(assets/grocery_crud/themes/datatables/config.php) [function.include]: failed to open stream: No such file or directory

Filename: libraries/grocery_crud.php

Line Number: 2489

A PHP Error was encountered

Severity: Warning

Message: include(assets/grocery_crud/themes/datatables/config.php) [function.include]: failed to open stream: No such file or directory

Filename: libraries/grocery_crud.php

Line Number: 2489

A PHP Error was encountered

Severity: Warning

Message: include() [function.include]: Failed opening 'assets/grocery_crud/themes/datatables/config.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php')

Filename: libraries/grocery_crud.php

Line Number: 2489

A PHP Error was encountered

Severity: Notice

Message: Undefined variable: config

Filename: libraries/grocery_crud.php

Line Number: 2491

A PHP Error was encountered

Severity: Warning

Message: Cannot modify header information - headers already sent by (output started at /ci/system/core/Exceptions.php:185)

Filename: core/Common.php

Line Number: 442

An Error Was Encountered

The template does not exist. Please check your files and try again. --- #0 /ci/application/libraries/grocery_crud.php(3916): grocery_CRUD_Layout->set_basic_Layout() #1 /ci/application/controllers/examples.php(43): grocery_CRUD->render() #2 [internal function]: Examples->offices_management() #3 /ci/system/core/CodeIgniter.php(359): call_user_func_array(Array, Array) #4 /ci/public/index.php(202): require_once('') #5 {main}

can you give me the solution? i can ask me additional information if you want,


davidoster

davidoster
  • profile picture
  • Member

Posted 01 June 2013 - 08:22 AM

Hello and welcome to the forums.

Are you running this under a sandbox?

A sandbox doesn't necessarily work as expected!


HenryJahja

HenryJahja
  • profile picture
  • Member

Posted 16 June 2013 - 01:58 AM

Hello and welcome to the forums.

Are you running this under a sandbox?

A sandbox doesn't necessarily work as expected!

 

Sorry for a late reply!

 

I was solving this problem about a day after I post this, but (my bad) i wasnt updating the thread..

 

So, what i do is place the grocerycrud assets right in the same directory as the .index.php

i supposed to just move the system and application folder in the folder where i mention(declare) it inside index.php file,

while other files actually should be placed on the same folder with my index.php file (in my case, public_html folder)

 

it works fine now.

 

Anyway, thank you for your reply!

Regards