Title: Undefined offset error message when adding a new entry
Last modified: May 6, 2020

---

# Undefined offset error message when adding a new entry

 *  Resolved [pharmaconsulting](https://wordpress.org/support/users/pharmaconsulting/)
 * (@pharmaconsulting)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/undefined-offset-error-message-when-adding-a-new-entry/)
 * Hi everybody, I’m getting this error message after adding a new entry. The new
   entry shows ok nevertheless.
 *     ```
       Notice: Undefined offset: 0 in /home4/pharmba1/public_html/wp-content/plugins/connections/includes/geocoder/provider/class.algolia.php on line 232
   
       Warning: Cannot modify header information - headers already sent by (output started at /home4/pharmba1/public_html/wp-content/plugins/connections/includes/geocoder/provider/class.algolia.php:232) in /home4/pharmba1/public_html/wp-includes/pluggable.php on line 1251
   
       Warning: Cannot modify header information - headers already sent by (output started at /home4/pharmba1/public_html/wp-content/plugins/connections/includes/geocoder/provider/class.algolia.php:232) in /home4/pharmba1/public_html/wp-includes/pluggable.php on line 1254
       ```
   
 * Any hint is appreciated.

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

 *  Plugin Author [Steven](https://wordpress.org/support/users/shazahm1hotmailcom/)
 * (@shazahm1hotmailcom)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/undefined-offset-error-message-when-adding-a-new-entry/#post-12790938)
 * The best solution and considered a best practice is to log and not display PHP
   errors or warnings (as in this case) on the site.
 * Please see these instructions:
    - [https://connections-pro.com/faqs/hide-php-warnings-notices/](https://connections-pro.com/faqs/hide-php-warnings-notices/)
 * That should take care of it. If not, please try _one_ of these plugins:
    - [https://wordpress.org/plugins/error-log-monitor/](https://wordpress.org/plugins/error-log-monitor/)
    - [https://wordpress.org/plugins/error-log-viewer/](https://wordpress.org/plugins/error-log-viewer/)
 * I’ve have not personally used either, but, both basically do the same thing as
   the instructions I provided but with additional features you may find helpful.
 *  
 * I hope this helps, please let me know.
 *  Thread Starter [pharmaconsulting](https://wordpress.org/support/users/pharmaconsulting/)
 * (@pharmaconsulting)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/undefined-offset-error-message-when-adding-a-new-entry/#post-12792969)
 * Thank you Steven, I updated the wp-config.php file. Problem now is solved.
 *  Plugin Author [Steven](https://wordpress.org/support/users/shazahm1hotmailcom/)
 * (@shazahm1hotmailcom)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/undefined-offset-error-message-when-adding-a-new-entry/#post-12792980)
 * Great to hear! I’ve already tracked down the issue in Connections which caused
   PHP to create the warning and fixed it. The next update will include that fix.
 * Thanks for taking the time to let me know about the it!

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

The topic ‘Undefined offset error message when adding a new entry’ is closed to 
new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/connections_2b7e99.svg)
 * [Connections Business Directory](https://wordpress.org/plugins/connections/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/connections/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/connections/)
 * [Active Topics](https://wordpress.org/support/plugin/connections/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/connections/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/connections/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Steven](https://wordpress.org/support/users/shazahm1hotmailcom/)
 * Last activity: [6 years, 1 month ago](https://wordpress.org/support/topic/undefined-offset-error-message-when-adding-a-new-entry/#post-12792980)
 * Status: resolved