nb Core Community
February 09, 2012, 09:21:08 pm *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: 1.2.3 +nb is now final and released

@new registrations. I will not allow any new registrations here as there are more (real person) spambots here than ever.... captcha proved to be ineffective.

After your registration, mail me at ( admin AT shinobilegends.com ) from the mail address you want to register. Provide some text about you and possibly your game.
 
   Home   Help Search Calendar Downloads Login Register  
Pages: [1]
  Print  
Author Topic: Superuser Flags  (Read 1046 times)
A Cool Guy
Newbie
*

Karma: +0/-0
Posts: 10



View Profile WWW
« on: July 31, 2010, 09:33:55 pm »

When i tick

See PHP Notices in debug output

i get this error everywhere

PHP Notice: "Undefined variable: setDefault"
in /home/gothicga/public_html/lib/settings.class.php at 75.
PHP Notice: "Undefined variable: setDefault"
in /home/gothicga/public_html/lib/settings.class.php at 76.

dont know if its a bug or coding error or server error so any ideas would help pleas thanks.
Logged

If i can i will.
If i cant i wont Smiley
Nightborn
Administrator
Sr. Member
*****

Karma: +20/-0
Posts: 306



View Profile WWW
« Reply #1 on: August 11, 2010, 05:38:16 am »

Post the URL pls =) or name the site
Logged

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
A Cool Guy
Newbie
*

Karma: +0/-0
Posts: 10



View Profile WWW
« Reply #2 on: August 11, 2010, 09:04:48 am »

www.acoolguysgame.co.uk
Logged

If i can i will.
If i cant i wont Smiley
Nightborn
Administrator
Sr. Member
*****

Karma: +20/-0
Posts: 306



View Profile WWW
« Reply #3 on: September 17, 2010, 08:07:32 pm »

Sorry for the late reply.

lib/settings.class.php
 69                 if (!isset($this->settings[$settingname])){
 70                         //nothing set, we have to use the default value
 71                         if (file_exists("lib/data/".$this->tablename.".php")) require("lib/data/".$this->tablename.".php");
 72                         if ($default===false) {
 73                                 if (isset($defaults[$settingname])) $setDefault=$defaults[$settingname];
 74                                         else $setDefault='';
 75                         } else $setDefault=$default;


Add that - will be in the 1.2.3 then. It's just you have a module that does not set a default value for a variable, hence the error. It's an old core "bug" so to speak.
Logged

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
A Cool Guy
Newbie
*

Karma: +0/-0
Posts: 10



View Profile WWW
« Reply #4 on: September 17, 2010, 10:22:45 pm »

Brilliant thanks Smiley
Logged

If i can i will.
If i cant i wont Smiley
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!