Error on 'nuconfig.php'

Questions related to nuBuilder Forte Reports and the Report Builder.

Error on 'nuconfig.php'

Postby IceQb » Tue Aug 14, 2018 3:25 pm

At commit 5eef93f933cb80d4b7258bcb28f9eb0c61b052c3 there where made changes on nuconfig.php

At the lines 14 and 20 there are " instead of '. This results in php errors. I would give you a pull request but i have not figured out how to do.

best regards
Posts: 1
Joined: Tue Aug 14, 2018 3:15 pm

Re: Error on 'nuconfig.php'

Postby toms » Tue Aug 14, 2018 3:29 pm


Some double quotes need to be replaced with single quotes. And double quotes need prefixing.

This modified nuconfig.php should work:

Code: Select all

    $nuConfigDBHost                 = "";
    $nuConfigDBName                 = "nubuilder4";
    $nuConfigDBUser                 = "root";
    $nuConfigDBPassword             = "";
    $nuConfigDBGlobeadminUsername   = "globeadmin";     //-- globeadmin username
    $nuConfigDBGlobeadminPassword   = "nu";             //-- globeadmin password
    $nuConfigTitle                  = "nuBuilder 4";
    $nuConfigIsDemo                 = false;
/*    $nuWelcomeBodyInnerHTML         = "
         <div id='outer' style='width:100%'>

            <div id='login' class='nuLogin'>
                     <td align='center' style='text-align:center;height:50px' colspan='2'>
                        <div id='nulogo' style='margin:50px 0px 20px 50px;background-size:100% 100%;background-image:url(\"graphics/logo.png\");width:200px;height:80px;'></div>
                     <td style='text-align:right;margin:0px 5px 0px 20px;'><span style='padding:0px 5px 0px 40px;'>Username</span></td>
                     <td style='text-align:left'><input id='nuusername'/></td>
                     <td style='text-align:right;margin:0px 5px 0px 20px;'><span style='padding:0px 5px 0px 40px;'>Password</span></td>
                     <td style='text-align:left'><input id='nupassword' type='password'  onkeypress='nuSubmit(event)'/></td>
                     <td style='text-align:center' colspan='2'>
                        <input id='submit' type='button' class='nuButton'  style='margin:20px 0px 0px 0px;width:90px;height:30px;' onclick='nuLoginRequest()' value='Log in'/>

    if(array_key_exists('REQUEST_URI', $_SERVER)){
        if(strpos($_SERVER['REQUEST_URI'], basename(__FILE__)) !== false){
            header('HTTP/1.0 404 Not Found', true, 404);


Re: Error on 'nuconfig.php'

Postby admin » Thu Aug 16, 2018 8:46 am


I have put that fix on Github.

Let me know if it works for you.

Site Admin
Posts: 3290
Joined: Mon Jun 15, 2009 9:53 am

Return to Reports