• Peachey_A

    (@peachey_a)


    Hi folks,

    I’m having some trouble with the PowerPress plugin, I’ve got a homepage with a playlist shortcode on it. When I refresh the site that page loads great. I can then click on my navigation to move to other pages. However, the ‘podcasts’ page, which has another playlist shortcode on it refuses to load.

    In chrome developer tools, the error message is ‘VM15928:2 Uncaught SyntaxError: Unexpected token <(…)’ Referring to the first line of the code below.

    	<# if ( data.poster ) { #>
    			<img src="{{ data.poster.src }}" />
    	<# } #>
    	<div class="wp-playlist-caption">
    		<# if ( data.meta.program_title ) { #>
    			<span class="wp-playlist-item-meta wp-playlist-item-title">{{ data.meta.program_title }}</span>
    		<# } #>
    		<# if ( data.meta.link ) { #>
    		<span class="wp-playlist-item-meta wp-playlist-item-title"><a href="{{ data.meta.link }}" rel="nofollow">{{ data.title }}</a></span>
    		<# } else { #>
    		<span class="wp-playlist-item-meta wp-playlist-item-title">{{ data.title }}</span>
    		<# } #>
    		<# if ( data.meta.date ) { #><span class="wp-playlist-item-meta wp-playlist-item-artist">{{ data.meta.date }}</span><# } #>
    		<# if ( data.meta.itunes_subtitle ) { #><span class="wp-playlist-item-meta wp-playlist-item-album">{{ data.meta.itunes_subtitle }}</span><# } #>
    	</div>

    Pages will load individually and when I refresh them, but will not when moving between pages.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Angelo Mandato

    (@amandato)

    Hello @peachey_a,

    Can you provide a link to the page where the problem is happening? Did you test with one of the default themes packaged in WordPress such as twentysixteen?

    Thanks,
    Angelo

    Thread Starter Peachey_A

    (@peachey_a)

    Hi Angelo,

    Thanks for replying so quickly. The link is https://www.twentisphere.com. It’s behind a password which is: HelloTwentisphere
    Please let me know when you’re finished checking the client wants me to change the password back afterwards.

    I have only slightly been able to test with a default theme as the client is very dependant on the theme we’re using ‘Stockholm’ on ThemeForest. All the pages are built using that and Visual Composer so swapping to 2016 theme results in almost nothing being displayed except a pile of shortcodes from visual composer.

    Plugin Author Angelo Mandato

    (@amandato)

    I just tested both the root page and the podcasts page in both Firefox and Chrome and the player works. Perhaps you have something cached in your browser causing the issue?

    Thread Starter Peachey_A

    (@peachey_a)

    The player does work, that is correct. However, on the homepage, if you click ‘podcasts’ in the navigation that page will not load until you refresh. Does this not happen in your browser?

    If it’s a caching issue, that’d be grand, but I refreshed my cache in safari and firefox earlier and still had the issue.

    Thread Starter Peachey_A

    (@peachey_a)

    Hi Angelo,

    I’ve found and resolved the issue. The theme was using an animation library to change pages, and since disabling it everything works.

    Before solving it, I noticed that the data object became undefined when trying to change pages. Perhaps the plugin is trying to get data but is still referencing the old page as it doesn’t get unloaded properly. Just a thought. Either way, we’re all good!

    Cheers,
    Andrew

    Plugin Author Angelo Mandato

    (@amandato)

    Hello @peachey_a,

    Glad to hear you have it working!

    I am not familiar with the playlist player’s JavaScript to be honest, that is the built-in playlist player in WordPress. All we did was re-populate playlist player with data based on the podcast.

    If you have a moment we would greatly appreciate if you could leave our plugin a review. Thanks!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Pages with playlist player don’t load properly.’ is closed to new replies.