Error Messages upon logging in

General Chat, Comments
Post Reply
User avatar
Kesstryl
Posts: 202
Joined: Sat Sep 22, 2012 5:27 am

Error Messages upon logging in

Post by Kesstryl »

I've been away from this for awhile and now that I have a term break, I thought I'd log in and see what's new. When I log into my WAMP installation of NWE, I'm getting this error message. This is something new, and I don't think I've done anything weird to my install of WAMP.

Code: Select all

Error: Constant already defined
Error in "C:/wamp/www/NWE/config/auto_defines.php"
Line 32
Error in C:\wamp\www\NWE\config\auto_defines.php
Line 32
Error in C:\wamp\www\NWE\index.php
Line 152
Here's my auto_defines.php file

Code: Select all

<?php
/**
 * This file will be automatically generated after importation / setup of a module.
 * It will check all the ID required for the variables and define constant for them.
 */
define('moneymugged',2);
define('combatSerialization',3);
define('combatSuccessLink',4);
define('combatFailLink',5);
define('playerProfileNote',6);
define('facebookUserId',7);
define('hospital',8);
define('playerHouseLevel',9);
define('playerHouseLastCheck',10);
define('jail',11);
define('playerLocation',12);
define('npcDialogPossibilities',13);
define('playerClassSet',14);
define('player_notes',15);
define('playersReferred',16);
define('userTemplate',18);
define('premiumMember',19);
define('statsLastCheck',20);
define('trainingInProgress',21);
define('nbTrainingRemaining',22);
define('nextTrainingVisit',23);
define('tutorialsFinished',24);
define('playerBan',25);
define('workEndTime',27);
define('workInProgress',28);
define('',29);
define('',30);
define('',31);
?>
And the line 152 of the index.php is just the include of the auto_defines.php
User avatar
Kesstryl
Posts: 202
Joined: Sat Sep 22, 2012 5:27 am

Re: Error Messages upon logging in

Post by Kesstryl »

Okay, I just deleted the last two defines that were giving me a problem and the game loads. Now my theme changer will not change the theme. It stays stuck on the theme that I originally had before I went into hiatus. I'm not sure where to go to look for anything that might be making my theme changer stuck. I even have a vanilla version of the engine I haven't messed with and copied and replaced the admin_theme module to see if something in there went wonkers, but it did not change the problem.

*Edit* Okay I see it is stored in the config/config.php and my selected templates are writing there, but I keep seeing only the demo template even when I'm logged in as the admin. I'm not sure how to see a template that I selected as admin. Yes I did refresh the pages (many times). At least we know the modules are working and writing the template themes correctly, I don't know why they are not displaying.
User avatar
Kesstryl
Posts: 202
Joined: Sat Sep 22, 2012 5:27 am

Re: Error Messages upon logging in

Post by Kesstryl »

Apparently the admin template chooser is not what I'm supposed to use, it's the regular player template chooser that made me see the template changes. I'm not sure if this is intended or not. Is the admin template chooser only there to see what a new player first sees upon logging in?
User avatar
a_bertrand
Posts: 1536
Joined: Mon Feb 25, 2013 1:46 pm

Re: Error Messages upon logging in

Post by a_bertrand »

Yes the admin template change changes the default template the players will see.
Creator of Dot World Maker
Mad programmer and annoying composer
Post Reply

Return to “General”