[halo-dev/halo]文章设置的首页图片没加载

2023-12-25 229 views
9
是什么版本出现了此问题?

1.5.3

使用的什么数据库?

H2

使用的哪种方式运行?

Source Code

在线站点地址

http://82.157.183.73:8090/

发生了什么?

如上图所示,每篇文章的图片都加载不出来,但是看了html的data-src上是有这个图片信息的,切复制到浏览器也能正常访问到源图片

相关日志输出
https://takagi-api.com/file/1/halo-theme-sakura/1.3.4/source/lib/APlayer/APlayer.min.css net::ERR_SSL_PROTOCOL_ERROR
82.157.183.73/:40 

       GET https://takagi-api.com/file/1/halo-theme-sakura/1.3.4/source/images/next-b.svg net::ERR_SSL_PROTOCOL_ERROR
82.157.183.73/:50 

       GET https://takagi-api.com/file/1/halo-theme-sakura/1.3.4/source/images/sns/sina.png net::ERR_SSL_PROTOCOL_ERROR
82.157.183.73/:55 

       GET https://takagi-api.com/file/1/halo-theme-sakura/1.3.4/source/images/sns/qq.png net::ERR_SSL_PROTOCOL_ERROR
82.157.183.73/:953 

       GET https://takagi-api.com/file/1/halo-theme-sakura/1.3.4/script/utils.min.js?ver=1.3.4 net::ERR_CONNECTION_CLOSED
82.157.183.73/:60 

       GET https://takagi-api.com/file/1/halo-theme-sakura/1.3.4/source/images/sns/qzone.png net::ERR_SSL_PROTOCOL_ERROR
82.157.183.73/:80 

       GET https://takagi-api.com/file/1/halo-theme-sakura/1.3.4/source/images/sns/wangyiyun.png net::ERR_CONNECTION_CLOSED
82.157.183.73/:70 

       GET https://takagi-api.com/file/1/halo-theme-sakura/1.3.4/source/images/sns/lofter.png net::ERR_CONNECTION_CLOSED
82.157.183.73/:75 

       GET https://takagi-api.com/file/1/halo-theme-sakura/1.3.4/source/images/sns/bilibili.png net::ERR_SSL_PROTOCOL_ERROR
82.157.183.73/:85 

       GET https://takagi-api.com/file/1/halo-theme-sakura/1.3.4/source/images/sns/twitter.png net::ERR_SSL_PROTOCOL_ERROR
82.157.183.73/:65 

       GET https://takagi-api.com/file/1/halo-theme-sakura/1.3.4/source/images/sns/github.png net::ERR_CONNECTION_CLOSED
82.157.183.73/:90 

       GET https://takagi-api.com/file/1/halo-theme-sakura/1.3.4/source/images/sns/jianshu.png net::ERR_CONNECTION_CLOSED
82.157.183.73/:95 

       GET https://takagi-api.com/file/1/halo-theme-sakura/1.3.4/source/images/sns/zhihu.png net::ERR_SSL_PROTOCOL_ERROR
82.157.183.73/:100 

       GET https://takagi-api.com/file/1/halo-theme-sakura/1.3.4/source/images/sns/csdn.png net::ERR_SSL_PROTOCOL_ERROR
82.157.183.73/:105 

       GET https://takagi-api.com/file/1/halo-theme-sakura/1.3.4/source/images/sns/telegram.svg net::ERR_SSL_PROTOCOL_ERROR
82.157.183.73/:110 

       GET https://takagi-api.com/file/1/halo-theme-sakura/1.3.4/source/images/sns/email.svg net::ERR_SSL_PROTOCOL_ERROR
82.157.183.73/:115 

       GET https://takagi-api.com/file/1/halo-theme-sakura/1.3.4/source/images/sns/stackoverflow.svg net::ERR_SSL_PROTOCOL_ERROR
82.157.183.73/:307 

       GET https://takagi-api.com/file/1/halo-theme-sakura/1.3.4/source/images/svg/loader/orange.progress-bar-stripe-loader.svg net::ERR_SSL_PROTOCOL_ERROR
