Title: Undefined index problem
Last modified: August 22, 2016

---

# Undefined index problem

 *  Resolved [stuartsheppard](https://wordpress.org/support/users/stuartsheppard/)
 * (@stuartsheppard)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/undefined-index-problem/)
 * Hi There,
    I have just reinstalled a website to another clean install of wordpress
   and a fresh live server for a client and can now see the following message from
   wordpress debug:
 *  Undefined index: wp_listings_default_state in /home/sites/spanish-property-sales.
   ru/public_html/wp-content/plugins/wp-listings/includes/functions.php on line 
   68.
 * In addition to this when I search the properties usding the search widget the
   results now have the spaces missing from the title and the Euro sign is displaying
   as question marks as shown below.
    V i l l a i n M o r a i r a , � � � 4 8 5 
   0 0 0 However, if I then select a property to view all is displayed correctly
   and there are no errors when viewing a listing in the admin section. Any help
   with this would be gratefully appreciated.
 * Thanks in advance
    Regards Stuart
 * [https://wordpress.org/plugins/wp-listings/](https://wordpress.org/plugins/wp-listings/)

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

 *  Thread Starter [stuartsheppard](https://wordpress.org/support/users/stuartsheppard/)
 * (@stuartsheppard)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/undefined-index-problem/#post-5416101)
 * I have resolved the Undefined index problem but the issue remains with the displaying
   of initial search results having no spaces and strange characters in:
    V i l 
   l a i n M o r a i r a , � � � 4 8 5 0 0 0 In all other section of the site the
   data is displayed normally such as single listings. Any help gratefully received.
   Thanks Stuart
 *  Plugin Author [agentevolution](https://wordpress.org/support/users/agentevolution/)
 * (@agentevolution)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/undefined-index-problem/#post-5416162)
 * Check your database characters encoding and ensure it is set to UTF-8 ([http://codex.wordpress.org/Editing_wp-config.php#Database_character_set](http://codex.wordpress.org/Editing_wp-config.php#Database_character_set)).
 *  Thread Starter [stuartsheppard](https://wordpress.org/support/users/stuartsheppard/)
 * (@stuartsheppard)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/undefined-index-problem/#post-5416167)
 * Yes its set to UTF-8.
    Interestingly, if I search the property database using
   a taxonomy search page which is activated from a link the results come up formatted
   correctly this output only occurs using a search from the search widget. So not
   sure why this is happening.
 * Stuart
 *  Thread Starter [stuartsheppard](https://wordpress.org/support/users/stuartsheppard/)
 * (@stuartsheppard)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/undefined-index-problem/#post-5416168)
 * You can see the site here.
    [http://176.32.230.2/spanish-property-sales.ru/](http://176.32.230.2/spanish-property-sales.ru/)
   Try clicking an image in the page to get the taxonomy search results and then
   use the search widget for the incorrect formatting results. Any help gratefully
   received as this is the last thing before going live with this site.
 * Many thanks
 * Stuart
 *  Plugin Author [agentevolution](https://wordpress.org/support/users/agentevolution/)
 * (@agentevolution)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/undefined-index-problem/#post-5416210)
 * It looks like a problem with a plugin or your theme. With the search results 
   page, something is adding extra markup to the titles, like `<span class="found-
   search-term"></span>` which could be causing those characters. Deactivate all
   other plugins or change to another theme to find out what is causing it.
 *  Thread Starter [stuartsheppard](https://wordpress.org/support/users/stuartsheppard/)
 * (@stuartsheppard)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/undefined-index-problem/#post-5416222)
 * Hi,
 * It looks like the problem is generated within the wordpress version 4.0.
    I have
   isolated everything and compared it to the functioning site I have which is still
   running wordpress 3.9 and this is the only difference. Any suggestions on where
   to look to resolve this issue going forward? Thanks
 * Stuart
 *  Plugin Author [agentevolution](https://wordpress.org/support/users/agentevolution/)
 * (@agentevolution)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/undefined-index-problem/#post-5416225)
 * It’s a problem with your theme. Try a different theme. Look in the menu bar of
   the search results page, you have the same character problems there too. It’s
   not an issue with the WP Listings plugin.
 *  Thread Starter [stuartsheppard](https://wordpress.org/support/users/stuartsheppard/)
 * (@stuartsheppard)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/undefined-index-problem/#post-5416226)
 * Hi there,
    The issue was to do with highlighting of found search terms. Thanks
 * Stuart

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

The topic ‘Undefined index problem’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-listings_978e8f.svg)
 * [IMPress Listings](https://wordpress.org/plugins/wp-listings/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-listings/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-listings/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-listings/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-listings/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-listings/reviews/)

 * 8 replies
 * 2 participants
 * Last reply from: [stuartsheppard](https://wordpress.org/support/users/stuartsheppard/)
 * Last activity: [11 years, 6 months ago](https://wordpress.org/support/topic/undefined-index-problem/#post-5416226)
 * Status: resolved