⚠ 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 forum is read-only and soon will be archived. ⚠


Member Since 19 Jul 2013
Offline Last Active May 30 2021 07:16 AM

#149547 Ooooops, something went wrong! If you can see this message, this is proba...

Posted teoj on 20 December 2019 - 05:26 PM

I now too much people talk about this problem ... but i cant found the solution. The file gcrud-enterprise.php has the good direction 'assets_folder' => base_url() . 'assets/grocery-crud-enterprise/', i only touch this.

Im working with codeigniter 3.1.11 and i have one aplication workin with grocerycrud not enterprise.

I put another controller to see working grocerycrud enterprise version. I follow the instruction for install with codeigniter 3. Put the config file the assets folder and copy the folder GroceryCrudEnterprise to libraries en application folder of codeigniter.


This is my controller ... normaly we use other databases now for this controller we use logsdb that it configured in database.php and working in other controller with grocerycrud no enterprise.


i use var_dump to see if there are some data in $output. Never has data only css and js that if i do a copy paste in the browser works..

you can see  ["isJSONResponse"]=> bool(false) in the begining.


i dont know the problem. Some one can help me please ... ? :wacko:


defined('BASEPATH') OR exit('No direct script access allowed');
include(APPPATH . 'libraries/GroceryCrudEnterprise/autoload.php');
use GroceryCrud\Core\GroceryCrud;
class Eprise extends CI_Controller {
public function index()
$this->_example_output((object)array('output' => '' , 'js_files' => array() , 'css_files' => array()));
private function _getDbData() {
$db = [];
include(APPPATH . 'config/database.php');
return [
'adapter' => [
'driver' => 'Pdo_Mysql',
'host' => $db['logsdb']['hostname'],
'database' => $db['logsdb']['database'],
'username' => $db['logsdb']['username'],
'password' => $db['logsdb']['password'],
'charset' => 'utf8'
private function _getGroceryCrudEnterprise($bootstrap = true, $jquery = true) {
$db = $this->_getDbData();
$config = include(APPPATH . 'config/gcrud-enterprise.php');
$groceryCrud = new GroceryCrud($config, $db);
return $groceryCrud;
public function _example_output($output = null)
if (isset($output->isJSONResponse) && $output->isJSONResponse) {
header('Content-Type: application/json; charset=utf-8');
echo $output->output;


public function logs()
$crud = $this->_getGroceryCrudEnterprise();
$crud->setSubject('Log', 'Logs');
$crud->columns('host', 'level', 'tag', 'program', 'datetime', 'msg');

$output = $crud->render();


Ooooops, something went wrong! If you can see this message, this is probably a misconfiguration in Grocery CRUD Enterprise!


" ["isJSONResponse"]=> bool(false) ["outputAsObject"]=> NULL ["js_files"]=> array(5) { ["4113a7c80b976fdf87110b015325b4b53af1556d"]=> string(77) "http://****.dominio....query/jquery.js" ["9a7a0253dc5ea7403d45a19f7dbbdb3d8b895a58"]=> string(83) "http://****.dominio....es/jquery-ui.js" ["5e2f8683648a691775da11e921bb57b57d4bb986"]=> string(90) "http://****.dominio....rnizr-custom.js" ["7e9bac346d5ec9ec9ba93a5900dbd7a6b125c7a0"]=> string(98) "http://****.dominio....7.13.e739744.js" ["148fa8f08be25d6f85782e491af2cf667ef14906"]=> string(87) "http://****.dominio....grocery-crud.js" } ["css_files"]=> array(3) { ["d8f504b12741bf67a119d9745b1dc3612092e60f"]=> string(85) "http://****.dominio....p/bootstrap.css" ["d9ff9fb4dc5d8a7b5215fe92652365c40489e5f5"]=> string(85) "http://****.dominio....i/jquery-ui.css" ["85fee42ffd854f5b8858c4f214eeab42b1ce61cc"]=> string(94) "http://****.dominio.....13.e739744.css" } }