The website created by ThinkPHP displays Fatalerror: CannotredeclareclassThinkin after editing the video in the background.

Source: Internet
Author: User
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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.