GeoDirectory SupportSearch has stopped working? – GeoDirectory Support https://wpgeodirectory.com/support/topic/search-has-stopped-working/feed Sun, 28 Dec 2025 15:11:38 +0000 http://bbpress.org/?v=2.5.14-6684 en-US https://wpgeodirectory.com/support/topic/search-has-stopped-working/#post-13127 <![CDATA[Search has stopped working?]]> https://wpgeodirectory.com/support/topic/search-has-stopped-working/#post-13127 Tue, 26 Aug 2014 02:06:38 +0000 purpleedge Not sure what has happened, but I’m getting no search results now?

I’ll post a link in the next message if you can have a look?

]]>
https://wpgeodirectory.com/support/topic/search-has-stopped-working/#post-13128 <![CDATA[Reply To: Search has stopped working?]]> https://wpgeodirectory.com/support/topic/search-has-stopped-working/#post-13128 Tue, 26 Aug 2014 02:08:09 +0000 purpleedge https://wpgeodirectory.com/support/topic/search-has-stopped-working/#post-13129 <![CDATA[Reply To: Search has stopped working?]]> https://wpgeodirectory.com/support/topic/search-has-stopped-working/#post-13129 Tue, 26 Aug 2014 02:11:58 +0000 purpleedge OK, it’s working on localhost, but not at live site, so I guess something needs to be available for it to work? Any idea what I need to turn on?

The localhost install is a clone of the live site, so it isn’t a setting in wp or gd that has changed.

]]>
https://wpgeodirectory.com/support/topic/search-has-stopped-working/#post-13140 <![CDATA[Reply To: Search has stopped working?]]> https://wpgeodirectory.com/support/topic/search-has-stopped-working/#post-13140 Tue, 26 Aug 2014 03:27:18 +0000 Guust I’ll alert Stiofan.

]]>
https://wpgeodirectory.com/support/topic/search-has-stopped-working/#post-13143 <![CDATA[Reply To: Search has stopped working?]]> https://wpgeodirectory.com/support/topic/search-has-stopped-working/#post-13143 Tue, 26 Aug 2014 04:01:50 +0000 purpleedge Thanks Guust

]]>
https://wpgeodirectory.com/support/topic/search-has-stopped-working/#post-13147 <![CDATA[Reply To: Search has stopped working?]]> https://wpgeodirectory.com/support/topic/search-has-stopped-working/#post-13147 Tue, 26 Aug 2014 05:19:37 +0000 purpleedge I’ve found the cause, if not the solution 🙂

I installed a clone on a sub domain and it worked fine.

I has a look at the htaccess file and ithemes security had added some restrictions on the live site, after I removed those the search is working again.

This is what I removed, any suggestions as to what might be interfering with the search would be appreciated, I feel a bit naked without ithemes security!


