Drupal adds modules to the inexplicable error of the solution (often appear in the module more time) _php skills

Source: Internet
Author: User
Tags blank page drupal
The status is as follows:
1, click the Security button, can not go to the normal page, a blank page appears;
2, refresh the page, issued a number of navigation items have not been, but also the existence of the item can not be clicked into the normal page.
Tested a number of times did not find any problems, many times reload, test, finally appeared a error page hint: "Drupal Maximum execution time seconds exceeded database In/mysqli.inc", A look at this document, finally found a light of dawn. Baidu, found that there are three solutions, and try to solve the problem.
These methods are now noted:
Method One: Change the php php.ini file, set the Max_execution_time value to a larger point.
Method two: Change with PHP code, call the Ini_set () function to set, such as Ini_set (' Max_execution_time ', 1000), The call to this function can be added to Drupal's settings.php, but the best call to this function is canceled after the operation is complete.
Method Three: (never tried) find the My.ini (my.cnf) file in the root directory of MySQL and find the last line when you open it
[Mysqld]
port=3306
Add the following:
Set-variable = max_allowed_packet= Set a larger number, such as 10M

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.