I'm working on a project with WP, a bit like a plugin, but not quite one.
I'm encountering an issue, when trying to include a file that contains some custom SQL functions in a class, in a completely different file, I get redirected to
Which states that I've already installed WP and I need to uninstall it before I can install it again.. But I'm not trying to install/re-install WP.
^ That sounds kinda complicated, let me give an example:
file1.php contains many SQL functions that I wrote to access the DB which WP uses.
file2.php contains a class that includes
file1.php, so I can use some of the SQL functions in the class.
Now, I first tested it with calling some SQL functions (
from file1.php) in the class and came across this issue. After some debugging (removing lines, one by one), the issue was the line that includes
file1.php (the file with all the SQL functions in it)
So for some reason, everytime I include
file2.php I get redirected to:
Any ideas why this is happening and how I can fix it?
Forgot to mention something:
file1.php (with all the SQL functions) does include
wp-config.php to get the DB info, which could be related to this issue, right?