(索引):523 Uncaught ReferenceError: imgError is not defined
    at HTMLImageElement.onerror ((索引):523:239)
onerror @ (索引):523
(索引):430 Uncaught ReferenceError: imgError is not defined
    at HTMLImageElement.onerror ((索引):430:239)
onerror @ (索引):430
(索引):461 Uncaught ReferenceError: imgError is not defined
    at HTMLImageElement.onerror ((索引):461:213)
onerror @ (索引):461
(索引):399 Uncaught ReferenceError: imgError is not defined
    at HTMLImageElement.onerror ((索引):399:213)
onerror @ (索引):399
(索引):492 Uncaught ReferenceError: imgError is not defined
    at HTMLImageElement.onerror ((索引):492:213)
onerror @ (索引):492
(索引):337 Uncaught ReferenceError: imgError is not defined
    at HTMLImageElement.onerror ((索引):337:239)
onerror @ (索引):337
(索引):368 Uncaught ReferenceError: imgError is not defined
    at HTMLImageElement.onerror ((索引):368:239)
onerror @ (索引):368
(索引):585 Uncaught ReferenceError: imgError is not defined
    at HTMLImageElement.onerror ((索引):585:239)
onerror @ (索引):585
(索引):554 Uncaught ReferenceError: imgError is not defined
    at HTMLImageElement.onerror ((索引):554:213)
onerror @ (索引):554
82.157.183.73/:953 

       GET https://takagi-api.com/file/1/halo-theme-sakura/1.3.4/source/cursor/normal.cur net::ERR_CONNECTION_CLOSED
82.157.183.73/:953 

       GET https://takagi-api.com/file/1/halo-theme-sakura/1.3.4/source/images/grid.png net::ERR_SSL_PROTOCOL_ERROR
82.157.183.73/:953 

       GET https://takagi-api.com/file/1/halo-theme-sakura/1.3.4/source/cursor/texto.cur net::ERR_CONNECTION_CLOSED
82.157.183.73/:953 

       GET https://takagi-api.com/file/1/halo-theme-sakura/1.3.4/source/cursor/ayuda.cur net::ERR_SSL_PROTOCOL_ERROR
82.157.183.73/:43 

       GET https://takagi-api.com/file/1/halo-theme-sakura/1.3.4/source/images/sns/wechat.png net::ERR_CONNECTION_CLOSED
82.157.183.73/:955 

       GET https://takagi-api.com/file/1/halo-theme-sakura/1.3.4/source/js/lib.js net::ERR_SSL_PROTOCOL_ERROR
app.min.js?ver=1.3.4:1 Uncaught ReferenceError: $ is not defined
    at app.min.js?ver=1.3.4:1:27607
(匿名) @ app.min.js?ver=1.3.4:1
takagi-tips.min.js:8 Uncaught ReferenceError: $ is not defined
    at initModel (takagi-tips.min.js:8:94)
    at (索引):1048:13
    at script.onload.script.onreadystatechange ((索引):1038:25)
initModel @ takagi-tips.min.js:8
(匿名) @ (索引):1048
script.onload.script.onreadystatechange @ (索引):1038
load(异步)
loadJS @ (索引):1035
(匿名) @ (索引):1047
82.157.183.73/:1 [Intervention] Slow network is detected. See https://www.chromestatus.com/feature/5636954674692096 for more details. Fallback font will be used while loading: http://at.alicdn.com/t/font_2010950_sh9o0r7ahar.woff2?t=1642093637609
82.157.183.73/:954 

       GET https://takagi-api.com/file/1/halo-theme-sakura/1.3.4/source/lib/lazysizes/lazysizes.min.js net::ERR_SSL_PROTOCOL_ERROR
82.157.183.73/:957 

       GET https://takagi-api.com/file/1/halo-theme-sakura/1.3.4/source/lib/isotope.pkgd.min/index.js net::ERR_SSL_PROTOCOL_ERROR
82.157.183.73/:958 

       GET https://takagi-api.com/file/1/halo-theme-sakura/1.3.4/source/lib/imagesloaded/imagesloaded.pkgd.min.js net::ERR_SSL_PROTOCOL_ERROR
