Search Not working because Catagory = %25

Please report bugs here!

Moderator: Thorsten

Post Reply
ManicD
Posts: 5
Joined: Wed Feb 02, 2011 3:09 pm

Search Not working because Catagory = %25

Post by ManicD »

Ok so the site is

http://phpfaq.ashleyunwin.com/

if you run any search from the main page it fails with a 406 Error

the search URL is http://phpfaq.ashleyunwin.com/?search=o ... ion=search

However if i modify the search URL and change it to say "searchcategory=%25"

like this http://phpfaq.ashleyunwin.com/?search=o ... ion=search

the it works fine.

when the home page renders it compiles with the html

<form id="search" action="?action=search" method="get">
<input name="search" id="searchfield" size="30" type="text">
<input name="submit" value="Search" type="submit">
<input name="searchcategory" value="%" type="hidden">

<input name="action" value="search" type="hidden">
</form>

Thus the search category already has a value of "%"
If I Use the firefox web developer toolbar with the display form details function, I can remove the % value and it works fine.

I have tried a full reinstall of the FAQ (unfortunately I didn't test it before i restored my database) but it still does not work (even with the default templates).

How do i get rid of it?????


ManicD
Last edited by ManicD on Wed Feb 02, 2011 5:00 pm, edited 1 time in total.
Thorsten
Posts: 15725
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Search Not working because Catagory = %25

Post by Thorsten »

Hi,

this is strange, it seems your webserver does not accept the "%" in the request. What operating system and what webserver do you use?

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
ManicD
Posts: 5
Joined: Wed Feb 02, 2011 3:09 pm

Re: Search Not working because Catagory = %25

Post by ManicD »

Email Accounts 2 / ∞
0
Subdomains 8 / ∞
0
Parked Domains 0 / ∞
0
Addon Domains 0 / ∞
0
FTP Accounts 0 / ∞
0
SQL Databases 10 / ∞
0
Mailing Lists 0 / ∞
0
MySQL Disk Space 2.21 MB
Hosting package default
Server Name uscentral21
cPanel Version 11.28.76
Theme x3
Apache version 2.2.16
PHP version 5.2.14
MySQL version 5.0.91-community
Architecture x86_64
Operating system linux
Shared IP Address 74.86.183.204
Path to sendmail /usr/sbin/sendmail
Path to Perl /usr/bin/perl
Perl version 5.8.8
Kernel version 2.6.18-194.26.1.el5
cPanel Pro 1.0 (RC1)


Using the Host9 package:
http://www.hostnine.com/web-hosting/
ManicD
Posts: 5
Joined: Wed Feb 02, 2011 3:09 pm

Re: Search Not working because Catagory = %25

Post by ManicD »

further update

http://phpfaq.ashleyunwin.com/?search=% ... ion=search

searching for the % symbol fails as well even without the category set.
Thorsten
Posts: 15725
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Search Not working because Catagory = %25

Post by Thorsten »

Hi,

you should talk to your webhoster... you're the first one with a 406 error which doesn't make any sense. It's working on thousends of installations except yours.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
ManicD
Posts: 5
Joined: Wed Feb 02, 2011 3:09 pm

Re: Search Not working because Catagory = %25

Post by ManicD »

I have put in a ticket with them seconds ago, but was hoping you might have a general direction to be looking.... apache? php? sql?
Thorsten
Posts: 15725
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Search Not working because Catagory = %25

Post by Thorsten »

Hi,

should be a strange apache configuration.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
ManicD
Posts: 5
Joined: Wed Feb 02, 2011 3:09 pm

Re: Search Not working because Catagory = %25

Post by ManicD »

Issue Resolved, the webhost support said he "change the account permissions" but didn't elaborate on that.

Thanks for your help.
Thorsten
Posts: 15725
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Search Not working because Catagory = %25

Post by Thorsten »

Hi,

okay, thanks for the feedback. :-)

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
jpunnett
Posts: 1
Joined: Fri Mar 18, 2011 9:06 pm

Re: Search Not working because Catagory = %25

Post by jpunnett »

I am having the same problem but for me changing %25 to %24 (or 23, 22, etc.) allows the search to go OK. Ihave also posted a request to my hosting provider but it doesn't sound like the same problem (its not the % causing the issue). My site is http://www.gxglobal.ca/kb.

Thanks
jason102178
Posts: 200
Joined: Tue Nov 02, 2010 9:08 am
Location: United States-Ohio
Contact:

Re: Search Not working because Catagory = %25

Post by jason102178 »

jpunnett I noticed the 406 error has been fixed, did you ever get a response from your hosting company. and if you could post the fix you used to solve the issue.

Thanks

Jason
phpMyFAQ Quality Assurance / Forum Moderator
Amazon.com Wishlist
Post Reply