把tiny tiny rss搬家到 ahead-hosting永久主机上(一次付费,终身使用),结果发现ttrss的订阅源的不更新了;

查看了偏好设置-系统-事件日志,发现

  1. E_DEPRECATED (8192) lib/gettext/streams.php:145 Methods with the same name as their class will not be constructors in a future version of PHP; CachedFileReader has a deprecated constructor , 这个是插件问题,不搭嘎;
  2. 1. classes/rssutils.php(1215): loadHTML()
    2. classes/rssutils.php(812): cache_media(, https://www.52pojie.cn/forum-16-1.html)
    3. classes/rssutils.php(148): update_rss_feed(52, 1, )
    4. update.php(223): update_daemon_common()
    18:14
    E_WARNING (2) classes/rssutils.php:1215 DOMDocument::loadHTML(): Empty string supplied as input;
    也没有关系
  3. 怀疑是php的版本的问题,但新旧ttrss都是7.3,不过还是尝试降低到5.6试了一下,也没有用
  4. 最后在softaculous安装面板-全部的面板-編輯安裝包詳細資訊,发现新旧程序有一点不同,那就是旧的程序有Cron指令,而新的没有

 

回到cpanel,找到Cron

 

现在新增加一个指令,如下

再回到rss阅读界面,不到1分钟就自动更新了文章。


另外,tinyrss搬家很省事,

    1. 数据库不需要修改直接导入,
    2. 文件也直接复制,无需修改。
    3.  只需要改一下config文件里面的
      • 数据库名称
      • 数据库用户名
      • 数据库密码
      • 网站地址,注意要区分 https和http
    4. php版本最好用5.6不要升级,否则会有错误 ,比如
      E_DEPRECATED (8192) lib/gettext/streams.php:145 Methods with the same name as their class will not be constructors in a future version of PHP; CachedFileReader has a deprecated constructor

 

2020年9月发现又不更新,对比发现,是php版本更改之后,几个文件里面没有修改版本号,导致的问题

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据