Title: Undefined offset error
Last modified: August 24, 2016

---

# Undefined offset error

 *  Resolved [photocurio](https://wordpress.org/support/users/photocurio/)
 * (@photocurio)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/undefined-offset-error-1/)
 * Hi Mikko,
    I’m at a company that uses Relevanssi (free version). It works correctly
   on the production server, but when I set it up on a development server it gives
   the following error: `Undefined offset: 1 in /website/wp-content/plugins/relevanssi/
   lib/common.php on line 607`. Also, it gives the same error message 7 times. I
   get the same error messages from a localhost install on my machine.
 * [https://wordpress.org/plugins/relevanssi/](https://wordpress.org/plugins/relevanssi/)

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

 *  Plugin Author [Mikko Saari](https://wordpress.org/support/users/msaari/)
 * (@msaari)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/undefined-offset-error-1/#post-6054457)
 * Check your synonym settings, looks like you might have a synonym that’s missing
   the second part.
 *  Thread Starter [photocurio](https://wordpress.org/support/users/photocurio/)
 * (@photocurio)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/undefined-offset-error-1/#post-6054519)
 * Thanks Mikko. The synonyms all had their pairs, but I removed blank lines between
   synonyms and that fixed the undefined offset errors.
 * But now I’m getting and additional error:
    `Undefined variable: query_join in/
   apps/www/html/wp-content/plugins/relevanssi/lib/search.php on line 468`
 *  Thread Starter [photocurio](https://wordpress.org/support/users/photocurio/)
 * (@photocurio)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/undefined-offset-error-1/#post-6054526)
 * ps, we upgraded to premium (yay). we still get the `query_join` error though.
 *  Plugin Author [Mikko Saari](https://wordpress.org/support/users/msaari/)
 * (@msaari)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/undefined-offset-error-1/#post-6054538)
 * A fix for this is coming shortly, but if you want a quick fix for it, [see here](https://wordpress.org/support/topic/php-notices-44?replies=4).
 * Looks like I’ll also have to make sure blank lines on synonyms box are handled
   correctly. Thanks for the tip on that, and I really appreciate you going premium.
 *  Thread Starter [photocurio](https://wordpress.org/support/users/photocurio/)
 * (@photocurio)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/undefined-offset-error-1/#post-6054539)
 * Ah, I see what’s up.. I have **wp_debug** running on the development server, 
   and it was displaying these errors, which are not critical. We’ll wait for the
   new version instead of adding the hotfix.

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

The topic ‘Undefined offset error’ 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/)

## Tags

 * [undefined offset](https://wordpress.org/support/topic-tag/undefined-offset/)

 * 5 replies
 * 2 participants
 * Last reply from: [photocurio](https://wordpress.org/support/users/photocurio/)
 * Last activity: [11 years, 1 month ago](https://wordpress.org/support/topic/undefined-offset-error-1/#post-6054539)
 * Status: resolved