Code Monkey home page Code Monkey logo

Comments (10)

hank9999 avatar hank9999 commented on August 18, 2024 1

吧94行的_autoload改成_sql_autoload就可以了~

from tieba-cloud-sign.

mokeyjay avatar mokeyjay commented on August 18, 2024

“无法访问”的具体细节呢?

from tieba-cloud-sign.

 avatar commented on August 18, 2024

@mokeyjay ,用Chrome访问的话就显示这个

This site can’t be reached

The webpage at [当前的地址] might be temporarily down or it may have moved permanently to a new web address.
ERR_CONTENT_DECODING_FAILED

from tieba-cloud-sign.

MoeGakuen avatar MoeGakuen commented on August 18, 2024

PHP 7.2.0 完美运行
11

from tieba-cloud-sign.

 avatar commented on August 18, 2024

根据@MoeGakuen 的情况,我自己排查了一下,发现是插件GZip 压缩页面(wmzz_gz)造成的,而且在PHP7.2下index.php顶部和服务器信息里会报错。(无关路径已省略)
Deprecated: __autoload() is deprecated, use spl_autoload_register() instead in lib/reg.php on line 94
PHP 版本:7.2.0 非线程安全
MySQL 版本:5.5.57-log

另外,公告栏插件(wmzz_anno)激活时也会报错。
贴吧云签到 - 提示信息

百度贴吧云签到 V4.9 (PHP 7.2.0) 在工作时发生致命的异常 @ 2017-12-07 13:12:35
消息:#0 - Too few arguments to function option::add(), 1 passed in plugins/wmzz_anno/wmzz_anno_callback.php on line 11 and exactly 2 expected

文件 代码
lib/class.option.php 57 [抛出异常]
plugins/wmzz_anno/wmzz_anno_callback.php 11 add
lib/plugins.php 33 callback_init
setting.php 27 activePlugin

from tieba-cloud-sign.

mokeyjay avatar mokeyjay commented on August 18, 2024

喵喵喵?不应该啊,我看lib/reg.php明明是有

if (function_exists('spl_autoload_register')) {
	spl_autoload_register('class_autoload');
} else {
	function __autoload($c){
		class_autoload($c);
	}
}

这样的判断的,按理来说不会执行到__autoload才对的

你创建一个任意名.php,内容为

<?php
var_dump(function_exists('spl_autoload_register'));

访问一下看看是返回true还是false,要是false就奇怪了

from tieba-cloud-sign.

 avatar commented on August 18, 2024

@mokeyjay 我访问了,返回true,而且我的lib/reg.php的第91行至97行也有这段代码。

if (function_exists('spl_autoload_register')) {
	spl_autoload_register('class_autoload');
} else {
	function __autoload($c){
		class_autoload($c);
	}
}

为了排除我云签到的文件可能被篡改过的可能,我又下载了最新的源码,全新安装了一个,结果还是报了错。

Deprecated: __autoload() is deprecated, use spl_autoload_register() instead in lib/reg.php on line 94

P.S:我用的是宝塔linux面板,PHP7.2都是从这里装的。

from tieba-cloud-sign.

mokeyjay avatar mokeyjay commented on August 18, 2024

这……大佬 @kenvix 来看看?

from tieba-cloud-sign.

hank9999 avatar hank9999 commented on August 18, 2024

亲测7.2.2版本正常,不用改别的

from tieba-cloud-sign.

 avatar commented on August 18, 2024

感谢 @hank9999 ,现在不报错了,而且GZip 压缩页面插件也可以用了。

from tieba-cloud-sign.

Related Issues (20)

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.