It seems that over the past 24 hours YouTube has introduced a change in their API which is causing all sorts of breakage for anyone using TubePress to display a playlist. If you're reading this, that probably means you!
- As this appears to be a problem on YouTube's end, I have filed a bug report with them. Please star this issue to draw their attention!
- I've also posted a question on stackoverflow, as this is YouTube's official support forum for their API. Please vote on this question to draw attention to it!.
Please, before you continue reading this post, take action on the two items above. The more noise we can make about this, the faster it will be addressed by YouTube! Now, here is a workaround:
- Open up tubepress/sys/classes/org/tubepress/impl/bootstrap/TubePressBootstrapper.class.php with your favorite text editor.
- Comment out lines 145 and 146. That will change the code in that area from
$pm->registerFilter(org_tubepress_api_const_plugin_FilterPoint::OPTION_SET_PRE_VALIDATION, $ioc->get('org_tubepress_impl_plugin_filters_prevalidationoptionset_StringMagic'));$pm->registerFilter(org_tubepress_api_const_plugin_FilterPoint::OPTION_SET_PRE_VALIDATION, $ioc->get('org_tubepress_impl_plugin_filters_prevalidationoptionset_YouTubePlaylistPlPrefixRemover'));
to
$pm->registerFilter(org_tubepress_api_const_plugin_FilterPoint::OPTION_SET_PRE_VALIDATION, $ioc->get('org_tubepress_impl_plugin_filters_prevalidationoptionset_StringMagic'));//$pm->registerFilter(org_tubepress_api_const_plugin_FilterPoint::OPTION_SET_PRE_VALIDATION,// $ioc->get('org_tubepress_impl_plugin_filters_prevalidationoptionset_YouTubePlaylistPlPrefixRemover'));
- Ensure that your anytime you use a playlist ID with TubePress, it is prefixed with "PL". i.e. this will work
[tubepress mode="playlist" playlistValue="PL83FF64CDA043CBC4"]
while the following will not work
[tubepress mode="playlist" playlistValue="PL83FF64CDA043CBC4"]
This is ugly and hacky, but it
will restore your playlist-based galleries to working order - at least until YouTube addresses this issue.