Opened 13 years ago
Closed 13 years ago
#25936 closed defect (bug) (invalid)
Invalid callback when attempting to access certain pages while logged out
| Reported by: | henrywright | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | General | Version: | |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: |
Description
Warning: call_user_func_array() expects parameter 1 to be a valid callback, function 'wp_shake_js' not found or invalid function name in /wp-includes/plugin.php on line 406
This warning appears on screen when doing the following:
- Install BuddyPress
- Install the Theme My Login plugin and use 'login' as a custom login page
- While logged out, attempt to visit a BuddyPress page such as example.com/members/username/settings
Change History (3)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
BuddyPress ticket: http://buddypress.trac.wordpress.org/ticket/4990.
This appears to be a conflict between BuddyPress and Theme My Login.
BuddyPress adds
wp_shake_js()function to the'login_head'action in two places:http://buddypress.trac.wordpress.org/browser/tags/1.8.1/bp-core/bp-core-catchuri.php#L514
http://buddypress.trac.wordpress.org/browser/tags/1.8.1/bp-members/bp-members-functions.php#L1503
The function is only defined in
wp-login.phpand not on a custom page created by Theme My Login:tags/3.7.1/src/wp-login.php#L237.
I see three options to fix the issue:
wp-includes, like we did for several functions in [25231].I think 1 & 2 would be enough, as
wp_shake_js()seems intrinsic towp-login.phpand does not belong in any other file.