Title: Undefined index error
Last modified: August 21, 2016

---

# Undefined index error

 *  Resolved [mmoshpitgaming](https://wordpress.org/support/users/mmoshpitgaming/)
 * (@mmoshpitgaming)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/undefined-index-error-4/)
 * Installed the plugin fresh today and I’m getting the errors below all over the
   place. OAUTH token is saved in settings. Pretty fresh install though I do have
   several other plugins, can provide that information if it will be helpful, thought
   it looks like it won’t be.
 * ERRORS::
 *     ```
       Notice: Undefined index: file in /mnt/www/XXXX/wp-content/plugins/bitly/bitly.php on line 90
       Notice: Undefined index: file in /mnt/www/XXXX/wp-content/plugins/bitly/bitly.php on line 96
       Notice: Undefined index: file in /mnt/www/XXXX/wp-content/plugins/bitly/bitly.php on line 103
       Notice: Undefined index: file in /mnt/www/XXXX/wp-content/plugins/bitly/bitly.php on line 108
       Notice: Undefined index: file in /mnt/www/XXXX/wp-content/plugins/bitly/bitly.php on line 90
       Notice: Undefined index: file in /mnt/www/XXXX/wp-content/plugins/bitly/bitly.php on line 96
       Notice: Undefined index: file in /mnt/www/XXXX/wp-content/plugins/bitly/bitly.php on line 103
       Notice: Undefined index: file in /mnt/www/XXXX/wp-content/plugins/bitly/bitly.php on line 108
       Notice: Undefined variable: parmlink in /mnt/www/XXXX/wp-content/plugins/bitly/bitly.php on line 220
       Notice: Undefined index: file in /mnt/www/XXXX/wp-content/plugins/bitly/bitly.php on line 90
       Notice: Undefined index: file in /mnt/www/XXXX/wp-content/plugins/bitly/bitly.php on line 96
       Notice: Undefined index: file in /mnt/www/XXXX/wp-content/plugins/bitly/bitly.php on line 103
       Notice: Undefined index: file in /mnt/www/XXXX/wp-content/plugins/bitly/bitly.php on line 108
       ```
   
 * The `Notice: Undefined variable: parmlink in /mnt/www/XXXX/wp-content/plugins/
   bitly/bitly.php on line 220` error is easily fixed by correcting what I assume
   is a typo: `$parmlink` -> `$permalink`.
 * The “file” index errors are a bit confusing to me though. From the tests that
   I’ve done it looks like hook_post_link is fired every time a post is displayed
   on any page, many of which do not include a ‘file’ index causing these errors
   to show up all over the place.
 * Disabling the plugin stops all errors.
 * [http://wordpress.org/plugins/bitly/](http://wordpress.org/plugins/bitly/)

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

 *  Plugin Author [bit.ly](https://wordpress.org/support/users/bitly-1/)
 * (@bitly-1)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/undefined-index-error-4/#post-4104042)
 * We are looking into this and it should be fixed in an upcoming release.
 * Thanks!
 *  Plugin Author [bit.ly](https://wordpress.org/support/users/bitly-1/)
 * (@bitly-1)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/undefined-index-error-4/#post-4104146)
 * This should now be resolved.
 *  [bswen](https://wordpress.org/support/users/bswen/)
 * (@bswen)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/undefined-index-error-4/#post-4104193)
 * With debug mode on I am still seeing an Undefined index notice for every display
   of a post in a WordPress theme.

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

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

 * ![](https://s.w.org/plugins/geopattern-icon/bitly.svg)
 * [Official Bitly for WordPress](https://wordpress.org/plugins/bitly/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/bitly/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/bitly/)
 * [Active Topics](https://wordpress.org/support/plugin/bitly/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/bitly/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/bitly/reviews/)

 * 3 replies
 * 3 participants
 * Last reply from: [bswen](https://wordpress.org/support/users/bswen/)
 * Last activity: [12 years, 4 months ago](https://wordpress.org/support/topic/undefined-index-error-4/#post-4104193)
 * Status: resolved