Jump to content
Heads Up! This website is no longer maintained, if your a member from our era, consider joining the discord to say hello.
Sign in to follow this  

Constants.php Help!

Recommended Posts

I'm trying to modify the constants.php file for a website, and the damn thing doesn't want to reflect it's changes in the MySQL requests being made.

 

The following keeps appearing:

SQL ERROR [ mysqli ]
Table 'database_name1.phpbb_users' doesn't exist [1146]

However, the constants.php file contains the following:

define('USERS_TABLE', 				'database_name.users');

Now here is where things go awry.

The table in database_name is simply users, yet the error shows that it's still trying to access the table phpbb_users.

And then the second error (I believe they are related) is the database names. The error says it's still trying to access a different database, when the database being pointed to in the constants.php file are pointing to the intended database.

 

Is there someplace else in the phpbb installation that also points to the databases and tables? Because then I'd be able to change that and stop it from following an apparently different set of instructions.

Share this post


Link to post

I would search all of the files for it. I think you might be able to search the content of all the files in a directory with Notepad++. I would start there, see if that name is anywhere else.

Share this post


Link to post

Damn, that means I have to copy the entire directory onto my comp. :/ Oh wellz, I'll try that and see if I can find it.

Share this post


Link to post

Add it to a zip, then you just have to download one file. :P

Share this post


Link to post

I'm glad websites have admins

Share this post


Link to post

Thank god we have XGhozt :P

But anyway, I searched through all the files and still nothing.

Share this post


Link to post

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×