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

Reduce messages produced by bw_trace_reset() #46

Open
bobbingwide opened this issue Nov 1, 2016 · 2 comments
Open

Reduce messages produced by bw_trace_reset() #46

bobbingwide opened this issue Nov 1, 2016 · 2 comments
Assignees
Projects

Comments

@bobbingwide
Copy link
Owner

In development, there are times when the trace log file is locked. When a new transaction is run and it attempts to reset the trace file it's possible to run into a few problems. It would be nice if the system could cater for the most likely situations without too many complaints.

@bobbingwide
Copy link
Owner Author

The few problems mentioned were the mass of messages that could be produced.

Warning: fopen(C:/apache/htdocs/wordpress/bwtraces.loh): failed to open stream: Permission denied in oik-bwtrace\includes\bwtrace.php on line 765

and finally we get

Fatal error: Uncaught Error: Call to undefined function bw_flush() in C:\apache\htdocs\wordpress\wp-content\plugins\oik-bwtrace\includes\oik-actions.php:343
Stack trace:
#0 C:\apache\htdocs\wordpress\wp-includes\class-wp-hook.php(286): bw_trace_status_report('')
#1 C:\apache\htdocs\wordpress\wp-includes\class-wp-hook.php(310): WP_Hook->apply_filters(NULL, Array)
#2 C:\apache\htdocs\wordpress\wp-includes\plugin.php(453): WP_Hook->do_action(Array)
#3 C:\apache\htdocs\wordpress\wp-includes\load.php(679): do_action('shutdown')
#4 [internal function]: shutdown_action_hook()
#5 {main}
  thrown in C:\apache\htdocs\wordpress\wp-content\plugins\oik-bwtrace\includes\oik-actions.php on line 343

@bobbingwide
Copy link
Owner Author

bw_trace_reset() can still be called.
But it's old code that should be deprecated or even removed while addressing #49 and #82

@bobbingwide bobbingwide added this to To do in v3.1.0 via automation Dec 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
v3.1.0
  
To do
Development

No branches or pull requests

1 participant