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

Adding a tvshow catalog gives error: PHP Fatal error: Uncaught Error: Class "tvshow" not found #3921

Closed
gibboni opened this issue Apr 5, 2024 · 4 comments

Comments

@gibboni
Copy link

gibboni commented Apr 5, 2024

Describe the bug

When I add a 'tvshow' catalog the web UI immediately displays Server-Sent Events connection error. Re-connection...

Apache error log has this message repeating:
PHP Fatal error: Uncaught Error: Class "tvshow" not found in /var/www/ampache/src/Repository/Model/Catalog.php:1939

The catalog is created and Ampache finds all the media files correctly but it keeps displaying the error message in a loop.

To reproduce

Steps to reproduce the behavior:

  1. Create 'tvshow' catalog

Environment

  • Ampache version: tested with 6.3.1 and develop branch (commit 65d7261)
  • Web server + version: Apache 2.4.57 with php 8.2
  • Server operating system: Ubuntu 23.10.
  • Client operating system: Windows with Firefox

Edit: added the missing line number in the error message

@lachlan-00
Copy link
Member

you'll have to include the line number from the error line. its usually at the end in brackets e.g. (1039)

it's possibly in a few areas in that class where there are generic items created from variables

@gibboni
Copy link
Author

gibboni commented Apr 8, 2024

Sorry! I don't know why I didn't notice that it was missing. I added the line number to my post.

@lachlan-00
Copy link
Member

cool, that's what i thought, gathering art.

it's actually missing the class in the mapper. i'll send that now
image

@lachlan-00
Copy link
Member

Class "tvshow" means we tried to find th eclass by tvshow didn't match anything in the mapper. this is all good now. i'll be doing a release next week probably

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

No branches or pull requests

2 participants