Skip to content
New issue

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

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

Already on GitHub? # 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

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

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

No branches or pull requests

1 participant