Forum

Thread tagged as: Question, Problem, Podcasts

Podcast not passing 'show' through to episode

Hi,

I have a strange one with the Podcast app. I installed the app on a site and all seemed to be working fine ... however we didn't launch it. Now the client wants it live and there seems to be a bug. I've tried re-installing the Podcasts app, and replacing all my templates with the example ones - but same issue.

Podcasts home page is fine: https://www.calvarycambridge.uk/podcasts/

The Shows page displays the episodes: https://www.calvarycambridge.uk/podcasts/show.php?s=calvary-cambridge-uk

BUT when you click and episode it doesn't pass the "show" through (s= blank) and the page is empty: https://www.calvarycambridge.uk/podcasts/episode.php?s=&ep=5

IF I manually add the "show" to the URL it works fine: https://www.calvarycambridge.uk/podcasts/episode.php?s=calvary-cambridge-uk&ep=5

I'm a bit lost, because I thought it was something I'd done while customising the templates, but I think I've gone back to a stock install and I'm getting the same issue.

Anyone had similar or any ideas on what to try next?

Thanks! Elliot

Elliot Wilsher

Elliot Wilsher 0 points

  • 4 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

How are you forming your link?

I'm assuming it's coming from the episodes_list.html template

<perch:before>
    <div class="modules">
</perch:before>

<div class="module">
    <a href="episode.php?s=<perch:podcasts id="showSlug" type="slug" />&amp;ep=<perch:podcasts id="episodeNumber" type="text" />">
        <img src="<perch:podcasts id="image" width="1600" height="1600" type="image" />" alt="<perch:podcasts id="showTitle" type="text" escape="true" />" />
        <h3>
            <perch:podcasts id="episodeNumber" type="text" label="Episode number" size="s" />
            <perch:podcasts id="episodeTitle" type="text" label="Title" />
        </h3>
    </a>
    <perch:podcasts id="episodeDate" type="date" label="Date" format="d F y" time="true" />
    <perch:podcasts id="summary" type="textarea" editor="markitup" textile="true" label="Description" size="m" import-from="itunes:summary" />
    <p>Duration: <perch:podcasts id="episodeDurationHMS" type="text" label="Duration" size="m" help="hh:mm:ss" /></p>

</div>

<perch:after>
    </div>
</perch:after>

so

<a href="episode.php?s=<perch:podcasts id="showSlug" type="slug" />&amp;ep=<perch:podcasts id="episodeNumber" type="text" />">
Drew McLellan

Drew McLellan 2638 points
Perch Support

If you add <perch:showall /> do you see the show slug as part of the output?

Drew McLellan

Drew McLellan 2638 points
Perch Support

Are you passing it into the template? I can't remember how this works exactly, but if you have it in the query string then you can pass it into the template without too much trouble.

Not sure - I'm using the example pages and stock templates that come with the app - I wanted to get it working before doing any major customisation.

Drew McLellan

Drew McLellan 2638 points
Perch Support

The example pages should just work, yes. They should list by show and then by episode when you drill down into a show.

Any suggestions ... I think I'm just using the shipped pages / templates ?

Is it possible to completely uninstall the app and start again? and if so, what's the best approach.

Drew McLellan

Drew McLellan 2638 points
Perch Support

The most likely candidate if things are messed up is the database tables. They're all perch3_podcast something. If you delete those (make a backup first) the app will install itself fresh.