phper,PHP学习_PHP技术_PHP网站建设_PHP程序员专注于PHP技术研究及学习

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

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

此文被围观1032日期: 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

本站使用ThinkPHP框架开发读图网主题,目前托管在阿里云,图片由读图网提供. 蜀ICP备12031064号

Copyright © 2011-2017adophper.com All Rights Reserved.