【发布时间】:2016-09-06 04:32:22
【问题描述】:
我在使用 WP 插件时遇到问题。用户不能上传头像或背景,也不能从个人资料部分查看他们的个人资料。一旦按下按钮执行与配置文件相关的操作,它们就会被重定向到主页。这是控制台日志错误错误的一些代码(函数接收错误)和图片。
一些控制台日志错误是因为没有图片。我故意删除了个人资料和背景照片。无论有没有图像,都会出现此问题。
/*! jQuery v1.12.4 | (c) jQuery Foundation | jquery.org/license */
!function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0)
function(a){if(!a.document){throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof window?window:this,
function(a,b){var c=[],d=a.document,e=c.slice,f=c.concat,g=c.push,h=c.indexOf,i={},j=i.toString,k=i.hasOwnProperty,l={},m="1.12.4",n=function(a,b){return new n.fn.init(a,b)},o=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,p=/^-ms-/,q=/-([\da-z])/gi,r=
function(a,b){return b.toUpperCase()};n.fn=n.prototype={jquery:m,constructor:n,selector:"",length:0,toArray:
我已执行以下故障排除任务:
- 卸载并重新安装插件。
- 调整了重定向的所有设置。
- 选中的主题(不是主题)。
- 删除所有内容并从头开始。
- 停用所有其他插件(插件不是问题)。
This is the Console log error for users attempting to change their background or avatar
The 2nd picture is of the console log error when an individual tries to view their profile
【问题讨论】:
-
一般来说,如果你在 jQuery 的中间收到一个错误,那是因为你传递了一些无效的东西。您应该尝试使用开发者工具的“在未处理的异常时暂停”功能,并检查调用堆栈以查看导致错误的原因。
标签: javascript jquery wordpress