The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Undefined variables everywhere!
This doesn't pertain to a certain hack. But I was wondering if anyone knows why I recieve many "Undefined variables" errors when running small php scripts such as a shoutbox.
Is this a compatability problem between linux and windows? I run php 4.2.1 on a windows box. I recently downloaded the clan server hack from here. It isn't really a vbulletin hack. But it looked cool. I downloaded it and set it up and all I got were mass "Undefined Variables". Odd... |
#2
|
||||
|
||||
If it's your own server, open php.ini, look for a line that starts with [minicode]error_reporting[/minicode], and replace that whole line with:
Code:
error_reporting = E_ALL & ~E_NOTICE If it's not your server, ask your host to do what I said above. |
#3
|
|||
|
|||
Thanks! I found 3 examples. I uncommented the one you posted (which was already there) and those pesky notices disappeared.
I guess they show when the script doesnt work 100% correct. But in this case I only need about 50% of the script =) |
#4
|
||||
|
||||
Those notices are about undefined variables, and usually you don't really need them. Unless you are writing a very important script and you want it to be 100% secure (keeping track of variables is always a good thing).
Just so you know, you can also set the error_reporting level from within your PHP file, using the error_reporting() function. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|