Error Displayed – Undefined index: avatar_size
-
Hello,
I just wanted to flag that I think in 3.0 that the avatar_size was introduced to the settings. I found in my logs for a while the following;
Notice: Undefined index: avatar_size in …plugins/wd-twitter-feed/includes/Tweets/UI/Tweet/controller.php on line 28Which refers to this code;
$this->avatar_size = $twitterfeed_settings['avatar_size'];
When I disabled WP-Debug these messages started appearing in the feed itself;
To resolve I found going to the settings and saving the tab showing the avatar size field resolved the issue.
So it might be good to do a check in $twitterfeed_settings that array key exists and isn’t empty, and when it fails to set to a default value rather than error out as it does now.
Seems to only affect you if you upgraded from a version prior to 3.0
All the best,
CheersThe page I need help with: [log in to see the link]
- The topic ‘Error Displayed – Undefined index: avatar_size’ is closed to new replies.