Duplicate notice definition using typecho plug-in

Source: Internet
Author: User
I used two plug-ins and both of them had the same warning. Notice: Constant _ TYPECHO_ADMIN _ alreadydefinedinvarwwwhtmlfayfox. comwhisacommon. phponline6.
Notice: Constant __TYPECHO_ADMIN__ already defined in /var/www/html/fayfox.com/whis/a/common.php on line 6
How can this problem be solved?

Reply content:

I used two plug-ins and both of them had the same warning.
Notice: Constant __TYPECHO_ADMIN__ already defined in /var/www/html/fayfox.com/whis/a/common.php on line 6
How can this problem be solved?

It is estimated that this file is already require.
You try to modify the code, if (! Defined ('TYPECHO_ADMIN') Define ('TYPECHO_ADMIN', 'Xxxxxxx ');
Or are you looking for other places that define this always bright: grep-nri'TYPECHO_ADMIN'/Var/www/html/fayfox.com /*
Http://www.typechodev.com/index.php/archives/60/

Vim/var/www/html/fayfox.com/whis/a/common.php

Set Row 6

define('__TYPECHO_ADMIN__', true);

Changed:

if (!defined('__TYPECHO_ADMIN__')) {        define('__TYPECHO_ADMIN__', true);}
Related Article

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.