Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uncaught Error: Call to undefined function kv() #117

Open
bobbingwide opened this issue Jun 22, 2024 · 1 comment
Open

Uncaught Error: Call to undefined function kv() #117

bobbingwide opened this issue Jun 22, 2024 · 1 comment
Assignees
Labels

Comments

@bobbingwide
Copy link
Owner

Problem detected in PHP debug.log when updating a plugin on gvg.co.uk

[22-Jun-2024 10:07:44 UTC] PHP Fatal error: Uncaught Error: Call to undefined function kv() in C:\apache\htdocs\wordpress\wp-content\plugins\oik-bwtrace\includes\oik-actions.php:850

Stack trace:
#0 C:\apache\htdocs\wordpress\wp-content\plugins\oik-bwtrace\includes\oik-actions.php(839): bw_trace_trace_file_link()
#1 C:\apache\htdocs\gardenvista\wp-includes\class-wp-hook.php(324): bw_trace_url_link('')
#2 C:\apache\htdocs\gardenvista\wp-includes\class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array)
#3 C:\apache\htdocs\gardenvista\wp-includes\plugin.php(517): WP_Hook->do_action(Array)
#4 C:\apache\htdocs\gardenvista\wp-includes\load.php(1270): do_action('shutdown')
#5 [internal function]: shutdown_action_hook()
#6 {main}
  thrown in C:\apache\htdocs\wordpress\wp-content\plugins\oik-bwtrace\includes\oik-actions.php on line 850
@bobbingwide bobbingwide self-assigned this Jun 22, 2024
@bobbingwide
Copy link
Owner Author

I didn't try reproducing the problem in a traceable local environment.
Instead, I've added code to ensure that the bobbfunc shared library is loaded before the action hooks for shutdown are assigned.
bobbfunc contains the kv() function that's used in bw_trace_trace_file_link() to set the link to target=_blank and some inline styling.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant