Closed jcatello closed 10 months ago
@jcatello that error is from WP trying to call a function that is hooked to the filter by name, but does not exist at the time the filter runs. It can be reproduced locally via wp shell
like so:
wp> add_filter('my_filter', 'does_not_exist')
=> phar:///usr/local/bin/wp/vendor/wp-cli/shell-command/src/WP_CLI/Shell/REPL.php:52:
bool(true)
wp> apply_filters('my_filter', 'foo')
TypeError: call_user_func_array(): Argument #1 ($callback) must be a valid callback, function "does_not_exist" not found or invalid function name in file /var/www/html/wp-includes/class-wp-hook.php on line 310
Stack trace:
1. TypeError->() /var/www/html/wp-includes/class-wp-hook.php:310
2. WP_Hook->apply_filters() /var/www/html/wp-includes/plugin.php:205
3. apply_filters() phar:///usr/local/bin/wp/vendor/wp-cli/shell-command/src/WP_CLI/Shell/REPL.php:46
4. eval() phar:///usr/local/bin/wp/vendor/wp-cli/shell-command/src/WP_CLI/Shell/REPL.php:46
5. WP_CLI\Shell\REPL->start() phar:///usr/local/bin/wp/vendor/wp-cli/shell-command/src/Shell_Command.php:52
6. Shell_Command->__invoke() phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Dispatcher/CommandFactory.php:100
7. call_user_func() phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Dispatcher/CommandFactory.php:100
8. WP_CLI\Dispatcher\CommandFactory->WP_CLI\Dispatcher\{closure}() phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Dispatcher/Subcommand.php:491
9. call_user_func() phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Dispatcher/Subcommand.php:491
10. WP_CLI\Dispatcher\Subcommand->invoke() phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php:431
11. WP_CLI\Runner->run_command() phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php:454
12. WP_CLI\Runner->run_command_and_exit() phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php:1269
13. WP_CLI\Runner->start() phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Bootstrap/LaunchRunner.php:28
14. WP_CLI\Bootstrap\LaunchRunner->process() phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/bootstrap.php:83
15. WP_CLI\bootstrap() phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/wp-cli.php:32
16. include() phar:///usr/local/bin/wp/php/boot-phar.php:20
17. include() /usr/local/bin/wp:4
They're probably hooking the function on the filter by name in one place and loading the function somewhere else so that when it's triggered by the login command that the function referenced isn't defined.
Closing for now as this appears to be an issue in the buddyboss-platform
plugin.
Seems when using buddyboss-platform there is a conflict with one of their functions
Files:
buddyboss-platform/bp-members/bp-members-functions.php
Function: