|
发表于 2021-3-12 00:45:50
|
查看全部
本帖最后由 allthebest 于 2021-3-11 20:21 编辑
检查 /var/www/html/upload/uc_server/avatar.php 文件(/var/www/html/upload是网站目录)的第14行,第14行内容如下:
- define('UC_API', strtolower(($_SERVER[‘SERVER_PORT’] == 443 || $_SERVER[‘HTTPS’] == ‘on’ ? ‘https’ : ‘http’).’://’.$_SERVER[‘HTTP_HOST’].substr($_SERVER[‘PHP_SELF’], 0, strrpos($_SERVER[‘PHP_SELF’], '/'))));
复制代码
把第14行改成如下内容(改之前记得先备份文件):
- define('UC_API', strtolower('https'.'://'.$_SERVER['HTTP_HOST'].substr($_SERVER['PHP_SELF'], 0, strrpos($_SERVER['PHP_SELF'], '/'))));
复制代码
故障解决 |
|