PHPCMS v9 在php7.x下整合UC通信失败

PHPCMS v9 在php7.x下整合UC通信失败报错的代码如下:
Fatal error: Uncaught Error: Function name must be a string in xxxxxxxxx\phpcms\phpsso_server\api\uc.php on line 31

查找:
echo $uc_note->$get['action']($get, $post);

修改为:
echo call_user_func(array($uc_note, $get['action']), $get, $post);

该问题主要表现在Snow/phpcms的uc.php文件中存在此问题。

随机文章:

1、图片,文字,内容#三部分周时实现幻灯效果.
https://www.onexin.net/picture-text-3-part-of-the-week-to-achieve-results-slide/

2、用户体验:JS实现仿新浪信息提示效果
https://www.onexin.net/the-user-experience-js-to-achieve-the-effect-of-imitation-sina-information-tips/

3、弹窗代码集合,自由控制你的弹出窗口
https://www.onexin.net/a-collection-of-pop-code-free-control-of-your-pop-up-window/

4、UCenter Home二次开发指南
https://www.onexin.net/ucenter-home-secondary-development-guide/

5、Discuz!X修复门户下载图片换行丢失BUG
https://www.onexin.net/discuzx-portal-downremoteimg-bug/

转载请注明出处:https://www.onexin.net/phpcms-v9-php7x-uc/

Leave a Reply