Skip to content
This repository has been archived by the owner on May 9, 2020. It is now read-only.

Undefined variables #6

Open
8238j opened this issue Oct 2, 2018 · 3 comments
Open

Undefined variables #6

8238j opened this issue Oct 2, 2018 · 3 comments
Assignees
Labels
refactor Things like deprecated functions or unsafe code that need to be refactored.

Comments

@8238j
Copy link

8238j commented Oct 2, 2018

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

@mxrnx
Copy link
Owner

mxrnx commented Oct 2, 2018

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 mxrnx added the bug label Oct 2, 2018
@mxrnx mxrnx self-assigned this Oct 2, 2018
@mxrnx
Copy link
Owner

mxrnx commented Oct 6, 2018

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 mxrnx changed the title Error Undefined variables Oct 6, 2018
@mxrnx mxrnx added refactor Things like deprecated functions or unsafe code that need to be refactored. and removed bug labels Oct 6, 2018
@8238j
Copy link
Author

8238j commented Oct 7, 2018

Thank you! It works now.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
refactor Things like deprecated functions or unsafe code that need to be refactored.
Projects
None yet
Development

No branches or pull requests

2 participants