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 » Sun May 25, 2014 11:57 am

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: 14752
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: search function sometimes not working

Post by Thorsten » Sun May 25, 2014 6:35 pm

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 » Thu May 29, 2014 6:40 am

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

BR
Amit

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

Re: search function sometimes not working

Post by Thorsten » Thu May 29, 2014 9:22 am

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 » Thu May 29, 2014 1:39 pm

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: 14752
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: search function sometimes not working

Post by Thorsten » Fri May 30, 2014 1:05 pm

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 » Fri May 30, 2014 2:03 pm

stop, the site isnt upload/
"ERR_CONTENT_DECODING_FAILED"

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

Re: search function sometimes not working

Post by Thorsten » Fri May 30, 2014 3:37 pm

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 » Fri May 30, 2014 10:34 pm

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 » Fri May 30, 2014 10:45 pm

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