Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Codeigniter Database Cache and Grocery Crud #246

Open
shahmir opened this issue Oct 10, 2013 · 4 comments
Open

Codeigniter Database Cache and Grocery Crud #246

shahmir opened this issue Oct 10, 2013 · 4 comments

Comments

@shahmir
Copy link

shahmir commented Oct 10, 2013

I am using grocery crud in my codeigniter project. It was working fine until I switched on "Database Caching".

Rest of project still works fine but I get following error whenever I open grocery crud controller

Fatal error: Cannot access empty property in pathToProject\application\libraries\grocery_crud.php on line 1441

querycache

@harpreetsb
Copy link

similar problem, Urgent help required.
as soon as i enable database caching
i get error on
Filename: /home/vproud/public_html/models/grocery_crud_model.php

Line Number: 87

@raviraiya
Copy link

Hi
i m also getting same error.. Please fix this ASAP. we are not able to use database cache in application

@raviraiya
Copy link

Hi
i found solution of this problem. you need to use following code :
$crud->set_primary_key('primery_key_name','tablename');

like i have a task table : $crud->set_primary_key('task_id','task');

you need to define which is your primary key in your table

@PaulKish
Copy link

This bug still exists, I have been able to still have caching for the rest of the application by adding $this->db->cache_off(); in the grocery_crud_model.php file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants