⚠ 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

GC not working in local Codeigniter 3.0.6



pbracho
  • profile picture
  • Member

Posted 17 May 2016 - 16:13 PM

Hi. 

I recently made a fresh installation of GC an ci 3.0.6, for testing purposes. I've been using ci for about 6 months, and works ok in my development environment, on Ubuntu 16.04, Apache2, php 5.6 and mysql 5.7.12.

I make the installation just llike is described in http://www.grocerycrud.com/documentation/codeigniter_installation, The example show the lists ok, but when i want to perform an action, nothing happens, in flexigrid shows an error, and in datatables just stay freeze. Even, when try to delete a record, it happens, but don't refresh the view, and no message about the successful operation.

 

Same way the pagination do not work at all..

 

Somebody could help?

 

I really like to implement this tool in my work, but i don't know why is not working.

 

Thanks.

 

Some captures: 


Amit Shah
  • profile picture
  • Member

Posted 19 May 2016 - 12:35 PM

check if the configuration for the application is done / set right.. if so - it have been experienced .. the stuff have no issue working on the same.


pbracho
  • profile picture
  • Member

Posted 20 May 2016 - 00:59 AM

Thanks Amit, I've checked the config step by step and and found was a problem with index.php. When I try to remove it and use a .htaccess file that was working whit other web app and codeigniter 3.0.6, well, the problem happens. On the other hand, when let untouched the index.php, work great...! So, is possible remove the index.php and keep working grocery crud? At this time only works (form me) keeping the index.php...

Thanks a lot.


Amit Shah
  • profile picture
  • Member

Posted 20 May 2016 - 17:47 PM

check the config.php .. thats where codeigniter have been a bit stricter over the last release.. it will follow very precisely the configurations. I have been using CI 3.x with GC .. and i never faced the problem.. 1 question .. do u face the problem locally or you face the problem over a specific server...It will be interesting to see how it starts malfunctioning like this and why ... 

if u can share the application with just 1 GC based controller / db and the CI packed in a zip.. i would surely come back with the solution for the same and i can register the same as a case to look in for troubleshooting.

 

Waiting for update .. 

 

Happy GCing :)


pbracho
  • profile picture
  • Member

Posted 24 May 2016 - 04:17 AM

Hi Amit, i was trying to make it work, and fail again. The only way is enabling index.php in the config. But if i try to make it work without it, fails. I was working it in local environment (LAMP, Ubuntu 16.04, Apache2, php 5.6 and mysql 5.7.12, Codeigniter 3.0.6). I recently put the whole test site in a web server online, and work great!!! Seems the problem is only in my local environment. Any Idea?. Here is a zip with the site just like it is in local and web environment http://groc.pbracho.com.ve/assets/My_test.zip . Thanks a lot. I really like to have it working in my development pc.

 


Amit Shah
  • profile picture
  • Member

Posted 24 May 2016 - 07:07 AM

If i am not mistakened .. what the issue u are facing is clearly issue for AllowOverride option configured in apache...

if u wana have a seemless local development without index.php in the way..

do 1 simple thing.. find the apache confi file / filder .. for the root directory.. set AllowOverride to All from None .. 

restart it.. that should resolve the stuff!!


pbracho
  • profile picture
  • Member

Posted 24 May 2016 - 14:45 PM

Amit... thanks a lot. Reviewing the problem, and looking for the trouble in the apache config files, i discover that the mod_rewrite wasn't enabled! Can you believe it? So, just enable mod_rewrite on local an work seamlessly... Appreciate your help... And now to enjoy the benefits of Grocery_crud...


Amit Shah
  • profile picture
  • Member

Posted 25 May 2016 - 10:46 AM

Happy Gcing :)