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

Fatal error: call to undefined function bw_trace2() in oik_libs/oik_boot.php on line 190 #49

Closed
bobbingwide opened this issue Aug 26, 2016 · 5 comments
Assignees

Comments

@bobbingwide
Copy link
Owner

I've had a report from someone installing oik-privacy-policy v1.3.2.
When he installed oik v3.0.2 the following message was displayed in the dashboard.

"Plugin could not be activated because it triggered a fatal error. Fatal error: Call to undefined function bw_trace2() in /home1/web2guy/public_html/projectmenudashboard/wp-content/plugins/oik/libs/oik_boot.php on line 190"

@bobbingwide bobbingwide self-assigned this Aug 26, 2016
@bobbingwide
Copy link
Owner Author

bobbingwide commented Aug 26, 2016

I'm having difficulty reproducing this issue. I've tried installing by downloading from wordpress.org and activating and deactivating the plugins but not yet suffered the problem.

The problem would occur if the 'bwtrace' library had failed to load, or if oik_require_lib() had been called for a library other than bwtrace before the expected call to oik-bwtrace.

@bobbingwide
Copy link
Owner Author

bobbingwide commented Aug 26, 2016

have made some progress
The plugin generated 119 characters of unexpected output during activation. If you notice “headers already sent” messages, problems with syndication feeds or other issues, try deactivating or removing this plugin.

This message is produced when the constant BW_TRACE_CONFIG_STARTUP is defined as true.

It turns out that this is unrelated.

@bobbingwide
Copy link
Owner Author

I can cause the problem if I define the constant BWTRACE_INCLUDED using, for example
define( BWTRACE_INCLUDED, true );. When the call to oik_require_lib( "bwtrace" ) is performed, we would expect oik to load libs\bwtrace.php, which would then define the functions, so long as BWTRACE_INCLUDED is not defined.

@bobbingwide
Copy link
Owner Author

I've concluded that the problem is due to the site running PHP 5.2.
I've raised bobbingwide/oik-libs#5

@bobbingwide
Copy link
Owner Author

bobbingwide/oik-libs/issues/5 is closed so this can also be closed - as a duplicate.

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

No branches or pull requests

1 participant