The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Blank screen after calling my hook
I try to write a hook for "reset_password" event. Hook code looks simply:
Code:
global $newpassword; $fp = fopen("reset_password.txt", "w"); fputs($fp, $newpassword); fclose($fp); The site has been installed on my local computer (Windows XP, Apache 1.x, PHP 5, MySQL 5), I have administrator rights (all filesystem operations are accessible). What is the matter? If the code above generates some error, how can I view it? |
#2
|
||||
|
||||
Look in your error log file.
|
#3
|
|||
|
|||
Error.log is clear. I forgot to say: reset_password.txt has been created, $newpassword contains right new password and also has been written to the file.
More information: when I've disabled "GZip output" option, all becomes fine (I see the resulting page), but nothing additional information has appeared. How output type depends on non-visual results of code execution? |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|