[buddypress-trac] [BuddyPress Trac] #8439: Page "Change Avatar" produces error in jQuery & prevents the avatar from resizing
buddypress-trac
noreply at wordpress.org
Mon Mar 1 11:34:41 UTC 2021
#8439: Page "Change Avatar" produces error in jQuery & prevents the avatar from
resizing
--------------------------+-----------------------------
Reporter: WeddyWood | Owner: (none)
Type: defect (bug) | Status: new
Priority: high | Milestone: Awaiting Review
Component: Core | Version: 7.2.0
Severity: normal | Keywords:
--------------------------+-----------------------------
Page "Change Avatar" produces error in jQuery:
{{{
Uncaught TypeError: url.indexOf is not a function
}}}
This error message comes from **jQuery.fn.load** function.
Because of:
.load, .unload, and .error, deprecated since jQuery 1.8, are no more.
Use .on() to register listeners.
...
[https://blog.jquery.com/2015/07/13/jquery-3-0-and-jquery-compat-3-0
-alpha-versions-released/ jQuery Blog]
You need update calls **load** function in file **bp-core-cssjs.php**
(line 303):
{{{#!javascript
jQuery(window).load( function(){
}}}
To:
{{{#!javascript
jQuery(window).on('load', function(){
}}}
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/8439>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list