AVideo
AVideo copied to clipboard
[Plugin SubtitleSwitcher] uploadSubtitle.php head.php
@DanielnetoDotCom Danny, check the error:
[03-Sep-2024 13:20:33 America/Sao_Paulo] AVideoLog::ERROR: Time: 2.592s | Limit: 0.7s | Location: path/to/my/streamer/site/plugin/SubtitleSwitcher/uploadSubtitle.php Line 6 [include/head.php] IP=177.149.137.250 backtrace=[{"file":"\/var\/www\/html\/AVideo\/view\/include\/head.php","line":6,"function":"TimeLogEnd","args":["include\/head.php",6]},{"file":"\/var\/www\/html\/AVideo\/objects\/Page.php","line":123,"args":["\/var\/www\/html\/AVideo\/view\/include\/head.php"],"function":"include"},{"file":"\/var\/www\/html\/AVideo\/objects\/Page.php","line":232,"function":"getHead","class":"Page","object":{},"type":"->","args":[]},{"file":"\/var\/www\/html\/AVideo\/objects\/Page.php","line":243,"function":"getPage","class":"Page","object":{},"type":"->","args":[]},{"file":"\/var\/www\/html\/AVideo\/plugin\/SubtitleSwitcher\/uploadSubtitle.php(18) : eval()'d code(1) : eval()'d code","line":226,"function":"print","class":"Page","object":{},"type":"->","args":[]},{"file":"\/var\/www\/html\/AVideo\/plugin\/SubtitleSwitcher\/uploadSubtitle.php(18) : eval()'d code","line":1,"function":"eval"},{"file":"\/var\/www\/html\/AVideo\/plugin\/SubtitleSwitcher\/uploadSubtitle.php","line":18,"function":"eval"}] SCRIPT_NAME: /plugin/SubtitleSwitcher/uploadSubtitle.php
The error occurred in the uploadSubtitle.php file within the SubtitleSwitcher plugin.
Highlighted error line: Line 6 of the include/head.php file.
Backtrace: The backtrace provides a sequence of function calls that led to the error: The error was generated by the TimeLogEnd function on line 6 of head.php. This file was included in Page.php (line 123 and others). The execution flow eventually reaches the uploadSubtitle.php file, where the error occurred. There is a call to the eval function, which could be potentially dangerous or inefficient, and this could be contributing to the excessive execution time.
Possible cause: Excessive execution time is the main issue here. This could be related to a slow or inefficient process within the uploadSubtitle.php file, especially with regard to the eval function.
Using eval() is risky, and in this particular case, it could be adding overhead to the system.
Suggested solutions: Check the code in uploadSubtitle.php, especially around the use of eval(), and consider more efficient alternatives. Review the configured processing timeout if it is appropriate for the functionality. If the issue persists, it may be useful to perform performance profiling of the code, specifically in the areas mentioned in the backtrace.