Shortcode Embeds Undefined Index
-
At the top of my page with shortcodes, I get the following error:
Notice: Undefined index: visual in /home/[user]/[url]/wp-content/plugins/jetpack/modules/shortcodes/soundcloud.php on line 61
Note that the player appears correctly below.
Line 61 of that file:
$isVisual = ! $player_type || $player_type === 'visual' || $shortcode_options['visual'];
My shortcodes look like this:
[soundcloud url="https://api.soundcloud.com/tracks/122514535" params="color=ff6600&auto_play=false&show_artwork=true" width="100%" height="166" iframe="true" /]
Any help would be most appreciated!
-
Thanks for the report! We’ll get this fixed in a future release.
You can follow our progress here:
https://github.com/Automattic/jetpack/pull/2926Hi there! Do you still experience the issue on your site? We can’t seem to be able to reproduce the issue anymore.
Hi Jeremy, thanks, yes I do (Just tested it). With Shortcode Embeds activated in Jetpack, I get the error. When I deactivate that, and activate Soundcloud Shortcode, the problem goes away.
That’s how I have it set up now, and this is the page I’m working with, in case that helps: http://www.wavydice.com/songs/
But I’d rather use Jetpack for this, as Shortcode Embeds would also handle youtube for me.
Let me know if you need more info to replicate this!
Thanks,
David
Is this the plugin you’re using at the moment on your site?
https://wordpress.org/plugins/soundcloud-shortcode/Could you also give me an example of one of the shortcodes you’re using in that post?
Thanks!
Thanks Jeremy, yes, that’s the plugin I’m using now. And my shortcodes look like this:
[soundcloud url="https://api.soundcloud.com/tracks/122514535" params="color=ff6600&auto_play=false&show_artwork=true" width="100%" height="166" iframe="true" /]
That’s annoying, I can’t seem to reproduce.
Could you let me know what other plugins are currently active on your site?
Thanks!
Thanks for digging in; plugins are:
-
Askimet
Favicon by RealFaviconGenerator
Jetpack (Custom Content Types, Protect, Sharing, Site Stats, Site Verification)
Semalt Redirect Manager
Soundcloud Shortcode
WP Random HeaderThank you. I can’t reproduce with those plugins either, but I’ll keep digging in, and try to force generate the error somehow.
- The topic ‘Shortcode Embeds Undefined Index’ is closed to new replies.