Page 1 of 1

No login displayed after install

Posted: Sat Jun 23, 2018 10:10 pm
by sympathy4u
Hi dear community,
I installed nuBuilder 4 I:
1-Created the database, then imported the database file.
2- Edited the config file.

When I enter the login page nothing is displayed. The page Source is the following with Xamp

Code: Select all

<!DOCTYPE html>
<html onclick="nuClick(event)">

<head>
<title>nuBuilder 4</title>
<meta http-equiv='Content-type' content='text/html;charset=UTF-8'>
<script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"><script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></script>


<script src='jquery/jquery.js?ts=20180621012722' type='text/javascript'></script>
<script src='nuformclass.js?ts=20180621012722' type='text/javascript'></script>
<script src='nuform.js?ts=20180621012722' type='text/javascript'></script>
<script src='nuformdrag.js?ts=20180621012722' type='text/javascript'></script>
<script src='nucalendar.js?ts=20180621012722' type='text/javascript'></script>
<script src='nucommon.js?ts=20180621012722' type='text/javascript'></script>
<script src='nureportjson.js?ts=20180621012722' type='text/javascript'></script>
<script src='nuajax.js?ts=20180621012722' type='text/javascript'></script>
<link rel='stylesheet' href='nubuilder4.css?ts=20180621012722' />

<script>


function nuValidCaller(o){
	
	if(o === null){return false;}
	
	return o.hasOwnProperty('nuVersion');
	
}
  
function nuHomeWarning(){

	if(window.nuEDITED){
		return nuTranslate('Leave this form without saving ?')+'  '+nuTranslate('Doing this will return you to the login screen.');
	}
	
	return nuTranslate('Doing this will return you to the login screen.');
	
}

function nuLoginRequest(){

    $.ajax({
        async    : true,  
        dataType : "json",
        url      : "nuapi.php",
        method   : "POST",
        data     : {nuSTATE 				: 
						{call_type			: 'login', 
						username			: $('#nuusername').val(), 
						password			: $('#nupassword').val(),
						login_form_id		: nuLoginF,
						login_record_id		: nuLoginR}
					},
        dataType : "json",          
        success  : function(data,textStatus,jqXHR){
			
            if(nuDisplayError(data)){
                if(data.log_again == 1){location.reload();}
            } else {
                window.nuFORM.addBreadcrumb();
                var last            = window.nuFORM.getCurrent();
                last.call_type      = 'getform';
                last.form_id        = data.form_id;
                last.record_id      = data.record_id;
                last.filter         = data.filter;
                last.search         = data.search;
                last.hash           = parent.nuHashFromEditForm();
                last.FORM           = data.form;
                nuBuildForm(data);
            }
        },
        error    : function(jqXHR,textStatus,errorThrown){
            
            var msg         = String(jqXHR.responseText).split("\n");
            nuMessage(msg);
            window.test = jqXHR.responseText;
            
            nuFormatAjaxErrorMessage(jqXHR, errorThrown);
            
        },
    }); 

}

window.nuVersion 		= 'nuBuilder4';
window.nuDocumentID		= Date.now();

if(parent.window.nuDocumentID == window.nuDocumentID){
	window.onbeforeunload	= nuHomeWarning;
}

window.nuHASH			= [];

<br />
<b>Parse error</b>:  syntax error, unexpected 'id' (T_STRING) in <b>C:\xamp\htdocs\nuBuilder\nuconfig.php</b> on line <b>13</b><br />
But with Wamp I get more detail for the last part

Code: Select all

window.nuHASH			= [];

<br />
<font size='1'><table class='xdebug-error xe-parse-error' dir='ltr' border='1' cellspacing='0' cellpadding='1'>
<tr><th align='left' bgcolor='#f57900' colspan="5"><span style='background-color: #cc0000; color: #fce94f; font-size: x-large;'>( ! )</span> Parse error: syntax error, unexpected 'id' (T_STRING) in C:\wamp64\www\talents\nuconfig.php on line <i>14</i></th></tr>
<tr><th align='left' bgcolor='#e9b96e' colspan='5'>Call Stack</th></tr>
<tr><th align='center' bgcolor='#eeeeec'>#</th><th align='left' bgcolor='#eeeeec'>Time</th><th align='left' bgcolor='#eeeeec'>Memory</th><th align='left' bgcolor='#eeeeec'>Function</th><th align='left' bgcolor='#eeeeec'>Location</th></tr>
<tr><td bgcolor='#eeeeec' align='center'>1</td><td bgcolor='#eeeeec' align='center'>0.1396</td><td bgcolor='#eeeeec' align='right'>272600</td><td bgcolor='#eeeeec'>{main}(  )</td><td title='C:\wamp64\www\talents\index.php' bgcolor='#eeeeec'>...\index.php<b>:</b>0</td></tr>
</table></font>

Re: No login displayed after install

Posted: Sun Jun 24, 2018 11:27 am
by toms
Hi,

I assume there's a syntax error in nuconfig.php. Can you post its content (remove credentials)?

Re: No login displayed after install

Posted: Sat Jun 30, 2018 12:04 am
by admin
.