Solution to the hacking attempt problem on the ecshop homepage

Source: Internet
Author: User
Tags php file cpanel
As ecshop personal independent malls gradually emerge, many friends may find some problems in using ecshop, such as homepage garbled and hacking attempt on the homepage, the ecshop homepage is garbled and has been mentioned in previous blog posts. So let's talk about the hacking attempt issue today.

(1) cause:

As we all know, hacking attempt means hacking. Is it true that our mall has been attacked by hackers? In fact, this is not the case. In ecshop Mall, orders conflict with each other, or managers conflict with each other in the front and back, and sometimes Network loading and network environment will cause this problem. So how exactly did it happen?
For example, if you set the order to "received" in the user Center, and then set this order to "received" in the background, this problem will occur. This is caused by conflicts between orders. So how should we solve this problem?

(2) solution

Here I use the cpanel control panel on the linux host of zhuji91 for detailed operations. Generally, this problem occurs when the statements in the admin/order. Php file are incorrect. You only need to check whether the statements are correct.

Step 1: Open cpanel, go to the file manager, select your own ecshop website, click to enter, select the admin/order. Php file, and click edit in the email.

 

Step 2: open this file and find define ('in _ ECS', true). If not, add it. If yes, this statement may be caused by a network environment or order conflict and cannot be loaded.

 

 

In fact, the principle of this error is very simple. You only need to understand a command in ecshop to avoid this problem: the initialization file is defined as follows:

If (! Defined ('in _ AGA '))
{
Die ('hacking attempt ');
}


The page must be as follows:


Define ('in _ AGA ', true );
If: define ('in _ ESC ', true );


The initialization file will execute a definition error.

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.