cravatar.cn 上传头像失败

标签: 

正在查看 4 个帖子:1-3 (共 3 个帖子)
  • 作者
    帖子
  • milchigs
    • 文章数量: 3
    @milchigs
    楼主

    观察控制台 network 发现有 API 报了 500 错误

    API:https://cravatar.cn/wp-admin/admin-ajax.php
    报错:

    <b>Fatal error</b>: Uncaught Error: Cannot use object of type WP_Error as array in /www/wwwroot/wenpai-org/wp-content/themes/cravatar/inc/class-upyun.php:36
    Stack trace:
    #0 /www/wwwroot/wenpai-org/wp-content/themes/cravatar/inc/class-upyun.php(40): LitePressCravatarIncUpyun->send_request()
    #1 /www/wwwroot/wenpai-org/wp-content/themes/cravatar/inc/helpers.php(424): LitePressCravatarIncUpyun->post()
    #2 /www/wwwroot/wenpai-org/wp-content/themes/cravatar/functions.php(60): LitePressCravatarIncpurge_avatar_cache()
    #3 /www/wwwroot/litepress.cn/wp-includes/class-wp-hook.php(303): {closure}()
    #4 /www/wwwroot/litepress.cn/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters()
    #5 /www/wwwroot/litepress.cn/wp-includes/plugin.php(470): WP_Hook->do_action()
    #6 /www/wwwroot/wenpai-org/wp-content/plugins/ultimate-member/includes/core/class-uploader.php(493): do_action()
    #7 /www/wwwroot/wenpai-org/wp-content/plugins/ultimate-member/includes/core/class-files.php(412): umcoreUploader->upload_image()
    #8 /www/wwwroot/litepress.cn/wp-includes/class-wp-hook.php(303): umcoreFiles->ajax_image_upload()
    #9 /www/wwwroot/litepress.cn/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters()
    #10 /www/wwwroot/litepress.cn/wp-includes/plugin.php(470): WP_Hook->do_action()
    #11 /www/wwwroot/litepress.cn/wp-admin/admin-ajax.php(187): do_action()
    #12 {main}
    thrown in <b>/www/wwwroot/wenpai-org/wp-content/themes/cravatar/inc/class-upyun.php</b> on line <b>36</b>

    此站点遇到了致命错误。

    了解有关对 LitePress 进行故障排除的更多信息。

    来自郑州市, 河南, 中国
    milchigs
    • 文章数量: 3
    @milchigs
    楼主

    问题的主体:cravatar

    问题的网址:https://cravatar.cn/emails

    问题的复现:上传一个头像并调整预览框大小

    来自郑州市, 河南, 中国
    孙锡源
    • 文章数量: 704
    @ibadboy

    是因为在刷新 CDN 缓存时 HTTP 请求错误导致的,再试一次就好了。
    另外已经增加了对该异常的处理逻辑,不会再抛出错误了。

    最后,感谢反馈

    来自潍坊市, 山东省, 中国
    milchigs
    • 文章数量: 3
    @milchigs
    楼主

    谢谢!已成功上传

    来自郑州市, 河南, 中国
正在查看 4 个帖子:1-3 (共 3 个帖子)
  • 哎呀,回复话题必需登录。

话题信息