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

Blank page when saving new title #98

Open
nickcharles23 opened this issue Jul 12, 2024 · 3 comments
Open

Blank page when saving new title #98

nickcharles23 opened this issue Jul 12, 2024 · 3 comments

Comments

@nickcharles23
Copy link

Hi,
Just checking if anyone has seen this issue. I added a new title a few weeks back and when I wanted to add a new title yesterday I get a blank page when clicking on the save or save and add new title.

I reinstalled php4dvd using upgrade procedure and cleared browser cache and still get a blank web page after save. Still using the same php version 8.2 and not aware of any server files being change. This issue seems similar to issue 93 that has been posted. Editing titles seem to be working without any issues.

Here is the imdb data ID I am trying to add is http://localhost/php4dvd/?go=add&imdbid=7733396. All the imdb available data is populated in the fields. I have 1461 titles save in the MYSQL database.

Can anyone give any guidance on helping resolve this issue. Thanks

@jreklund
Copy link
Owner

jreklund commented Jul 12, 2024

Do you have any error logs? Can you add another title except that one?

@nickcharles23
Copy link
Author

I have checked the php and mysql logs and found nothing.

I can add a new movie title and save it using the search function.

But can't using the hack for adding tv titles as http://localhost/php4dvd/?go=add&imdbid=7733396 or 7733388 both resulting in getting a blank page.

I was able to enter a new tv title with the id 0676168.

Since I can add some tv titles and not others. This leads me to believe it has to do with IMDB fields that have null data being downloaded or non at all /empty. Then pfp4dvd is failing on saving the data into mysql due to a field in mysql requiring non null data or an null. Thus not competing the save process in mysql in resulting seeing a blank page.

Possible fix to ensure the add title page have all fields have a default to be null. Or the mysql schema table fields be set to default val nullable to yes except title and year. Currently all are set to no.

@jreklund
Copy link
Owner

Based on 7733396 and 7733388 compared to 0676168 some number fields aren't populated. Add a 0/1 in those fields and it should save just fine for now.

You should troubleshoot why you aren't getting any error logs as these type of problems will be logged there.

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