Support » Fixing WordPress » Search button/widget no longer working

  • Resolved jemscot56

    (@jemscot56)


    WCLDN 2018 Contributor

    Here’s an odd one for you.
    Symptoms:
    1. Previously working premium plug-in (Ivory Search) no longer working
    2. Default search widget (put back in as a temp. workaround) no longer working either!
    3. Companion site (subdomain) both options working just fine, thanks

    Background
    1. Account (hosted by SiteGround) hit by bot attacks on Monday. Mitigated by addition of ‘6G Firewall’ code into .htaccess plus some specific IP blocks.
    2. No other changes made to site. Certainly nothing in the wp folders.
    3. Non-working theme is NewsPress Extend
    4. Working theme is Magazine-Pro (on Genesis framework)

    The plug-ins continued working in the subdomain suggests it’s a theme issue but I have callouts in progress to both parties (theme and plugin). Any suggestions out there?

    Curiouser and curiouser

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • CrouchingBruin

    (@crouchingbruin)

    So I did a search on tierney and this is the URL that was created:

    
    https://dailybusinessgroup.co.uk/?s=tierney&submit=Search...&id=75070
    

    Not sure why the extra parameters (submit and id) after the s=tierney part are necessary, but the problem is the ellipse in the value for submit: &submit=Search…. If you remove the ellipse, then this URL returns the right search results:

    
    https://dailybusinessgroup.co.uk/?s=tierney&submit=Search&id=75070
    

    When I look at the code for the Search form, I see this:

    
    <form method="get" id="searchform" class="nptitems" action="https://dailybusinessgroup.co.uk/">
    	<label for="s" class="assistive-text"></label>
    	<input type="text" class="field" name="s" id="s" placeholder="Search..." />
    	<input type="submit" class="submit" name="submit" id="searchsubmit" value="Search..." />
    	<input type="hidden" name="id" value="75070" />
    </form>
    

    So what needs to be done is the value for the submit button (which is the second input tag listed above) needs to have the ellipse removed from the value property.

    jemscot56

    (@jemscot56)

    WCLDN 2018 Contributor

    Many thanks, @crouchingbruin for your valuable input.
    FYI the ‘id’ and associated value are for a customised search form generated by the Ivory Search plugin. This has worked fine until this week but it was the Theme (NewsPress Extend) that required a minor change in order to resolve the issue.
    I couldn’t have done it without your spot… I was targeting cache flushes etc so thanks for pointing me in the right direction.

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.