PHP Notice: Undefined index:
-
Hi, we use your plugin within
https://hub.suttons.co.uk/videos
An example of the shortcode we have is:
[youtube_channel channel=GrowSuttonsSeeds legacy=GrowSuttonsSeeds playlist=PLE7QMHF_3ZtLH6reEvpxqVQUFI_iislf8 resource=2 cache=300 fetch=10 num=4 ratio=3 responsive=1 width=306 display=playlist norel=1 nobrand=1 showtitle=none desclen=0 noanno=1 noinfo=1]
We’re on v.4.5.1 of WP (latest)
We don’t use any caching pluginOur YT data info can be provided privately if required.
YouTube API Key: AIzaSyCSPmERQtYt1wcJw1DnHQOtyH4KvAwQuhg
YouTube ID: PLE7QMHF_3ZtLH6reEvpxqVQUFI_iislf8For a very long time our error logs have been filled by php notices relating to your plugin and I would very much like them to be fixed.
Using the Query Monitor plugin, here is a bulk dump of the issues:
PHP Error Count Location Call Stack Component Notice Undefined index: display 1 wp-content/plugins/youtube-channel/inc/settings.php:379 WPAU_YOUTUBE_CHANNEL_SETTINGS->register_settings() wp-content/plugins/youtube-channel/inc/settings.php:379 do_action('admin_init') wp-admin/admin.php:168 Plugin: youtube-channel Undefined index: responsive 1 wp-content/plugins/youtube-channel/inc/settings.php:400 WPAU_YOUTUBE_CHANNEL_SETTINGS->register_settings() wp-content/plugins/youtube-channel/inc/settings.php:400 do_action('admin_init') wp-admin/admin.php:168 Plugin: youtube-channel Undefined index: modestbranding 1 wp-content/plugins/youtube-channel/inc/settings.php:544 WPAU_YOUTUBE_CHANNEL_SETTINGS->register_settings() wp-content/plugins/youtube-channel/inc/settings.php:544 do_action('admin_init') wp-admin/admin.php:168 Plugin: youtube-channel Undefined index: showdesc 1 wp-content/plugins/youtube-channel/inc/settings.php:621 WPAU_YOUTUBE_CHANNEL_SETTINGS->register_settings() wp-content/plugins/youtube-channel/inc/settings.php:621 do_action('admin_init') wp-admin/admin.php:168 Plugin: youtube-channel Undefined index: desclen 1 wp-content/plugins/youtube-channel/inc/settings.php:635 WPAU_YOUTUBE_CHANNEL_SETTINGS->register_settings() wp-content/plugins/youtube-channel/inc/settings.php:635 do_action('admin_init') wp-admin/admin.php:168
And from the error.log itself:
[06-May-2016 08:44:25 UTC] PHP Notice: Undefined index: display in /home/suttons1/public_html/hub/wp-content/plugins/youtube-channel/inc/settings.php on line 379 [06-May-2016 08:44:25 UTC] PHP Notice: Undefined index: responsive in /home/suttons1/public_html/hub/wp-content/plugins/youtube-channel/inc/settings.php on line 400 [06-May-2016 08:44:25 UTC] PHP Notice: Undefined index: modestbranding in /home/suttons1/public_html/hub/wp-content/plugins/youtube-channel/inc/settings.php on line 544 [06-May-2016 08:44:25 UTC] PHP Notice: Undefined index: showdesc in /home/suttons1/public_html/hub/wp-content/plugins/youtube-channel/inc/settings.php on line 621 [06-May-2016 08:44:25 UTC] PHP Notice: Undefined index: desclen in /home/suttons1/public_html/hub/wp-content/plugins/youtube-channel/inc/settings.php on line 635
The only way I can clear this is to de-activate your plugin but this then means we have no video playlists and a rather empty videos page.
- The topic ‘PHP Notice: Undefined index:’ is closed to new replies.