未分類

wordpress使用sqlite3

//設定使用sqlite3,目前2018/05/23使用的是sqlite-integration.1.8.1
cd wp-content/plugins/
wget https://downloads.wordpress.org/plugin/sqlite-integration.1.8.1.zip
unzip sqlite-integration.1.8.1.zip
cd sqlite-integration/

將db.php複製到wp-content目錄下
cp db.php ../../

mv wp-config-sample.php wp-config.php

sudo chmod 777 . -R
sudo chown www-data:www-data * -R

*********************************************************************************************
問題修正

如使用到/var/www/html/wp-admin/admin-ajax.php有問題!查不到資料!

主要是因為sql語法問題!
請修正vi ./wp-content/plugins/so-widgets-bundle/base/inc/actions.php
將有使用到AS的全部拿掉!
例如SELECT terms.term_id, terms.slug AS ‘value’, terms.name AS ‘label’, termtaxonomy.taxonomy AS ‘type’
改成SELECT terms.term_id, terms.slug value, terms.name label, termtaxonomy.taxonomy type
參考修改好的範例檔:actions

 

發佈留言

發佈留言必須填寫的電子郵件地址不會公開。