search function sometimes not working

In this board you can talk about general questions about phpMyFAQ

Moderator: Thorsten

Post Reply
amitm
Posts: 27
Joined: Sat Feb 15, 2014 8:51 am

search function sometimes not working

Post by amitm »

hi,
strange thing - with my laptop at some network the search function is and on other it isnt working, why?
is it depend on firewall?

i konw that i asked that, but i cant find a way to do it, i want that each person that browse my site wii get the heb lang site. when they got the eng site thay see an empthy site and dont understand what to do.
how can i do that it will be the default.
BR
Amit
Thorsten
Posts: 15560
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: search function sometimes not working

Post by Thorsten »

Hi,

you can set the Hebrew language as default and you should disable the automatic language detection.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
amitm
Posts: 27
Joined: Sat Feb 15, 2014 8:51 am

Re: search function sometimes not working

Post by amitm »

Hi,
sorry, but i cant find how to disable the automatic language detection.

BR
Amit
Thorsten
Posts: 15560
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: search function sometimes not working

Post by Thorsten »

Hi,

it's "אפשר העברת נתונים אוטומטית" in Hebrew, in English "Main configruation". I hope the translation is correct in phpMyFAQ.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
amitm
Posts: 27
Joined: Sat Feb 15, 2014 8:51 am

Re: search function sometimes not working

Post by amitm »

Hi,

thanks, i unchecked the checkbox and the language continue to detected, so i erased those lines as you mention in one of your posts:
// Detect the browser's language
if ((true === $configDetection) && self::isASupportedLanguage($this->acceptedLanguage) ) {
$_lang['detection'] = strtolower($this->acceptedLanguage);
}

and the site stop working

BR
Amit
Thorsten
Posts: 15560
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: search function sometimes not working

Post by Thorsten »

Hi,

what do you mean by "stop working"?

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
amitm
Posts: 27
Joined: Sat Feb 15, 2014 8:51 am

Re: search function sometimes not working

Post by amitm »

stop, the site isnt upload/
"ERR_CONTENT_DECODING_FAILED"
Thorsten
Posts: 15560
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: search function sometimes not working

Post by Thorsten »

Hi,

the error "ERR_CONTENT_DECODING_FAILED" is not from phpMyFAQ. Did you save the file as UTF-8? Looks like you broke the gzip compression.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
amitm
Posts: 27
Joined: Sat Feb 15, 2014 8:51 am

Re: search function sometimes not working

Post by amitm »

Hi,
i saved at utf8 and now the site work, although i moved out the lines of language detect as you instruct at github, i am getting the english version and not my heb version.
i left to lang files heb and eng. why it choose eng i dont know.

www.historyfaq.info

BR
Amit
amitm
Posts: 27
Joined: Sat Feb 15, 2014 8:51 am

Re: search function sometimes not working

Post by amitm »

solved

the problem was that at the admin, i used the translated version, and in the translated version from some reason there is no language chooser.
now, when i opened the admin, i opened it in english and befront of my eyes, there it was the language chooser.

SORRY for all the troubles that i am doing and a BIG thank you for your hard work.

BR

Amit
Post Reply