Call to undefined function Think\simplexml_load_string()
simplexml擴充包的問題,需要安裝擴充包
sudo apt-get install php7.0-xml
_STORAGE_WRITE_ERROR_:./Runtime/Cache/Install
路徑權限的問題,需要設定跟目錄權限可寫,這個錯誤是因為建立Runtime目錄沒有可寫權限造成
SQLSTATE[42000]: Syntax error or access violation: 1055 Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'wp_db_db.wp_erial_news clause and contains nonaggregated column 'wp_db.wp_erial_news clause and whicherial_news. is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by
#出現這個錯誤的原因是mysql資料庫裡面預設將sql_mode增加了 only_full_#出現這個錯誤的原因是mysql資料庫裡面預設將sql_mode增加了 only_full_groupby 的配置,導致無法使用查詢。
使用以下指令在mysql的終端機中查詢sql_mode:
select @@sql_mode;
修改sql_mode是在設定檔 /etc/mysql/mysql.conf.d/mysqld.cnf 中增加以下內容
sql_mode=STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_pISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION
修改後查詢結果為:
mysql> select @@sql_mode; +------------------------------------------------------------------------------------------------------------------------+ | @@sql_mode | +------------------------------------------------------------------------------------------------------------------------+ | STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_pISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION | +------------------------------------------------------------------------------------------------------------------------+ 1 row in set (0.00 sec)
相關推薦:
以上是weiphp如何移植PHP7.0實例的詳細內容。更多資訊請關注PHP中文網其他相關文章!