Undefined index error
-
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.
- The topic ‘Undefined index error’ is closed to new replies.