Title: PHP Notices
Last modified: August 24, 2016

---

# PHP Notices

 *  [KTS915](https://wordpress.org/support/users/kts915/)
 * (@kts915)
 * [11 years ago](https://wordpress.org/support/topic/php-notices-44/)
 * Since activating the latest update, searches seem to be taking a bit longer than
   before. Query Monitor produces the following notices when a search is run:
 *     ```
       Undefined variable: query_join
       wp-content/plugins/relevanssi/lib/search.php:468
   
       Undefined property: WP_Query::$post
       wp-includes/query.php:3960
       ```
   
 * I know they aren’t serious, but I wondered whether they might be the cause for
   the extra time taken in searching.
 * [https://wordpress.org/plugins/relevanssi/](https://wordpress.org/plugins/relevanssi/)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [eapearson](https://wordpress.org/support/users/eapearson/)
 * (@eapearson)
 * [11 years ago](https://wordpress.org/support/topic/php-notices-44/#post-6048922)
 * I can confirm the former, but not the latter.
    My site is set up to display all
   errors, so this actually appeared for me on the site as well. It is a simple 
   fix at line 468 — a variable that is not always initialized. The danger of “if”
   without curly braces!
 *  [oppi_](https://wordpress.org/support/users/oppi_/)
 * (@oppi_)
 * [11 years ago](https://wordpress.org/support/topic/php-notices-44/#post-6048985)
 * Confirmed as well. Can we get a hotfix, Mikko? =)
 *  Plugin Author [Mikko Saari](https://wordpress.org/support/users/msaari/)
 * (@msaari)
 * [11 years ago](https://wordpress.org/support/topic/php-notices-44/#post-6049048)
 * For a quick fix, add
 * `$query_join = "";`
 * as line 467. I’ll release a fixed version soon.
 * As for the searches taking longer, this small error should have no effect on 
   that. None of the changes should really effect the search power, so I think it’s
   probably random fluctuation.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘PHP Notices’ is closed to new replies.

 * ![](https://ps.w.org/relevanssi/assets/icon-256x256.png?rev=3529670)
 * [Relevanssi - A Better Search](https://wordpress.org/plugins/relevanssi/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/relevanssi/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/relevanssi/)
 * [Active Topics](https://wordpress.org/support/plugin/relevanssi/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/relevanssi/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/relevanssi/reviews/)

 * 3 replies
 * 4 participants
 * Last reply from: [Mikko Saari](https://wordpress.org/support/users/msaari/)
 * Last activity: [11 years ago](https://wordpress.org/support/topic/php-notices-44/#post-6049048)
 * Status: not resolved