Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cannot upload the file #749

Open
mo-shahab opened this issue Sep 19, 2023 · 0 comments
Open

cannot upload the file #749

mo-shahab opened this issue Sep 19, 2023 · 0 comments

Comments

@mo-shahab
Copy link

mo-shahab commented Sep 19, 2023

System Information
Podcast Generator Version: 3.3
Webserver: wamp server
PHP Version: 8.2.0

Podcast Generator Config

<?php
$podcastgen_version = '3.3'; // Version

$first_installation = 1694773471;

CENSORED installationKey

$scriptlang = 'en_US';

CENSORED url

$absoluteurl = 'C:/dev/PodcastGenerator/PodcastGenerator/'; // 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 = 'yes'; // 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.

$customtagsenabled = 'no';   // Advanced functionality for custom RSS tag input

$timezone = '';              // Timezone used for displaying dates and times

#####################
# XML Feed stuff

$podcast_guid = ''; // Globally unique identifier for your podcast

CENSORED podcast_title

CENSORED podcast_subtitle

CENSORED podcast_description

$podcast_cover = 'itunes_image.jpg';

CENSORED author_name

CENSORED author_email

# The e-mail of the technical admin of the podcast
$webmaster = 'podcastadmin@example.com';

$itunes_category[0] = 'Arts'; // iTunes categories (mainCategory:subcategory)
$itunes_category[1] = '';
$itunes_category[2] = '';

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

$feed_language = 'en';

$feed_sort = 'timestamp'; // sort method used to order episodes in the feed (by timestamp or by season/episode number)

$feed_locked = ''; // podcast:locked status ('yes', 'no', '' for off)

CENSORED copyright

$feed_encoding = 'utf-8';

CENSORED explicit_podcast

$users_json = '{"shahab": "$2y$10$8xVML8wiyDZCtIFcIdme9uTLr3FwFovS2NjFWmZhUj3WwrhDoV1Mu"}';

#####################
# WebSub

$websub_server = '';

#####################
# Podcast Index

$pi_api_key = "";
$pi_api_secret = "";

$pi_podcast_id = 0; // is the podcast in Podcast Index? This is its show ID there.

#####################
# WebSub

$websub_server = "https://pubsubhubbub.appspot.com/";

#####################
# Live Items

$liveitems_enabled = 'yes';

$liveitems_default_stream = '';

$liveitems_default_mimetype = '';

$liveitems_max_pending = 2;

$liveitems_latest_pending = 14;

$liveitems_max_ended = 1;

$liveitems_earliest_ended = 7;

$livefile = 'live.php';    // Path of the live index file

// END OF CONFIG

Description of your problem:
why do i keep getting this error in here

Deprecated: htmlspecialchars(): Passing null to parameter #1 ($string) of type string is deprecated in 
C:\dev\PodcastGenerator\PodcastGenerator\admin\views\episode_edit_form.php on line 125 Call Stack 
#TimeMemoryFunctionLocation 10.0026364360{main}( )...\episodes_upload.php:0 20.0671388584episode_edit_form( $model = class 
PodcastGenerator\Models\Admin\EpisodeFormModel { protected array $validationMessages = []; private ?string $name = NULL; 
public ?string $guid = '47cb2f6b-ab6b-47ec-b559-6a98c68460bd'; public string $title = ''; public string $shortdesc = ''; public ?string 
$longdesc = NULL; public array $categories = []; private ?int $filemtime = 1695122416; public string $date = '2023-09-19'; public 
string $time = '11:20'; public ?string $coverart = NULL; public ?string $coverartPath = NULL; private bool $hasNewCoverImage = 
FALSE; public ?string $episodenum = NULL; public ?string $seasonnum = NULL; public ?string $itunesKeywords = NULL; public ?string 
$explicit = 'no'; public ?string $authorname = NULL; public ?string $authoremail = NULL; public ?string $customtags = NULL; public 
string $episodeType = 'full'; public ?string $itunesBlock = NULL }, $viewMeta = class stdClass { public $title = 'Upload Episode'; public 
$action = 'episodes_upload.php'; public $success = NULL; public $error = NULL; public $newItem = TRUE }, $config = class 
PodcastGenerator\Configuration { private string $path = 'C:\\dev\\PodcastGenerator\\PodcastGenerator\\config.php'; private array 
$map = ['podcastgen_version' => '3.3', 'first_installation' => 1694773471, 'installationKey' => '4fQs9l3b', 'scriptlang' => 'en_US', 'url' 
=> 'http://podcast-generator/', 'absoluteurl' => 'C:/dev/PodcastGenerator/PodcastGenerator/', 'theme_path' => 'themes/default/', 
'upload_dir' => 'media/', 'img_dir' => 'images/', 'feed_dir' => '', 'max_recent' => 'all', 'recent_episode_in_feed' => 'All', 
'episodeperpage' => 10, 'enablestreaming' => 'yes', 'freebox' => 'yes', 'enablepgnewsinadmin' => 'yes', 'strictfilenamepolicy' => 'no', 
'categoriesenabled' => 'yes', 'cronAutoIndex' => 1, 'cronAutoRegenerateRSS' => 1, 'indexfile' => 'index.php', 'podcastPassword' => '', 
'customtagsenabled' => 'no', 'timezone' => '', 'podcast_guid' => '', 'podcast_title' => 'Podcast Title', 'podcast_subtitle' => 'Subtitle', 
'podcast_description' => 'A little description of your podcast.', 'podcast_cover' => 'itunes_image.jpg', 'author_name' => 'Podcast 
Generator User', 'author_email' => 'podcastgenerator@example.com', 'webmaster' => 'podcastadmin@example.com', 
'itunes_category[0]' => 'Arts', 'itunes_category[1]' => '', 'itunes_category[2]' => '', 'link' => '?name=', 'feed_language' => 'en', 
'feed_sort' => 'timestamp', 'feed_locked' => '', 'copyright' => 'All rights reserved', 'feed_encoding' => 'utf-8', 'explicit_podcast' => 
'no', 'users_json' => '{"shahab": "$2y$10$8xVML8wiyDZCtIFcIdme9uTLr3FwFovS2NjFWmZhUj3WwrhDoV1Mu"}', 'websub_server' => 
'https://pubsubhubbub.appspot.com/', 'pi_api_key' => '', 'pi_api_secret' => '', 'pi_podcast_id' => 0, 'liveitems_enabled' => 'yes', 
'liveitems_default_stream' => '', 'liveitems_default_mimetype' => '', 'liveitems_max_pending' => 2, 'liveitems_latest_pending' => 14, 
'liveitems_max_ended' => 1, 'liveitems_earliest_ended' => 7, 'livefile' => 'live.php'] } )...\episodes_upload.php:96 
30.0725388728[htmlspecialchars](http://www.php.net/function.htmlspecialchars)( $string = NULL )...\episode_edit_form.php:125 ">
  • it is not an error actually but a warning from php, it appears beneath the podcast image thing, and also there is such warning below the season numbers, episode numbers and all that additional details while uploading the file

  • i also faced the issues while uploading the videos, that some videos gets uploaded and some dont, i get this error here
    Episode file failed validation. i dont know the reason for. because the files that get uploaded are no different from those files that are not getting uploaded, what are the file validations that are even being done, is it the name of the file or type of the file ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant