⚠ In case you've missed it we are migrating 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. ⚠

Bootstrap Theme - Search not working

bootstrap-theme search

  • Please log in to reply
1 reply to this topic

#1 fdias


    grocery CRUD Addict

  • Members
  • PipPipPip
  • 93 posts

Posted 21 February 2016 - 02:01 AM



I purchased the Bootstrap theme, but when I test it with the Examples the search function as well as the field search will not work. It shows the loading message, but nothing happens.


If I change themes the search works fine.Funny thing is the search works on the Bootstrap demo at the GC site,but I have no idea why it doesn't on my tests with the Examples controller.



Any help is greatly appreciated!



#2 fdias


    grocery CRUD Addict

  • Members
  • PipPipPip
  • 93 posts

Posted 22 February 2016 - 12:05 PM

If you can't help, please do not reply. You are a SPAMMER and reply the same shit in all posts! Hope you get banned, because I for one am not going anywhere near your stupid links!




I believe I found the problem with the search. I had CSRF ENABLED on my config.php for codeigniter, as bellow:
| Cross Site Request Forgery
| Enables a CSRF cookie token to be set. When set to TRUE, token will be
| checked on a submitted form. If you are accepting user data, it is strongly
| recommended CSRF protection be enabled.
| 'csrf_token_name' = The token name
| 'csrf_cookie_name' = The cookie name
| 'csrf_expire' = The number in seconds the token should expire.
| 'csrf_regenerate' = Regenerate token on every submission
| 'csrf_exclude_uris' = Array of URIs which ignore CSRF checks
$config['csrf_protection'] = TRUE;
$config['csrf_token_name'] = 'csrf_test_name';
$config['csrf_cookie_name'] = 'csrf_cookie_name';
$config['csrf_expire'] = 7200;
$config['csrf_regenerate'] = FALSE;
The thing is only bootstrap theme does not allow it to be enabled in order to search. With the other themes the search works fine.
I believe this is a bug and it should be fixed, because CSRF is a valid security precaution.

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users