# BEGIN iThemes Security
	# BEGIN Tweaks
		# Rules to block access to WordPress specific files
		<files .htaccess>
			Order allow,deny
			Deny from all
		</files>
		<files readme.html>
			Order allow,deny
			Deny from all
		</files>
		<files readme.txt>
			Order allow,deny
			Deny from all
		</files>
		<files install.php>
			Order allow,deny
			Deny from all
		</files>
		<files wp-config.php>
			Order allow,deny
			Deny from all
		</files>
		
		# Rules to disable directory browsing
		Options -Indexes
		
		<IfModule mod_rewrite.c>
			RewriteEngine On
		
			# Rules to protect wp-includes
			RewriteRule ^wp-admin/includes/ - [F]
			RewriteRule !^wp-includes/ - [S=3]
			RewriteCond %{SCRIPT_FILENAME} !^(.*)wp-includes/ms-files.php
			RewriteRule ^wp-includes/[^/]+.php$ - [F]
			RewriteRule ^wp-includes/js/tinymce/langs/.+.php - [F]
			RewriteRule ^wp-includes/theme-compat/ - [F]
		
			# Rules to prevent php execution in uploads
			RewriteRule ^(.*)/uploads/(.*).php(.?) - [F]
		
			# Rules to block unneeded HTTP methods
			RewriteCond %{REQUEST_METHOD} ^(TRACE|DELETE|TRACK) [NC]
			RewriteRule ^(.*)$ - [F]
		
			# Rules to block suspicious URIs
			RewriteCond %{QUERY_STRING} ../ [NC,OR]
			RewriteCond %{QUERY_STRING} ^.*.(bash|git|hg|log|svn|swp|cvs) [NC,OR]
			RewriteCond %{QUERY_STRING} etc/passwd [NC,OR]
			RewriteCond %{QUERY_STRING} boot.ini [NC,OR]
			RewriteCond %{QUERY_STRING} ftp:  [NC,OR]
			RewriteCond %{QUERY_STRING} http:  [NC,OR]
			RewriteCond %{QUERY_STRING} https:  [NC,OR]
			RewriteCond %{QUERY_STRING} (<|%3C).*script.*(>|%3E) [NC,OR]
			RewriteCond %{QUERY_STRING} mosConfig_[a-zA-Z_]{1,21}(=|%3D) [NC,OR]
			RewriteCond %{QUERY_STRING} base64_encode.*(.*) [NC,OR]
			RewriteCond %{QUERY_STRING} ^.*([|]|(|)|<|>|ĂȘ|"|;|?|*|=$).* [NC,OR]
			RewriteCond %{QUERY_STRING} ^.*("|'|<|>|\|{||).* [NC,OR]
			RewriteCond %{QUERY_STRING} ^.*(%24&x).* [NC,OR]
			RewriteCond %{QUERY_STRING} ^.*(127.0).* [NC,OR]
			RewriteCond %{QUERY_STRING} ^.*(globals|encode|localhost|loopback).* [NC,OR]
			RewriteCond %{QUERY_STRING} ^.*(request|concat|insert|union|declare).* [NC]
			RewriteCond %{QUERY_STRING} !^loggedout=true
			RewriteCond %{QUERY_STRING} !^action=jetpack-sso
			RewriteCond %{QUERY_STRING} !^action=rp
			RewriteCond %{HTTP_COOKIE} !^.*wordpress_logged_in_.*$
			RewriteCond %{HTTP_REFERER} !^http://maps.googleapis.com(.*)$
			RewriteRule ^(.*)$ - [F]
		
			# Rules to block foreign characters in URLs
			RewriteCond %{QUERY_STRING} ^.*(%0|%A|%B|%C|%D|%E|%F).* [NC]
			RewriteRule ^(.*)$ - [F]
		
			# Rules to help reduce spam
			RewriteCond %{REQUEST_METHOD} POST
			RewriteCond %{REQUEST_URI} ^(.*)wp-comments-post.php*
			RewriteCond %{HTTP_REFERER} !^(.*)com.au.* 
			RewriteCond %{HTTP_REFERER} !^http://jetpack.wordpress.com/jetpack-comment/ [OR]
			RewriteCond %{HTTP_USER_AGENT} ^$
			RewriteRule ^(.*)$ - [F]
		</IfModule>
	# END Tweaks
# END iThemes Security
]]>
https://wpgeodirectory.com/support/topic/search-has-stopped-working/#post-13150 <![CDATA[Reply To: Search has stopped working?]]> https://wpgeodirectory.com/support/topic/search-has-stopped-working/#post-13150 Tue, 26 Aug 2014 05:51:40 +0000 purpleedge Found it, it was protection for suspicious query strings – apparently the search query string looks suspicious to ithemes security?

You can mark this as resolved.

]]>
https://wpgeodirectory.com/support/topic/search-has-stopped-working/#post-13163 <![CDATA[Reply To: Search has stopped working?]]> https://wpgeodirectory.com/support/topic/search-has-stopped-working/#post-13163 Tue, 26 Aug 2014 10:15:24 +0000 Stiofan O'Connor Thanks for letting us know 🙂

Stiofan

]]>
https://wpgeodirectory.com/support/topic/search-has-stopped-working/#post-13167 <![CDATA[Reply To: Search has stopped working?]]> https://wpgeodirectory.com/support/topic/search-has-stopped-working/#post-13167 Tue, 26 Aug 2014 11:45:28 +0000 identity @purpleedge

Interesting as I run iThemes Security and Wordfence both and haven’t come across any issues yet. If there is a conflict, it would be great to find out “the specific rule” if possible.

Or was it in combination with a specific search, phrase or characters maybe?

]]>
https://wpgeodirectory.com/support/topic/search-has-stopped-working/#post-13184 <![CDATA[Reply To: Search has stopped working?]]> https://wpgeodirectory.com/support/topic/search-has-stopped-working/#post-13184 Tue, 26 Aug 2014 13:46:47 +0000 purpleedge Hi Brian,

It’s the option to block suspicious query strings, if you turn it off and on you should see the change to the htaccess file. When enabled, a search (simple GD search, not advanced) for anything without a “near” value just fails, does nothing. The query string is…

?geodir_search=1&stype=gd_place&s=larx&snear=&sgeo_lat=&sgeo_lon=

I think the lack of values after the “=” signs probably triggered the filter, because adding a “near” value results in a query string that worked.

?geodir_search=1&stype=gd_place&s=larx&snear=mona+vale&sgeo_lat=-33.6779878&sgeo_lon=151.30334199999993
]]>