Forum Replies Created

Viewing 1 replies (of 1 total)
  • Thread Starter dyc3r

    (@dyc3r)

    Thank you. I’m still a little wet behind the ears with PHP, and I was not aware of var_dump().

    That helped me solve the problem. The error actually occurred in the fourOHfourSearch() before the query ran:

    $search_term = trim(preg_replace ( "'http://overactivecreativity.com/'", "" , $search_term ));

    I was trying to strip off the site’s root url from the search but ‘$search_term’ was coming in as ‘http://www.overactivecreativity.com/’.

    Since it didn’t match the criteria, it was not getting trimmed, and when I replaced ‘/’ with ‘ ‘ in the next line, I ended up running a query with “http: overactivecreativity.com zeebot” as the query string.

    Just to verify, I copied that query string into the search widget in the side panel, and did get the same single post as a search result.

    Thank you for the help, I solved the problem and learned about a new tool that is incredibly handy. Much appreciated.

Viewing 1 replies (of 1 total)