MyStudio Free demo
How to debug a plugin that whitescreens - Printable Version

+- MyStudio Free demo (https://demo.mystudio.forumeze.com)
+-- Forum: Products & Services (https://demo.mystudio.forumeze.com/forum-8.html)
+--- Forum: MyBB (https://demo.mystudio.forumeze.com/forum-9.html)
+---- Forum: Plugins (https://demo.mystudio.forumeze.com/forum-11.html)
+---- Thread: How to debug a plugin that whitescreens (/thread-110.html)



How to debug a plugin that whitescreens - BinaryBen - 11-21-2026

Hooks are the heart of MyBB plugins — [code=php]$plugins->add_hook('pre_output_page', 'my_func');[/code] is where everything starts.

Returning true from a by-value hook replaces the argument; by-reference hooks mutate in place — check the call site.


- QuietQuokka - 11-22-2026

Always call rebuild_settings() after changing settings programmatically.

Good point, I had not thought of it that way.