Forum

Thread tagged as: Podcasts

Podcasts not displaying?

I am unclear why the Podcast page is not displaying the lost of episodes:

https://georgetownalliance.ca/messages/podcasts.php

<?php perch_podcasts_episodes(perch_get('s'),array( 'paginate'=>true, 'count'=>4, )); ?>

Kevin Brandon

Kevin Brandon 0 points

  • 6 years ago
Rachel Andrew

Rachel Andrew 394 points
Perch Support

Can we see your Diagnostic Report and the template you are using?

Thanks Rachel,

Here is the Diagnostics Report (I am not sure if there is information that I should leave out):

PERCH INFORMATION

Perch: 2.8.4 Production mode: Production (100) Installed apps: content (2.8.4), assets (2.8.4), categories (2.8.4), perch_podcasts (1.0), perch_podcasts (1.1), perch_backup (1.2) DB driver: PDO DB tables: perch2_categories, perch2_category_counts, perch2_category_sets, perch2_comments, perch2_comments_votes, perch2_content_index, perch2_content_items, perch2_content_regions, perch2_events, perch2_events_categories, perch2_events_to_categories, perch2_forms, perch2_forms_responses, perch2_gallery_albums, perch2_gallery_image_versions, perch2_gallery_images, perch2_navigation, perch2_navigation_pages, perch2_page_templates, perch2_pages, perch2_podcasts, perch2_podcasts_downloads, perch2_podcasts_episodes, perch2_resource_log, perch2_resource_tags, perch2_resources, perch2_resources_to_tags, perch2_settings, perch2_user_privileges, perch2_user_role_privileges, perch2_user_roles, perch2_users Users: 11 App runtimes: <?php $apps_list = array( 'content', 'categories', ); Editor plug-ins: redactor, z-redactor, markitup H1: f958e11d9aa921f19bcb5641227edc2d L1: a2e77f90c19a9adb3dbe346317c2c9ec headerColour: #ffffff content_singlePageEdit: 1 helpURL: https://grabaperch.com/support hideBranding: 1 content_collapseList: 1 lang: en-gb update_2.2.7: done latest_version: 2.8.8 headerScheme: light dashboard: 1 perch_backup_mysqldump_path: perch_comments_akismet_key: perch_blog_post_url: /blog/post.php?s={postSlug} perch_blog_slug_format: %Y-%m-%d-{postTitle} perch_blog_akismet_key: perch_events_detail_url: /events/event.php?event={eventSlug} perch_gallery_bucket_mode: single perch_gallery_bucket: default content_hideNonEditableRegions: 0 perch_blog_comment_notify: 0 perch_gallery_basicUpload: 0 logoPath: /perch/resources/1379801571_gac-logo.png update_2.2.9: done update_2.2.11: done update_2.3: done update_2.3.1: done update_2.3.2: done perch_events_update: 1.8 siteURL: https://www.georgetownalliance.ca/ perch_gallery_update: 2.7 on_sale_version: 2.8.13 update_2.4.9: done update_2.5: done update_2.6.3: done hide_pwd_reset: 0 content_frontend_edit: 0 update_2.7.10: done update_2.8.4: done PERCH_DEVELOPMENT: 10 PERCH_STAGING: 50 PERCH_PRODUCTION: 100 PERCH_DB_USERNAME: powerperch PERCH_DB_SERVER: georgetownallianceca.ipowermysql.com PERCH_DB_DATABASE: georgetownallperch PERCH_DB_PREFIX: perch2_ PERCH_TZ: UTC PERCH_EMAIL_FROM: rob@georgetownalliance.ca PERCH_EMAIL_FROM_NAME: Rob Brockman PERCH_LOGINPATH: /perch PERCH_PATH: /hermes/bosoraweb116/b1261/ipw.georgetownallianceca/public_html/perch PERCH_CORE: /hermes/bosoraweb116/b1261/ipw.georgetownallianceca/public_html/perch/core PERCH_RESFILEPATH: /hermes/bosoraweb116/b1261/ipw.georgetownallianceca/public_html/perch/resources PERCH_RESPATH: /perch/resources PERCH_HTML5: 1 PERCH_RUNWAY: PERCH_ERROR_MODE: DIE PERCH_DATE_LONG: %d %B %Y PERCH_DATE_SHORT: %d %b %Y PERCH_TIME_SHORT: %H:%M PERCH_TIME_LONG: %H:%M:%S PERCH_DEBUG: PERCH_PREVIEW_ARG: preview PERCH_TEMPLATE_PATH: /hermes/bosoraweb116/b1261/ipw.georgetownallianceca/public_html/perch/templates PERCH_DEFAULT_DOC: index.php PERCH_DEFAULT_EXT: .php PERCH_PRODUCTION_MODE: 100 PERCH_RWD: PERCH_HTML_ENTITIES: PERCH_SSL: PERCH_STRIPSLASHES: PERCH_PROGRESSIVE_FLUSH: 1 PERCH_AUTH_PLUGIN: PERCH_DB_CHARSET: utf8 PERCH_DB_PORT: PERCH_DB_SOCKET: HOSTING SETTINGS

