Jump to content


Paks

Member Since 06 Jan 2012
Offline Last Active Jan 24 2012 06:52 PM
-----

Topics I've Started

Exception raise:

24 January 2012 - 06:25 PM

I uploaded my backend with grocery CRUD to a temp server on the internet, and setup codeigniter config vars and routes, but then, when I try to insert or update a data a exception raise

Fatal error: Uncaught exception 'Exception' with message 'On the state "insert" you must have post data' in /web/htdocs/xxx/home/demo/criteris/application/libraries/grocery_crud.php:1967
Stack trace:
#0 /web/htdocs/xxx/home/demo/criteris/application/libraries/grocery_crud.php(2679): grocery_States->getStateInfo()
#1 /web/htdocs/xxx/home/demo/criteris/application/controllers/admin.php(119): grocery_CRUD->render()
#2 [internal function]: Admin->glosari('insert')
#3 /web/htdocs/xxx/home/demo/criteris/system/core/CodeIgniter.php(359): call_user_func_array(Array, Array)
#4 /web/htdocs/xxx/home/demo/criteris/index.php(202): require_once('/web/htdocs/www...')
#5 {main}
  thrown in /web/htdocs/xxx/home/demo/criteris/application/libraries/grocery_crud.php on line 1967

I have check everything i can think off, global_xss_filtering is set to false

this is the form generated by Grocery

<form action='http://xxx/demo/criteris/admin/glosari/insert' method='post' id='crudForm' autocomplete='off' enctype="multipart/form-data">

this is the controller function
public function glosari()
   {
	  $this->grocery_crud->set_table('cri_glosari');
	  $output = $this->grocery_crud->render();
	  $this->layout_library->set_title('Glosari');
	  $this->layout_library->add_menu($this->menu_list,'Glosari');
	  $this->layout_library->view('cms_crud_view', $output, 'cms_crud_layout');
   }

I'm kind of ashamed because in my local apache server works like a charm...

Any clue on what I can be missing is more than welcome...
thanks in advance.

Bug? - Call to a member function result()

06 January 2012 - 12:36 AM

First of all... sorry by mi english... with that being said, i will try to expose my case.

I am receiving the next error




Fatal error: Call to a member function result() on a non-object in /htdocs/public/www/application/models/grocery_model.php on line 45



This happens to me only with the flexigrid theme.

I can see how the data is loaded ok, but then, at the bottom of the flexigrid theme, there is a spinner, i don't know how it works, may be is making some kind of request to the groceryCrud to validate the amount left, or loading more data... i don't know, but after i can see the data, it gets removed and the message is shown.

The line of code in grocery_model is

$results = $this->db->get($this->table_name)->result();


The most weird part is that i have another table, that work just as expected, and in my local system both are working fine.

I try to change the table in the controller that works by the one that doesn't but with no luck at all, same error. Tried to dump de data and delete the table and upload it agani... even try to wipe out the entire code and upload it agan and the error persist.

I change the theme to datatables and work fine... i think this is just personal! i need to know what is going wrong.

So please, any kind of help will be much welcome, on how to track the problem or if some one has experience the same issue. I just hope that this is not a lame error bye me.

If you need more info i will be glad to give the adress and the source.

Thanks in advances and btw... awesome work!