PHP技术,网站开发,PHP,PHP学习,Python学习,PHP开发,人工智能,大数据服务

PHP » 编程开发 » drupal使用记录,drupal使用,drupal内容管理系统

drupal使用记录,drupal使用,drupal内容管理系统

此文被围观2087日期: 2013-09-29 分类 : 编程开发  标签:  ······
我所使用的环境是php5.4.7+apache+mysql 1、安装错误提示: distribution_name in drupal_install_profile_distribution_name() 修改 includes/install.inc 191 function drupal_install_profile_distribution_name() { // During installation, the profile information is stored in the global // installation state (it might not be saved anywhere yet). if (drupal_installation_attempted()) { global $install_state; 196 return $install_state['profile_info']['distribution_name']; } // At all other times, we load the profile via standard methods. else { $profile = drupal_get_profile(); $info = system_get_info('module', $profile); if ( ! array_key_exists('distribution_name', $info)) $info['distribution_name'] = 'Drupal'; return $info['distribution_name']; } } 2、修改数据库地址 sites/default/settings.php 203行 $databases = array ( 'default' => array ( 'default' => array ( 'database' => 'welandedu_language_center', 'username' => 'root', 'password' => '123456', 'host' => 'localhost', 'port' => '3306', 'driver' => 'mysql', 'prefix' => '', ), ), ); 3、Fatal error: Undefined class constant 'MYSQL_ATTR_USE_BUFFERED_QUERY 解决方法: for me fix was installation php5-pdo_mysql (FreeBSD) portinstall php5-pdo_mysql 来源:https://drupal.org/node/1016622 4、解决 PHP Fatal error: Call-time pass-by-reference has been removed // 正确写法 function myFunc(&$arg) { do something... } myFunc($var);//Call myFunc //错误写法 function myFunc($arg) { do something... } myFunc(&$arg);//Call myFunc 5、General error: 2006 MySQL server has gone away in _drupal_session_write() 修改mysql的配置文件 my.ini max_allowed_packet = 64M 6、清除缓存 Administration > Configuration > Development > Performance

© Copyright 2011-2021 www.adophper.com. All Rights Reserved.
读图网科技 版权所有。蜀ICP备12031064号-1