ThinkPHP's website experienced Fatalerror: CannotredeclareclassThinkin after editing the video in the background. my website is a website built with the Feifei video system. as long as I edit the collected video in the background, after several consecutive edits, Fatal error: Cannot redeclare class Think in E: \ wwwroot \ feifeicms \ Runtime \ ~ may easily occur \~ The prompt of runtime. php on line 2 shows that the website crashes.
Ask Me Why, I am so sad!
Reply to discussion (solution)
Check whether there are repeated inclusion issues:
Open E: \ wwwroot \ feifeicms \ Runtime \~ Runtime. php may cause errors in the second line.
Thank you for your reply. In the second line, I compared the source file N multiple times, without any difference. After editing a video in the background, the website may crash immediately or a Fatal error may occur in a few hours. If you do not edit a video, no error is generated regardless of the access volume. Therefore, I am sure it is a problem during video editing. The strange thing is that the program is a mature program of the Feifei film and television system. I have not made any changes. I have asked other webmasters who use the same program for video stations.
Clear the cache, enable the debug switch for index. php, and run it.
Enable debug
I finally found the reason.