Title: Undefined variable: res_final
Last modified: August 30, 2016

---

# Undefined variable: res_final

 *  Resolved [ricricucit](https://wordpress.org/support/users/ricricucit/)
 * (@ricricucit)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/undefined-variable-res_final/)
 * Now, trying to index, i’m getting this error (updated to WPSolr 4.0):
 *     ```
       Notice: Undefined variable: res_final in /Applications/MAMP/htdocs/bedrock/web/app/plugins/wpsolr-search-engine/class-wp-solr.php on line 828
       {"nb_results":0,"status":0,"indexing_complete":true,"debug_text":null}
       Notice: ob_flush(): failed to flush buffer. No buffer to flush in /Applications/MAMP/htdocs/bedrock/web/app/plugins/wpsolr-search-engine/ajax_solr_services.php on line 393
       ```
   
 * Any idea what could generate this?
    NOTE: i have 3 documents/posts and they all
   look indexed (so it might be working)
 * [https://wordpress.org/plugins/wpsolr-search-engine/](https://wordpress.org/plugins/wpsolr-search-engine/)

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

 *  Thread Starter [ricricucit](https://wordpress.org/support/users/ricricucit/)
 * (@ricricucit)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/undefined-variable-res_final/#post-6357025)
 * Also…<b>the search does not work</b>.
 * After searching something from the search field…i get this in the console:
 *     ```
       Notice: Undefined index: self_hosted in /Applications/MAMP/htdocs/bedrock/web/app/plugins/wpsolr-search-engine/autocomplete.php on line 20
       ```
   
 *     ```
       Notice: Undefined index: solr_key in /Applications/MAMP/htdocs/bedrock/web/app/plugins/wpsolr-search-engine/autocomplete.php on line 24
       ```
   
 *     ```
       Notice: Undefined index: solr_secret in /Applications/MAMP/htdocs/bedrock/web/app/plugins/wpsolr-search-engine/autocomplete.php on line 25
       ```
   
 *     ```
       Fatal error: Uncaught exception 'Solarium\Exception\HttpException' with message 'Solr HTTP error: OK (404) <html><head><title>Apache Tomcat/6.0.39 - Error report</title><style><!--H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color : black;}A.name {color : black;}HR {color : #525D76;}--></style> </head><body><h1>HTTP Status 404 - /solr/suggest</h1><HR size="1" noshade="noshade"><p><b>type</b> Status report</p><p><b>message</b> <u>/solr/suggest</u></p><p><b>description</b> <u>The requested resource is not available.</u></p><HR size="1" noshade="noshade in /Applications/MAMP/htdocs/bedrock/web/app/plugins/wpsolr-search-engine/vendor/solarium/solarium/library/Solarium/Core/Query/Result/Result.php on line 103
       ```
   
 *  Plugin Author [WPSOLR](https://wordpress.org/support/users/wpsolr/)
 * (@wpsolr)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/undefined-variable-res_final/#post-6357034)
 * For res_final, try WPSOLR 4.1
 * For your last error, there is a problem with your Solr install/setup
 *  Thread Starter [ricricucit](https://wordpress.org/support/users/ricricucit/)
 * (@ricricucit)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/undefined-variable-res_final/#post-6357042)
 * first error solved, but i still get:
 *     ```
       Notice: Undefined index: self_hosted in /Applications/MAMP/htdocs/bedrock/web/app/plugins/wpsolr-search-engine/autocomplete.php on line 20
       ```
   
 *     ```
       Notice: Undefined index: solr_key in /Applications/MAMP/htdocs/bedrock/web/app/plugins/wpsolr-search-engine/autocomplete.php on line 24
       ```
   
 *     ```
       Notice: Undefined index: solr_secret in /Applications/MAMP/htdocs/bedrock/web/app/plugins/wpsolr-search-engine/autocomplete.php on line 25
       ```
   
 * which doesn’t seem to be related to the Solr install/setup
 * and this (which might be related to the solr setup, although i’d love to have
   an hint from you if you can guess where the problem is)
 *     ```
       Fatal error: Uncaught exception 'Solarium\Exception\HttpException' with message 'Solr HTTP error: OK (404) <html><head><title>Apache Tomcat/6.0.39 - Error report</title><style><!--H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color : black;}A.name {color : black;}HR {color : #525D76;}--></style> </head><body><h1>HTTP Status 404 - /solr/suggest</h1><HR size="1" noshade="noshade"><p><b>type</b> Status report</p><p><b>message</b> <u>/solr/suggest</u></p><p><b>description</b> <u>The requested resource is not available.</u></p><HR size="1" noshade="noshade in /Applications/MAMP/htdocs/bedrock/web/app/plugins/wpsolr-search-engine/vendor/solarium/solarium/library/Solarium/Core/Query/Result/Result.php on line 103
       ```
   
 * Thank you,
    Enrico.
 *  Plugin Author [WPSOLR](https://wordpress.org/support/users/wpsolr/)
 * (@wpsolr)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/undefined-variable-res_final/#post-6357046)
 * Error says your Solr [suggester](https://cwiki.apache.org/confluence/display/solr/Suggester)
   is not setup in your solrconfig.xml
 * Did you use our solrconfig.xml ?
 * Did you use the right configuration files versions (Solr 4.xx or Solr 5.xx) ?
 *  Thread Starter [ricricucit](https://wordpress.org/support/users/ricricucit/)
 * (@ricricucit)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/undefined-variable-res_final/#post-6357122)
 * **solved**, thank you for your support.

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

The topic ‘Undefined variable: res_final’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wpsolr-search-engine_b2dbdc.svg)
 * [WPSOLR - Elasticsearch and Solr search](https://wordpress.org/plugins/wpsolr-search-engine/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wpsolr-search-engine/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wpsolr-search-engine/)
 * [Active Topics](https://wordpress.org/support/plugin/wpsolr-search-engine/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wpsolr-search-engine/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wpsolr-search-engine/reviews/)

## Tags

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

 * 5 replies
 * 2 participants
 * Last reply from: [ricricucit](https://wordpress.org/support/users/ricricucit/)
 * Last activity: [10 years, 9 months ago](https://wordpress.org/support/topic/undefined-variable-res_final/#post-6357122)
 * Status: resolved