MyBB Community Forums

Full Version: Hook messed up my forum.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Hey,
So I used this hook
$plugins->add_hook("datahandler_login_complete_end", "function1");

and when I uploaded the plugin, the plugins page went blank. Of course I removed the file and yet the problem persists. Also whenever someone logins, they get a blank page upon login.

I'm talking about this: https://github.com/mybb/mybb/blob/featur...n.php#L310

Thank you.
We have no idea if you post the hook without the function/code you used.. I can only assume you ignored the passed $this argument.
(2015-12-15, 02:30 PM)Destroy666 Wrote: [ -> ]We have no idea if you post the hook without the function/code you used.. I can only assume you ignored the passed $this argument.

The problem is: even if I removed the plugin afterward, the plugin page is still blank.
Still looking for assitance.
Check your PHP error log.
Here is the plugin I tried: http://hastebin.com/ocenuwosek.coffee
You sure you deleted the file?
(2015-12-16, 06:53 PM)Omar G. Wrote: [ -> ]You sure you deleted the file?

Yeah.
Yep, you ignored the passed $this hook argument.

As for the blank page, make sure all of your plugin .php files have UTF-8 without BOM encoding.
(2015-12-16, 10:55 PM)Destroy666 Wrote: [ -> ]Yep, you ignored the passed $this hook argument.

As for the blank page, make sure all of your plugin .php files have UTF-8 without BOM encoding.

The blank page is when people login (login success but it just throws a blank page rather then redirecting to the index.php page).
Pages: 1 2