⚠ 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

Bootstrap Theme - Search not working



fdias
  • profile picture
  • Member

Posted 21 February 2016 - 02:01 AM

Hi,

 

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!

 

fdias


fdias
  • profile picture
  • Member

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!

 

[UPDATE ON THE BOOTSTRAP SEARCH ISSUE]

 

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.