Git Product home page Git Product logo

facile's Issues

当 contents 表为空时,访问主页 checkField 函数报错

触发条件

当数据库中 contents 表为空时,也即博客中无文章。

访问首页引发 functions.php 中 checkField 函数报错

array_key_exists(): Argument #2 ($array) must be of type array, null given

错误原因

由于 contents 表中没有数据。

functions.php 中 checkField 函数的判断字段是否存在语句。

$db->fetchRow($db->select()->from('table.contents')) 返回了一个 null

array_key_exists() 函数的第二个参数接受 null 后报错。

解决方法

重写字段是否存在的判断逻辑,已提交 PR。

代码块显示异常

如图如果在代码前不空一行的话:
image
代码块显示会异常:
image
如果在代码前空一行:
image
代码会显示正常,但是它会从标题列表里脱离:
image
非常影响排版和页面的整齐,该如何解决这个问题?

目录显示异常

大佬你好,我在使用的时候发现一个小问题:

关于文章目录格式的问题。

这是预期的样子

image

这是现在的样子:

image

触发步骤:

在改变浏览器显示窗口尺寸时稳定触发。

  • 先用小窗口加载进一个有目录的文章,需要右侧显示有折叠的目录展开按钮
  • 第二步,放大窗口尺寸,让目录不以折叠的方式出现在右侧。

环境

windows 10, Edge 117.0.2045。

启用主题后,网页显示 Server Error

网页显示如下:
image

我当前使用的是 typecho 的 joyqi/typecho:nightly-php8.2-apache 这个docker 镜像,启用其它第三方主题没有这个 Server Error 的问题。
很喜欢您的这个简约的主题,希望我们能找到这个问题的原因。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.