Critical error on drama page
complete
Amrayu78
Hi Max,
There's another page that has the critical error.
Here's the page: https://drama-otaku.com/drama/happy-of-the-end/
What I did notice is that the Thanks field has an empty one at the top, so I removed it. I'm also attaching some errors that I see on the page in devtools. It mentions something about JQuery, but I'm not sure.
Amrayu78
complete
Amrayu78
I was also checking WP and they said we may need to repair the tables?
Amrayu78
Max Romanchenko: Can you check this? The issue is happening again.
Max Romanchenko
Amrayu78 Yes, of course. I'll try to dig a little deeper. I think this is a page rendering error (i.e. it is related to php or some plugin)
Max Romanchenko
Amrayu78 I found the problem. It's a Toolset relationship... It seems they changed something and now what used to work is causing an error. I fixed many of the views and the drama template.
One thing left is the songs.... Could you please send me a link to a drama that has all the songs? I'll try to redo it since it's impossible to display it in the current setup due to the error.
Amrayu78
Max Romanchenko Hi max, users are reporting that linked subtitle projects aren’t available on drama pages. I’ll find you a drama that contains all songs.
Amrayu78
Max Romanchenko: Hi Max, you can try this: https://drama-otaku.com/drama/acmagame/
I just added a dummy song to make all the song slots filled.
Max Romanchenko
Amrayu78 I apologize for the temporary inconvenience. I was redoing this view with Subtitle Projects as it was causing a critical error too. Everything should be ok now, please check it.
Amrayu78
Max Romanchenko: hi max, we checked some dramas and they are now linked! Thank you. Are movies and specials affected too?
What about theme songs?
Amrayu78
We found one with all three theme songs linked before the plugin update. https://drama-otaku.com/drama/night-doctor/
Max Romanchenko
Amrayu78 No, movies and spesials are unaffected. I've only worked with dramas. Thanks for the link to dramas with songs. I'll let you know when I find a solution and finish it. Overall there shouldn't be an error anymore.
Amrayu78
Max Romanchenko: Hi Max, is there a reason why only Dramas were affected? Specials and Movies are similar right?
Thanks for everything! I'll send you something for your troubles.
Amrayu78
Max Romanchenko: There's high load on the server right now. If you want me to reboot it, let me know.
Max Romanchenko
Amrayu78 Sorry for the late reply. Looks like you already did a server reboot, since it came back to normal. I'd like to inform you that I've redone the items in the screenshot for dramas, movies and specials. Now the cast, crew and song data is not loaded twice, but copied from the already loaded bottom of the page using js. This speeds up the page loading somewhat and reduces the load on the database. Also it removed a fatal error on some drama pages. Please check it out.
Regarding the question of why this error occurred on the drama pages. I'm wondering the same thing. The only thing I can think of is that they're not the same thing, they are different post types and they have different relationships with the substitle project, people, and so on. I know for sure from the debug file that the error looks something like this:
PHP Fatal error: Uncaught Toolset_Element_Exception_Element_Doesnt_Exist: Unable to load post 937163 (937163).
The search led me to a relationship, and specifically it affected all the views that query the data in any relationship. I fixed this and queried a specific relationship for each view. This isn't ideal as it required duplicate views, but this trick worked.
Amrayu78
Max Romanchenko: Thank you for explaining! If there's a Toolset plugin update next time, I will check with you first. But I'm hoping this won't happen again. I will send you something for your time.
I may ask you to look into the People pages again, because the severe load on this affects the server drastically. I've turned off the caching of the people pages since people were seeing the "logged out" pages instead. I will create a new canny ticket related to this. But it's not a major priority, just whenever you have time to come up with a solution.
Thank you again!
I do notice that the drama pages are loading faster than usual, so thanks!
Max Romanchenko
Amrayu78 I have no words... I'm very grateful to you. I know that your project also needs money. It is very generous of you to think of me in such a situation. I will do my best to improve the loading of people's pages.
Thank you!