PodcastGenerator / PodcastGenerator

Open Source Podcast Publishing Solution since 2006
http://www.podcastgenerator.net
GNU General Public License v3.0
575 stars 159 forks source link

"Episode does not exist" but it does #333

Open steveincolorado opened 3 years ago

steveincolorado commented 3 years ago

Screenshot 2020-09-27 164244 Screenshot 2020-09-27 165425

System Information Podcast Generator Version: 3.1 Webserver: unsure how to find this PHP Version: 7.0.33 (my server has 5.6 but when I installed PG using Softaculous, it found my PHP version too low, and asked "Do you wish to enable PHP 7.0.33?" I said yes.

Podcast Generator Config

<?php

$podcastgen_version = "3.1"; // Version

$first_installation = 1598721279;

$installationKey = "rctfg59h";

$scriptlang = "en_US";

$url = "https://coloradocarsandcoffee.com/podcast/";

$absoluteurl = "/home/clarkse/public_html/coloradocarsandcoffee.com/podcast/"; // The location on the server

$theme_path = "themes/default/";

$upload_dir = "media/"; // "media/" the default folder (Trailing slash required). Set chmod 755

$img_dir = "images/"; // (Trailing slash required). Set chmod 755

$feed_dir = ""; // Where to create feed.xml (empty value = root directory). Set chmod 755

$max_recent = "all"; // How many file to show in the home page

$recent_episode_in_feed = "All"; // How many file to show in the XML feed (1,2,5 etc.. or "All")

$episodeperpage = 10;

$enablestreaming = "yes"; // Enable mp3 streaming? ("yes" or "no")

$freebox = "no"; // enable freely customizable box

$enablepgnewsinadmin = "yes";

$strictfilenamepolicy = "no"; // strictly rename files (just characters A to Z and numbers) 

$categoriesenabled = "yes";

$cronAutoIndex = 1; //Auto Index New Episodes via Cron

$cronAutoRegenerateRSS = 1; //Auto regenerate RSS via Cron

$indexfile = "index.php";    // Path of the index file

$podcastPassword = "";       // Password to protect the podcast generator webpages, this will NOT protect the audio or XML files. Leave blank to disable.

#####################

# XML Feed stuff

$podcast_title = "Colorado Cars and Coffee";

$podcast_subtitle = "Tickling your eardrums with a 10mm socket";

$podcast_description = "Join us for a listen as the CO C&C team update you on weekend events";C team update you on weekend events";

$author_name = "podcastermaster";

$author_email = "admin@coloradocarsandcoffee.com";

$itunes_category[0] = "Leisure:Automotive"; // iTunes categories (mainCategory:subcategory)

$itunes_category[1] = "News";

$itunes_category[2] = "Leisure";

$link = "?name="; // permalink URL of single episode (appears in the <link> and <guid> tags in the feed)

$feed_language = "en";

$copyright = "All rights reserved";   // Your copyright notice (e.g CC-BY)

$feed_encoding = "utf-8";

$explicit_podcast = "no"; //does your podcast contain explicit language? ("yes" or "no")

// END OF CONFIG

Description of your problem: Upload seemed to go well for my latest podcast mp3. However, I wanted to edit the description, and then I saw this "Episode does not exist" error when I selected "More" on the page. On the main Podcast page, the podcast is visible and playable, but going to that podcast's page gets the error.

klein0r commented 2 years ago

I have the same issue with the latest version 3.1.4.1. I've check the source code and the process here:

https://github.com/PodcastGenerator/PodcastGenerator/blob/7152b33b02dc6e858a724050672702b0823c01ad/PodcastGenerator/core/episodes.php#L10-L93

So I found this code

https://github.com/PodcastGenerator/PodcastGenerator/blob/7152b33b02dc6e858a724050672702b0823c01ad/PodcastGenerator/index.php#L39-L41

After changing the config of max_recent to all everything else worked:

$max_recent = 'all'; // How many file to show in the home page

So this issue is just reproducible when max_recent is NOT set to all.

coldacid commented 2 years ago

@klein0r what did you have for max_recent before?

coldacid commented 2 years ago

Also, for editing episodes, there is a new admin page for listing episodes and getting quick access to their edit pages in 3.2.

klein0r commented 2 years ago

@klein0r what did you have for max_recent before?

4