Author Topic: NewDay error in 1.2.1 +NB & Code Fix  (Read 3411 times)

marjanovich

  • Guest
NewDay error in 1.2.1 +NB & Code Fix
« on: October 14, 2008, 08:00:52 pm »
Code: [Select]
Fatal error: require_once() [function.require]: Failed opening required 'lib/settings_exended.php' (include_path='.:/usr/local/nf/php5/lib/php') in /mnt/w1007/d12/s14/b02d4616/www/digitaldamon.net/UAO-121/lib/expire_chars.php on line 7

Happens whenever I log back into the game after letting the cookie expire, a refresh will solve the issue but this happens everytime and hitting f5 to reload every single time seems a bit... much

settings_extended.php does exist in the /lib folder

NVM found the typo in the code... Line 7 in expire_chars.php is
Code: [Select]
require_once("lib/settings_exended.php");should be...
Code: [Select]
require_once("lib/settings_extended.php");
EDITED 12:14PM PST - Fixing the typo and testing out all modules included (Forest Fairy, HP Bar, XP Bar, Graveyard Haunting) creates this new problem the problem only appears if you attempt to click on the individual module settings, and an examination of PHPmyadmin shows the table does not exist at all

Code: [Select]
SELECT * FROM settings_extended
Table 'd60535335.settings_extended' doesn't exist
Call Stack:
1: db_query("SELECT * FROM settings_ex...") called from /mnt/w1007/d12/s14/b02d4616/www/digitaldamon.net/UAO-121/lib/settings.class.php on line 44
2: loadSettings() called from /mnt/w1007/d12/s14/b02d4616/www/digitaldamon.net/UAO-121/lib/settings.class.php on line 16
3: __construct("settings_extended") called from /mnt/w1007/d12/s14/b02d4616/www/digitaldamon.net/UAO-121/lib/settings_extended.php on line 8
4: require("/mnt/w1007/d12/s14/b02d46...") called from /mnt/w1007/d12/s14/b02d4616/www/digitaldamon.net/UAO-121/configuration.php on line 9

EDITED 12:45PM PST - Looking through installer_sqlstatements.php (installer package) it looks like the table settings_extended was never even initially created.

Questions are the settings for modules susposed to be SQL entries or are they susposed to be appending to /lib/data/settings_extended.php ? Which route were you trying to go with this?
« Last Edit: October 14, 2008, 08:48:51 pm by marjanovich »

Nightborn

  • Administrator
  • Sr. Member
  • *****
  • Posts: 320
  • Karma: +20/-0
    • View Profile
    • Shinobilegends
Re: NewDay error in 1.2.1 +NB & Code Fix
« Reply #1 on: October 15, 2008, 06:02:38 am »
Thanks for the type note.
(fixed)

as for the rest...

I forgot to update lib/all_tables.php .... now it is.

You can just copy the structure of the settings table - however making the value to be text sized and the setting to be varchar(50)... that should suffice.

Thanks for the notes.

It should be fixed, but it won't be easy and it won't be fast. If you want
to help - wonderful. But keep in mind that it will take months of wading
through the ugliest code we have in the tree. If you've got a weak stomach -
stay out. I've been there and it's not a nice place.

   - Al Viro