82.157.183.73/:959 

       GET https://takagi-api.com/file/1/halo-theme-sakura/1.3.4/source/js/highlight/highlight.pack.js net::ERR_SSL_PROTOCOL_ERROR
82.157.183.73/:960 

       GET https://takagi-api.com/file/1/halo-theme-sakura/1.3.4/source/js/highlight/highlightjs-line-numbers.min.js net::ERR_SSL_PROTOCOL_ERROR
82.157.183.73/:961 

       GET https://takagi-api.com/file/1/halo-theme-sakura/1.3.4/source/lib/APlayer/APlayer.min.js net::ERR_SSL_PROTOCOL_ERROR
82.157.183.73/:962 

       GET https://takagi-api.com/file/1/halo-theme-sakura/1.3.4/plugins/aplayer/js/index.js net::ERR_SSL_PROTOCOL_ERROR
82.157.183.73/:963 

       GET https://takagi-api.com/file/1/halo-theme-sakura/1.3.4/source/lib/tocbot/dist/tocbot.min.js net::ERR_SSL_PROTOCOL_ERROR
82.157.183.73/:964 

       GET https://takagi-api.com/file/1/halo-theme-sakura/1.3.4/source/js/comment/sakura-comment.min.js?ver=1.3.4 net::ERR_CONNECTION_CLOSED
82.157.183.73/:965 

       GET https://takagi-api.com/file/1/halo-theme-sakura/1.3.4/source/lib/jqcloud2/jqcloud.min.js net::ERR_SSL_PROTOCOL_ERROR
82.157.183.73/:988 

       GET https://takagi-api.com/file/1/halo-theme-sakura/1.3.4/source/js/echarts/echarts.min.js net::ERR_SSL_PROTOCOL_ERROR
82.157.183.73/:1007 

       GET https://takagi-api.com/file/1/halo-theme-sakura/1.3.4/source/js/qrcode.min.js net::ERR_SSL_PROTOCOL_ERROR
82.157.183.73/:1008 

       GET https://takagi-api.com/file/1/halo-theme-sakura/1.3.4/source/lib/flv.min/index.js net::ERR_SSL_PROTOCOL_ERROR
82.157.183.73/:1009 

       GET https://takagi-api.com/file/1/halo-theme-sakura/1.3.4/script/i18n.min.js?ver=1.3.4 net::ERR_CONNECTION_CLOSED
82.157.183.73/:1011 

       GET https://takagi-api.com/file/1/halo-theme-sakura/1.3.4/source/lib/jquery-ui/jquery-ui.min.js net::ERR_SSL_PROTOCOL_ERROR
82.157.183.73/:953 

       GET https://takagi-api.com/directlink/1/cdn/1.0.8/img/Sakura/images/sakura.svg net::ERR_SSL_PROTOCOL_ERROR
82.157.183.73/:953 

       GET https://takagi-api.com/file/1/halo-theme-sakura/1.3.4/source/cursor/No_Disponible.cur net::ERR_CONNECTION_CLOSED
82.157.183.73/:953 

       GET https://takagi-api.com/directlink/1/cdn/1.0.8/img/Sakura/images/scroll.png net::ERR_SSL_PROTOCOL_ERROR
82.157.183.73/:16 

       GET https://takagi-api.com/file/1/halo-theme-sakura/1.3.4/source/css/lib.css net::ERR_CONNECTION_CLOSED
82.157.183.73/:17 

       GET https://takagi-api.com/file/1/halo-theme-sakura/1.3.4/source/css/highlight/highlight-Dracula.css net::ERR_CONNECTION_CLOSED
82.157.183.73/:19 

       GET https://takagi-api.com/file/1/halo-theme-sakura/1.3.4/source/lib/jqcloud2/jqcloud.min.css net::ERR_SSL_PROTOCOL_ERROR
附加信息

No response

回答

6

运行方式其实我看我的系统上显示的是production,但是提issue时没这个选项

5

1.x 版本的静态资源建议使用本地资源,即在主题设置中关闭 使用 CDN 的选项。

5

已解决,非常感谢大佬们的帮助