重新測試

  • By Kada
  • 2013-03-29
  • Comments Off on 重新測試

由於我個人比較善忘,必須要記低

想重新再localhost 搭個server去測試哩個wordpress

搭好了xampp,下載好server的檔案,還有phpmyadmin的sql

去127.0.0.1/wordpress時,出現如下error

建立一個資料庫連線時發生錯誤

google後得出指示,先開debug,在wp-config.php中找到define(‘WP_DEBUG’, ‘false’);改成true

開了debug再入127.0.0.1/wordpress,發現三個error,逐個解決

Warning: include(E:\XAMPP\htdocs\wordpress/wp-content/advanced-cache.php): failed to open stream: No such file or directory in

E:\XAMPP\htdocs\wordpress\wp-settings.php on line 58

Warning: include(): Failed opening ‘E:\XAMPP\htdocs\wordpress/wp-content/advanced-cache.php’ for inclusion

(include_path=’.;E:\XAMPP\php\PEAR’) in E:\XAMPP\htdocs\wordpress\wp-settings.php on line 58

Warning: mysql_connect(): Access denied for user ‘user’@’localhost’ (using password: YES) in E:\XAMPP\htdocs\wordpress\wp-

includes\wp-db.php on line 1138

第一二個關於cache,第三個關於idpw

第一二個error跟據指示,找出CACHE所在,改為false就可以

第三個在phpmyadmin新增一個user,然後在wordpress中wp-config.php使用新的user,記得要check all privileges

繼續用zbench,修改了 css, footer, header, nav

ref.
http://www.netshield.cn/support/3021/

http://wordpress.org/support/topic/advanced-cache-error

Tags: , ,

Comments are closed.