fikaba icon indicating copy to clipboard operation
fikaba copied to clipboard

Undefined variables

Open 8238j opened this issue 7 years ago • 3 comments

I use xampp and sometimes when I try to load up a page I get a weird SQL error. It doesn't happen every time but is still annoying. I use PHP 5.6.36.

I also get some of these on some pages: Notice: Undefined variable: p in C:\xampp\htdocs\ch\imgboard.php on line 259

Notice: Undefined variable: accname in C:\xampp\htdocs\ch\imgboard.php on line 1320

Notice: Undefined variable: accpassword in C:\xampp\htdocs\ch\imgboard.php on line 1320

Notice: Undefined variable: acccapcode in C:\xampp\htdocs\ch\imgboard.php on line 1320

Notice: Undefined variable: accdel in C:\xampp\htdocs\ch\imgboard.php on line 1320

Notice: Undefined variable: accban in C:\xampp\htdocs\ch\imgboard.php on line 1320

Notice: Undefined variable: acccap in C:\xampp\htdocs\ch\imgboard.php on line 1320

Notice: Undefined variable: accacc in C:\xampp\htdocs\ch\imgboard.php on line 1320

8238j avatar Oct 02 '18 13:10 8238j

Can you tell me the specific SQL error? The undefined variables are something that I've been aware of for a while. They're quite an easy fix: go through the code and make sure they exist before using them, which I intend on doing sometime in the future. You can safely ignore the errors for now.

mxrnx avatar Oct 02 '18 14:10 mxrnx

Your first and main error should now be resolved. I'm keeping this issue open for the undefined variables, which I really should fix some time.

mxrnx avatar Oct 06 '18 19:10 mxrnx

Thank you! It works now.

8238j avatar Oct 07 '18 00:10 8238j