Welcome to the nuBuilder forums!

Please register and login to view forums and other content only available to registered users.

Warnings in local installation

Locked
massiws
Posts: 503
Joined: Thu May 24, 2012 2:08 am
Location: Milan, Italy
Contact:

Warnings in local installation

Unread post by massiws »

I transferred nuBuilder installation on my local server, where PHP is set to display warning and notice.
After login, in all pages I see a long sequence on notice and warnings, as you can see in this image:
warnings and notice on login (php.ini display_errors = On)
warnings and notice on login (php.ini display_errors = On)
img.png (167.56 KiB) Viewed 3012 times
Only happens to me?
Most of the errors are Strict Standards: Creating default object from empty value in... or Trying to get property of non-object in .. or Undefined index on .. or Undefined variable: ...
For some these errors I made a patch.

form.php lines 31-33 (error displayed: Undefined index on .../form.php line 31-32):

Code: Select all

$c                               = (isset($_GET['c']) ? $_GET['c'] : '');
$delete                          = (isset($_GET['delete']) ? $_GET['delete'] : '');
//$delete                          = $_GET['delete'];  duplicate
form.php line 1097 (error displayed in status bar, only logging as globeadmin: Trying to get property of non-object in .../form.php on line 1097 ):

Code: Select all

		if ($this->zzsys_user_id == 'globeadmin') {
			$userName = 'globeadmin';
		} else {
			$t = nuRunQuery("SELECT * FROM zzsys_user WHERE zzsys_user_id = '$this->zzsys_user_id'");
			$r = db_fetch_object($t);
			$userName = $r->sus_login_name;
		}
        print "<td class='unselected' style='text-align:right;border-style:none;width:30%'>";

		if ($this->form->sfo_help != '') {
			$help = "title='help' onclick=\"openHelp('".$this->form->zzsys_form_id."')\"";
			print "<span $help >($userName)&nbsp;|&nbsp;" . nuTranslate('Help') . "</span>";
		} else {
			$help = "";
			print "<span $help >($userName)&nbsp;</span>";
		}
I also have 3 errors Undefined index: #nu_session# / #parameter# in .../common.php on line .... The code is:

Code: Select all

//-- add session variables
	$a['#zzsys_session_id#']      = $_SESSION['nu_session'];
	$a['#access_level#']          = $_SESSION['nu_access_level'];
	$a['#zzsys_user_id#']         = $_SESSION['nu_user_id'];
	$a['#zzsys_user_group_name#'] = $_SESSION['nu_user_group'];
	$a['#session_id#']            = $_SESSION['#nu_session#'];
	$a['#ses#']                   = $_SESSION['#nu_session#'];
	$a['#session_parameter#']     = $a['#parameter#'];
Is it wrong variable #nu_session# and #parameter# on last 3 lines?

However, setting the php.ini display_errors=Off the application works correctly.

I hope this is helpful.
admin
Site Admin
Posts: 2781
Joined: Mon Jun 15, 2009 2:23 am
nuBuilder Version: 4.5
Been thanked: 1 time

Re: Warnings in local installation

Unread post by admin »

massiws,

Thanks for that.

Most of these will be fixed in the next release.

Steven
loginews
Posts: 1
Joined: Sun Dec 16, 2012 8:33 am

Re: Warnings in local installation

Unread post by loginews »

I am very sad that I can't get Nubuilder to work. I have localhost (wamp) fully functional for years already on my PC.
I have installed NUbuilder.

I have checked all the possible mistakes mentioned in the forums.

I still get this error:

Notice: Undefined index: ses in D:\htdocs\nubuilder\productionnu2\common.php on line 140

Notice: Undefined variable: time in D:\htdocs\nubuilder\productionnu2\common.php on line 285
Notice: Undefined variable: DBSiteGlobeadminPasswordOnly in D:\htdocs\nubuilder\productionnu2\formlogin.php on line 65

Notice: Trying to get property of non-object in D:\htdocs\nubuilder\productionnu2\formlogin.php on line 107

Notice: Trying to get property of non-object in D:\htdocs\nubuilder\productionnu2\formlogin.php on line 112


Then it immediately branches back to the login screen.
Locked