Home > Backend Development > PHP Tutorial > drupal7 Drupal solution to inexplicable errors when adding modules (often occurs when there are many modules)

drupal7 Drupal solution to inexplicable errors when adding modules (often occurs when there are many modules)

WBOY
Release: 2016-07-29 08:44:50
Original
1290 people have browsed it

The situation is as follows:
1. After clicking the save button, the page cannot be redirected normally, and a blank page appears;
2. Refreshing the page shows that many items in the navigation are no longer available, and the items that still exist cannot be clicked to enter the normal page.
After testing many times without finding any problems, I reinstalled and tested many times, and finally an error page appeared: "drupal Maximum execution time of 30 seconds exceeded database in /mysqli.inc". After looking at this file, I finally found it. Light up. After searching on Baidu, I found three solutions. Try them one by one and the problem will be solved.
Write down these methods now:
Method 1: Change the php.ini file of PHP and set the value of max_execution_time to a larger value.
Method 2: Use PHP code to change and call the ini_set() function to set, such as ini_set('max_execution_time', 1000). The call of this function can be added to Drupal's settings.php, but after the operation is completed, it is best to use this The function call is canceled.
Method 3: (haven’t tried it) Find the my.ini (my.cnf) file in the root directory of mysql, open it and find the last line
[mysqld]
port=3306
Add below:
set-variable = max_allowed_packet =Set something larger, such as 10M

The above introduces the solution to the inexplicable error when adding modules in drupal7 Drupal (which often occurs when there are many modules), including the content of drupal7. I hope it will be helpful to friends who are interested in PHP tutorials.

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template