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

Error 500: Episode list Error when 3+ Uploads #742

Open
panicco opened this issue May 1, 2023 · 5 comments
Open

Error 500: Episode list Error when 3+ Uploads #742

panicco opened this issue May 1, 2023 · 5 comments

Comments

@panicco
Copy link

panicco commented May 1, 2023

System Information
Podcast Generator Version: 3.2.9
Webserver: nginx
PHP Version: 8.1

Description
Fresh install and setup, uploaded 2 episodes set to launch in a few days. went to upload a third to publish in a few days aswell and
the episode list will no longer load. this is the same for bulk, I am unable to edit or see the list of uploads at all. show error 500.
I am able to delete 1 (3rd) upload's files (mp3/xml) and the list will load again.

If I retry with different file name or dates/ time it still will throw error 500 if 3+ files are uploaded.

Expected behavior
Upload More than Two Scheduled Podcasts

Actual behavior
Fatal error 500,
podcast list and bulk download throw's error 500 after showing upload successful.

How to reproduce

  1. install
  2. Set up
  3. Upload 2 Podcast episodes under same category (publish in future)
  4. Upload 3rd Podcast under same category (publish in future)
  5. Navigate to View all Episodes Or Bulk Download
  6. Error 500 Unable to Handle Request

Nginx Error Log
`
2023/05/02 02:28:49 [error] 157750#157750: *9706 FastCGI sent in stderr: "PHP message: PHP Warning: Trying to access array offset on value of type int in /var/www/html/PodcastGenerator/core/episodes.php on line 33PHP message: PHP Warning: Trying to access array offset on value of type int in /var/www/html/PodcastGenerator/core/episodes.php on line 33PHP message: cURL functions are not available" while reading response header from upstream, client: 192.168.1.1, server: podcast.site.com.com, request: "POST /admin/episodes_upload.php HTTP/1.1", upstream: "fastcgi://unix:/run/php/php8.1-fpm.sock:", host: "podcast.site.com.com", referrer: "https://podcast.site.com.com/admin/episodes_upload.php"

2023/05/02 02:28:51 [error] 157750#157750: *9706 FastCGI sent in stderr: "PHP message: PHP Warning: Trying to access array offset on value of type int in /var/www/html/PodcastGenerator/core/episodes.php on line 33PHP message: PHP Warning: Trying to access array offset on value of type int in /var/www/html/PodcastGenerator/core/episodes.php on line 33PHP message: PHP Fatal error: Cannot redeclare getValueOrDefault() (previously declared in /var/www/html/PodcastGenerator/core/episodes.php:45) in /var/www/html/PodcastGenerator/core/episodes.php on line 45" while reading response header from upstream, client: 192.168.1.1, server: podcast.site.com.com, request: "GET /admin/episodes_list.php HTTP/1.1", upstream: "fastcgi://unix:/run/php/php8.1-fpm.sock:", host: "podcast.site.com", referrer: "https://podcast.site.com/admin/episodes_upload.php"

`

Updated error logs we incomplete

@panicco
Copy link
Author

panicco commented May 2, 2023

May have solved the issue with the latest Core/episodes.php File.
will test more.

@jwillo
Copy link

jwillo commented Jun 15, 2023

I am having the same issue

@jwillo
Copy link

jwillo commented Jun 15, 2023

May have solved the issue with the latest Core/episodes.php File. will test more.

Where did you get the latest episodes.php file, the newest one I can find is with release 3.2.9?

@panicco
Copy link
Author

panicco commented Jun 17, 2023

May have solved the issue with the latest Core/episodes.php File. will test more.

Where did you get the latest episodes.php file, the newest one I can find is with release 3.2.9?

Use the file from the live code main repository not the release files. The episodes.php file from 3.2.9 release causes this issue.

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

2 participants