PHP: 5.3.29 Zend: 2.3.0 OS: Linux SAPI: cgi-fcgi Safe mode: not detected MySQL client: 5.5.41 MySQL server: 5.5.44-0ubuntu0.12.04.1-log Extensions: Core, date, ereg, libxml, openssl, pcre, sqlite3, zlib, bcmath, calendar, ctype, curl, dba, dom, hash, fileinfo, filter, ftp, gd, gettext, SPL, iconv, session, json, mbstring, mcrypt, mysql, mysqli, standard, PDO, pdo_mysql, pdo_sqlite, Phar, posix, pspell, Reflection, imap, SimpleXML, sockets, SQLite, exif, tokenizer, wddx, xml, xmlreader, xmlrpc, xmlwriter, xsl, zip, cgi-fcgi, mhash GD: Yes ImageMagick: No PHP max upload size: 20M PHP max form post size: 20M PHP memory limit: 128M Total max uploadable file size: 20M Resource folder writeable: Yes Session timeout: 24 minutes Native JSON: Yes Filter functions: Yes Transliteration functions: No PATH: /usr/local/bin:/usr/bin:/bin SCRIPT_NAME: /perch/core/settings/diagnostics/index.php SERVER_NAME: georgetownalliance.ca HTTP_REFERER: https://georgetownalliance.ca/perch/?r=%2Fperch%2Fcore%2Fsettings%2Fdiagnostics%2F%3Fextended SERVER_ADMIN: cgiadmin@yourhostingaccount.com HTTP_ACCEPT_ENCODING: gzip, deflate REQUEST_METHOD: GET HTTP_ACCEPT: text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8 SCRIPT_URI: https://georgetownalliance.ca/perch/core/settings/diagnostics/ SCRIPT_FILENAME: /home/users/web/b1261/ipw.georgetownallianceca/public_html/perch/core/settings/diagnostics/index.php HTTP_ORIGIN: https://georgetownalliance.ca SERVER_SOFTWARE: Apache/2 QUERY_STRING: extended REMOTE_PORT: 37302 HTTP_USER_AGENT: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/600.8.9 (KHTML, like Gecko) Version/8.0.8 Safari/600.8.9 SERVER_PORT: 80 HTTP_ACCEPT_LANGUAGE: en-us HTTP_COOKIE: _ga=GA1.2.387788236.1419458687; cmsa=1; PHPSESSID=d7e3c867cc0b96efcc8e1a401840560c REMOTE_ADDR: 69.196.182.117 SERVER_PROTOCOL: HTTP/1.1 REQUEST_URI: /perch/core/settings/diagnostics/?extended GATEWAY_INTERFACE: CGI/1.1 HTTP_X_VARNISH: 765643987 SCRIPT_URL: /perch/core/settings/diagnostics/ DOCUMENT_ROOT: /home/users/web/b1261/ipw.georgetownallianceca/public_html HTTP_HOST: georgetownalliance.ca UNIQUE_ID: VeO4rwoUcHMAAARketMAAAAJ TZ: EST5EDT PHP_SELF: /perch/core/settings/diagnostics/index.php REQUEST_TIME: 1440987311 argc: 1

Here is the page template file that I am using:

<?php include('../perch/runtime.php'); ?> <!doctype html> <html> <head> <meta charset="UTF-8"> <title>Georgetown Alliance Church - Message Series</title> <!-- css & javascript links --> </head>

<body> <div id="wrapper"> <?php perch_content('header'); ?> <div id="main"> <nav class="nav_menu"> <?php perch_pages_navigation(array( 'from-path' => '/', 'levels' => 3, 'template' => 'item.html' )); ?> </nav> <div id="banner"> <?php perch_content('banner image'); ?> </div> <aside> <!-- <?php perch_pages_navigation(array( 'from-path'=>'1', 'include-parent' => true, 'from-level'=>3, )); ?> --> <?php perch_content('sidebar'); ?> </aside> <article>

    <div class="primary-content">
        <h2>Georgetown Alliance Messages:</h2>

        <?php perch_podcasts_episodes(perch_get('s'),array(
            'paginate'=>true,
            'count'=>4,
        )); ?>

    </div>

    </article>
    <footer>
    <div id="footer-address">
        <?php perch_content('footer address'); ?>
    </div>
    <div id="social">
        <ul>
            <?php perch_content('footer social media'); ?>
       </ul>
    </div>
    </footer>        
</div>

</div> </body>

</html>

Rachel Andrew

Rachel Andrew 394 points
Perch Support

So the first thing to do is make sure you are running the latest version of Perch as you are quite out of date. Let me know if the problem persists.

Hi Rachel,

Updated the core to Perch v2.8.13. Still the same issue where the podcast episodes are not displaying. https://georgetownalliance.ca/messages/podcasts.php

I wonder if it may have something to do with the episode code or the episode file.

<?php perch_podcasts_episodes(perch_get('s'),array( 'paginate'=>true, 'count'=>4, )); ?>

Nothing is displaying in the HTML page. The podcasts are displaying in iTunes, up until Aug. 2, 2015 (episode 52).

In the Perch Podcast App lists podcasts until Aug. 30 (episode 57).

Thank you,

Drew McLellan

Drew McLellan 2638 points
Perch Support

What's the value of s at that point?

Hi Drew,

I understood 's' meant 'show'? Is that correct? There is only one show for this website/podcast.

Drew McLellan

Drew McLellan 2638 points
Perch Support

You're using perch_get('s') to pull in the value of s from the URL. What is that value?

Hi Drew, I don't know where to find that answer for you. Can you help me?

I also noticed that I added my HTML template for the page and not the template for the addons/apps/perch_podcasts/templates/podcasts/ did you want to see one of these template files?

Thank you,

Rachel Andrew

Rachel Andrew 394 points
Perch Support

What is the value of s on the QueryString? If you are using perch_get('s') then you must have a querystring that looks like:

mypage.php?s=this-is-the-value

Hi Rachel,

I found in an email this link https://www.georgetownalliance.ca/podcasts/rss.php?s=georgetown-alliance

I don't see the s= in any of my php files. Should the value normally be in the template episode.html or show.html files?

Thank you for your patience as I try to retrace my steps from over a year ago.

Drew McLellan

Drew McLellan 2638 points
Perch Support

What are you trying to achieve on the page?

Thanks Drew,

My main issues is that the podcasts were working - displaying the 53 podcast episodes both on the website ( https://georgetownalliance.ca/messages/podcasts.php )and on iTunes ( https://itunes.apple.com/ca/podcast/georgetown-alliance-church/id276450724?mt=2 ) until August 9th.

I believe this is when I updated Perch the first time and then realized that the podcast app needed to be updated as well. So I updated that quickly as well.

Another curious thing is that in the admin section of Perch the Apps drop down menu, the podcasts app is listed twice.

My goal is to get the podcast episodes to display on the website and in iTunes again.

Does that help?

Drew McLellan

Drew McLellan 2638 points
Perch Support

Do you have the old version of the app still installed?

I removed the old podcast folder, and the second podcast link in the dropdown menu is now not displaying. I had renamed the old folder thinking that it would not interfere with the updated podcast app.

Thank you,

Now when I run a validator on the rss.php file ( https://www.georgetownalliance.ca/podcasts/rss.php )

I have a returned error on line 3, column 0: XML parsing error: <unknown>:3:1: no element found

Here is the code from the rss.php file that follows the <channel> tag:

<?php
    perch_podcasts_show(perch_get('s'), array('template'=>'rss_channel.html'));
    perch_podcasts_episodes(perch_get('s'), array('template'=>'rss_items.html'));
?>

I am unclear if the rss.php file cannot connect to the files or if there is something wrong with the files themselves.

Do you need to see the code from both the rss_channel.html and the rss_items.html

Thank you,

Drew McLellan

Drew McLellan 2638 points
Perch Support

Renaming the folder isn't enough - you now have two copies installed. Remove the old one.

That RSS URL won't work without a slug being added. Look again at your code. You're using perch_get('s') to read the value of s from the URL, but you don't have s on the URL.