Typecho 1.2.0 版本安装报错的原因 - 不兼容php7.2以下版本

admin 2022-09-27 AM 2567℃ 66条

今天把tianshimanbu.com 的typecho版本升级到1.2.0,在升级的过程中发现一些问题,特此记录下来。

错误1:

Parse error: syntax error, unexpected '?', expecting variable (T_VARIABLE) in /www/wwwroot/m.tianshimanbu.com/install.php on line 510

微信截图_20220927103653.png

错误2:


Fatal error: Declaration of Typecho\Db\Adapter\Pdo::fetchObject($resource): ?Typecho\Db\Adapter\object must be compatible with Typecho\Db\Adapter::fetchObject($resource): ?Typecho\Db\object in /www/wwwroot/m.tianshimanbu.com/var/Typecho/Db/Adapter/Pdo.php on line 18

2022-09-27T02:40:07.png

如果您在升级过程中发现以上问题,请不要慌。这是因为typecho1.2.0版本只使用了php的全新语法,所以使用php7.2以下版本的解释器是无法执行通过的,需要您将php的版本升级到7.2及以上才能编译通过。

以上是typecho 1.2.0的新特性,笔者看着很有意思,特此记录下来。

新特性:

2022-09-27T02:41:52.png

官方公告:

更新log:

除了修复了很多bug以外,我们重要的改进有如下几点:

  • 新的编辑器实时预览自动跟随效果,以及主题内预览功能
  • 后台界面对移动端的适配
  • 新的安装程序
  • 进入 PHP 7.2 时代,以及对 PHP 8 的更好支持
  • 对容器化的更好支持

非特殊说明,本博所有文章均为博主原创。

上一篇 没有了
下一篇 蚂蚁环游问题-几何趣题 - yuange

评论啦~



已有 66 条评论


  1. Typecho
    Typecho

    欢迎加入 Typecho 大家族

    回复 2022-09-27 10:30
    1. 1
      1

      555

      回复 2023-05-19 19:04
      1. 1
        1

        1

        回复 2023-05-19 19:08
        1. 1
          1

          1

          回复 2023-05-19 21:22
        2. 1
          1

          1

          回复 2023-05-19 21:22
        3. 1
          1

          1

          回复 2023-05-19 21:22
        4. 1
          1

          1

          回复 2023-05-22 14:06
      2. 1
        1

        555

        回复 2023-05-19 20:59
      3. 1
        1

        1

        回复 2023-05-19 21:20
      4. 1
        1

        1

        回复 2023-05-19 21:20
      5. 1
        1

        1

        回复 2023-05-19 21:20
      6. 1
        1

        1

        回复 2023-05-19 21:20
      7. 1
        1

        1

        回复 2023-05-19 21:20
      8. 1
        1

        1

        回复 2023-05-19 21:20
      9. 1
        1

        1

        回复 2023-05-19 21:21
      10. 1
        1

        1

        回复 2023-05-19 21:21
      11. 1
        1

        1

        回复 2023-05-19 21:21
      12. 1
        1

        1

        回复 2023-05-19 21:21
      13. 1
        1

        1

        回复 2023-05-19 21:21
      14. 1
        1

        1

        回复 2023-05-19 21:21
      15. 1
        1

        555

        回复 2023-05-22 09:46
      16. 1
        1

        1

        回复 2023-05-22 14:01
      17. 1
        1

        1

        回复 2023-05-22 14:01
      18. 1
        1

        1

        回复 2023-05-22 14:05
      19. 1
        1

        1

        回复 2023-05-22 14:05
    2. 1
      1

      1

      回复 2023-05-19 19:07
    3. 1
      1

      1

      回复 2023-05-19 21:17
    4. 1
      1

      1

      回复 2023-05-19 21:19
    5. 1
      1

      1

      回复 2023-05-19 21:19
    6. 1
      1

      1

      回复 2023-05-19 21:19
    7. 1
      1

      1

      回复 2023-05-19 21:19
      1. 1
        1

        1

        回复 2023-05-20 00:31
      2. 1
        1

        1

        回复 2023-05-20 00:31
      3. 1
        1

        1

        回复 2023-05-20 00:31
      4. 1
        1

        1

        回复 2023-05-20 00:34
      5. 1
        1

        1

        回复 2023-05-20 00:34
      6. 1
        1

        1

        回复 2023-05-20 00:34
      7. 1
        1

        1

        回复 2023-05-20 00:34
      8. 1
        1

        1

        回复 2023-05-20 00:34
      9. 1
        1

        555

        回复 2023-05-20 00:38
    8. 1
      1

      1

      回复 2023-05-22 09:58
    9. 1
      1

      1

      回复 2023-05-22 14:00
  2. 1
    1

    1

    回复 2023-05-19 19:03
    1. 1
      1

      1

      回复 2023-05-19 19:10
  3. 1
    1

    555

    回复 2023-05-19 19:04
  4. 1
    1

    1

    回复 2023-05-19 20:45
    1. 1
      1

      555

      回复 2023-05-19 21:00
  5. 1
    1

    1

    回复 2023-05-19 20:48
    1. 1
      1

      1

      回复 2023-05-20 00:32
    2. 1
      1

      1

      回复 2023-05-20 00:32
    3. 1
      1

      1

      回复 2023-05-20 00:32
    4. 1
      1

      1

      回复 2023-05-20 00:32
    5. 1
      1

      1

      回复 2023-05-20 00:32
  6. 1
    1

    1

    回复 2023-05-22 09:44
  7. 1
    1

    555

    回复 2023-05-22 09:46
    1. 1
      1

      1

      回复 2023-05-22 12:56
    2. 1
      1

      1

      回复 2023-05-22 12:56
    3. 1
      1

      1

      回复 2023-05-22 12:56
    4. 1
      1

      555

      回复 2023-05-22 13:28
  8. 1
    1

    1

    回复 2023-05-22 12:54
    1. 1
      1

      1

      回复 2023-05-22 12:58
    2. 1
      1

      1

      回复 2023-05-22 12:58
    3. 1
      1

      1

      回复 2023-05-22 12:58
    4. 1
      1

      555

      回复 2023-05-22 13:22
  9. 1
    1

    555

    回复 2023-05-22 13:29
  10. 1
    1

    555

    回复 2023-07-07 14:44