Hook messed up my forum.
#1
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.
Reply
#2
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.
Reply
#3
(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.
Reply
#4
Still looking for assitance.
Reply
#5
Check your PHP error log.
Reply
#6
Here is the plugin I tried: http://hastebin.com/ocenuwosek.coffee
Reply
#7
You sure you deleted the file?
Soporte en Español

[Image: signature.png]

Discord at omar.gonzalez (Omar G.#6117); Telegram at @omarugc;
Reply
#8
(2015-12-16, 06:53 PM)Omar G. Wrote: You sure you deleted the file?

Yeah.
Reply
#9
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.
Reply
#10
(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).
Reply


Forum Jump:


Users browsing this thread: 5 Guest(s)