Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

数据库问题——3个问题 #1

Open
Hiroc2020 opened this issue Oct 9, 2023 · 2 comments
Open

数据库问题——3个问题 #1

Hiroc2020 opened this issue Oct 9, 2023 · 2 comments

Comments

@Hiroc2020
Copy link

问题一

  • 结果:

只有首页显示Database Query Error。

  • 环境:

宝塔、typecho1.2.1、php7.4、MySQL5.7、
新搭建的站点,执行了三条代码修改了数据库。除了评论和微语评论中未找到QQ号没修改之外,都按照教程改了(Edit.php非必须就没改)。
page.files.php中第51行没有修改成自己的分类信息,但是显示正常。(这个不知道怎么改)

  • 尝试修复:

index.php中注释掉 ,也就是不调用agreeCount函数。并且把functions中此函数注释。

问题二

  • 结果:

浏览数量显示异常

  • 环境相同

  • 尝试修复:

下载pageViews插件,调用后显示正常(https://github.com/PonyCool这是插件地址)

问题三

comments和comments1.php中没有QQ吧?
而且如果在后台屏蔽掉某些分类,那么如果某些页面代码没有修改(widget('Widget_Metas_Category_List')->to($categorys);while($categorys->next()):?>)还是调用显示所有分类会提示Call to a member function format() on null。(小问题)

@hygd0813
Copy link
Owner

建议开启debug模式,按提示一项项修正。
1、page.files.php中第51行没有修改成自己的分类信息,将<?php fenleinum(48); ?>中数字改成分类对应的mid。
2、pageViews插件为非必须。
3、comments中有QQ,comments1.php中无qq。
4、后台屏蔽掉某些分类,只是首页不显示。
博客留言,这里很少来……

@hygd0813
Copy link
Owner

hygd0813 commented Nov 13, 2023

首页点赞数量调用了说说页面点赞数。未修改说说页面id,所以报错吧。。。
1.6.9版已修复大部分内容,请更新。
谢谢反馈!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants