gogobody / TpCache

一个 typecho 缓存插件
MIT License
43 stars 11 forks source link

什么时候可以支持1.2.0版本啊 #3

Closed bluesky0341 closed 2 years ago

bluesky0341 commented 2 years ago

什么时候可以支持1.2.0版本啊 这个不能用在1.2.0版本啊

gogobody commented 2 years ago

什么问题

bluesky0341 commented 2 years ago

1.2.0版本用不了啊

bluesky0341 commented 2 years ago

可以启用插件,但是启用了,里面开启缓存,就白屏

gogobody commented 2 years ago

测试启动无问题, 1.2 + php8

gogobody commented 2 years ago

测试启动 redis 缓存,全局和局部缓存 无问题

bluesky0341 commented 2 years ago

插件Tpcache的配置信息没有找到

gogobody commented 2 years ago

请确认你的插件目录名叫TpCache

bluesky0341 commented 2 years ago

http://aluminiumnitride.net/index.php/archives/1/

bluesky0341 commented 2 years ago

开启了redis全局和局部缓存 但是 Database Query Error

gogobody commented 2 years ago

cofig.inc.php 加入 define('__TYPECHO_DEBUG__', true);

开启debug模式

bluesky0341 commented 2 years ago

加了,还是Database Query Error

gogobody commented 2 years ago

没加上或者加错了

bluesky0341 commented 2 years ago

<?php // site root path define('TYPECHO_ROOT_DIR', dirname(FILE));

// plugin directory (relative path) define('TYPECHO_PLUGIN_DIR', '/usr/plugins');

// theme directory (relative path) define('TYPECHO_THEME_DIR', '/usr/themes');

// admin directory (relative path) define('TYPECHO_ADMIN_DIR', '/admin/');

// register autoload require_once TYPECHO_ROOT_DIR . '/var/Typecho/Common.php';

// init \Typecho\Common::init();

// config db $db = new \Typecho\Db('PdoMysql', 'typecho'); $db->addServer(array ( 'host' => 'localhost', 'port' => 3306, 'user' => 'aluminiu_aluminiumnitride', 'password' => 'aYmAI7Zrw0', 'charset' => 'utf8mb4', 'database' => 'aluminiu_aluminiumnitride', 'engine' => 'InnoDB', ), \Typecho\Db::READ | \Typecho\Db::WRITE); \Typecho\Db::set($db); define('TYPECHO_DEBUG', true);

gogobody commented 2 years ago

define('__TYPECHO_DEBUG__', true); 有两个杠,这里被和谐了

gogobody commented 2 years ago

__TYPECHO_DEBUG__

gogobody commented 2 years ago

T前面和最后G后面,有下划线参考文件里其他

bluesky0341 commented 2 years ago

现在再帮忙看看 http://aluminiumnitride.net/index.php/archives/1/

bluesky0341 commented 2 years ago

发布新文章也不行了,显示

SQLSTATE[42S02]: Base table or view not found: 1146 Table 'aluminiu_aluminiumnitride.typecho_tepass_posts' doesn't exist

gogobody commented 2 years ago

已知问题,稍等会

bluesky0341 commented 2 years ago

插件禁用后,一切又正常了

bluesky0341 commented 2 years ago

我的也是php8.0 1.2.0版本

bluesky0341 commented 2 years ago

不好意思,说错了,刚才我的php版本是7.4,可以启用插件

bluesky0341 commented 2 years ago

现在换成php8.0,点启用插件,屏幕什么都没有

gogobody commented 2 years ago

https://github.com/gogobody/TpCache/archive/refs/heads/main.zip

bluesky0341 commented 2 years ago

1.2.0版本 php7.4可以启用插件,可以启动 redis 缓存,全局和局部缓存可以,但是发布文章 SQLSTATE[42S02]: Base table or view not found: 1146 Table 'aluminiu_aluminiumnitride.typecho_tepass_posts' doesn't exist

1.2.0版本 php8.0 插件无法启动,点启用插件,屏幕什么都没有

gogobody commented 2 years ago

更新了上面有地址,不行的话就不知道什么问题了,本地测试同配置无问题。

ZiXia1 commented 2 years ago

php8.1+typecho最新开发版照样白屏,调试模式没有任何显示

bluesky0341 commented 2 years ago

都是用的1.2.0正式版啊

gogobody commented 2 years ago

我是1.2 + php 8 无问题,想debug的可以qq联系