今天用学习用Drupal,在同时安装ctools,CCK,views,panels时出现了奇怪的状况。
状况如下:
1、点击保按钮后,不能正常转到页面,出现空白页面;
2、刷新页面,发出导航中许多项已经没有了,还存在的项点击也不能进入正常的页面。
测试了多次没有发现任何问题,多次重装、测试,终于出现了一个错误页面提示:“drupal Maximum execution time of 30 seconds exceeded database in /mysqli.inc”,一看这个文件,终于发现了点曙光。baidu了下,发现有三个解决方法,一一试之,问题解决。
现将这些方法记下:
方法一:更改PHP的php.ini文件,将max_execution_time的值设置大点。
方法二:用PHP代码更改,调用ini_set()函数进行设置,如ini_set('max_execution_time', 1000),此函数的调用可以在Drupal的settings.php中加入,不过在操作完后,最好这个函数的调用取消。
方法三:(没试过)找到mysql的根目录下的my.ini(my.cnf)文件,打开后找到最后一行
[mysqld]
port=3306
下面加上:
set-variable = max_allowed_packet=设置大一些比如 10M

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Atom editor mac version download
The most popular open source editor

MinGW - Minimalist GNU for Windows
This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.

Zend Studio 13.0.1
Powerful PHP integrated development environment

SublimeText3 Chinese version
Chinese version, very easy to use

Safe Exam Browser
Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.
