Page 4 of 5

Re: nuBuilder on XAMPP

Posted: Thu Mar 24, 2022 1:50 pm
by Duski
I went from scratch:
1. copied nuBuilder files from the newest version 22.3.2022
DB Version: V.4.5-2022.01.30.00
Files Version: V.4.5-2022.02.22.02
2. created database with the same name as in production instance
3. added password for user as in the produstion instance
4. modified nuconfig.php
$nuConfigDBHost= "127.0.0.1";
$nuConfigDBName= "xxxxx"; //same as in production instance
$nuConfigDBUser%= "yyyyy"; //same as in production instance
$nuConfigDBPassword= "zzzzz"; //same sa in production instance
$nuConfigDBEngine= "MyISAM";
$nuConfigDBCollate="utf8_general_ci";
$nuConfigDBCharacterSet= "utf8";
$nuConfigDBOptions= array();
// Administrator Login:
$nuConfigDBGlobeadminUsername= "globeadmin";
$nuConfigDBGlobeadminPassword= "nu";
5. after logging
- no graphics
- error:
Uncaught Error.
Notice: Undefined index: DB_OPTIONS in C:\xampp\htdocs\katalog\core\nudatabase.php on line 11

What's wrong ?

Re: nuBuilder on XAMPP

Posted: Thu Mar 24, 2022 2:10 pm
by kev1n
Try using the orginal nuconfig.php and then modify it.

Re: nuBuilder on XAMPP

Posted: Thu Mar 24, 2022 2:13 pm
by Duski
Original from production instance or from fresh installation ? I modified the fresh installed nuconfig.php ...

Re: nuBuilder on XAMPP

Posted: Thu Mar 24, 2022 2:17 pm
by kev1n
By "original" I meant the one from Github.

Quick fix:

Replace this line in nudatabase.php

Code: Select all

$DBOptions				= $_SESSION['nubuilder_session_data']['DB_OPTIONS'];
with

Code: Select all

$DBOptions				= "";
I'll look into it later to figure out what's going wrong.

Re: nuBuilder on XAMPP

Posted: Thu Mar 24, 2022 3:35 pm
by Duski
I edited

Code: Select all

$DBOptions= "";
Then I erased all tables and views in database and imported the ones from database-backup from production instance.
Everything works including graphics !
But login works only with root credentials (globeadmin, nu) nevertheless in nucongig.php there are modified credentials:

Code: Select all

$nuConfigDBGlobeadminUsername= "xxxx";
$nuConfigDBGlobeadminPassword= "yyyy";

Re: nuBuilder on XAMPP

Posted: Thu Mar 24, 2022 3:36 pm
by kev1n
Did you restart the browser after modifying nuconfig.php?

Re: nuBuilder on XAMPP

Posted: Thu Mar 24, 2022 4:53 pm
by Duski
Yes, I did.

Re: nuBuilder on XAMPP

Posted: Thu Mar 24, 2022 5:02 pm
by Duski
I can live with it, but I'd like to know, where is the problem for the future ...

Re: nuBuilder on XAMPP

Posted: Thu Mar 24, 2022 5:25 pm
by Duski
In EDGE login works :-)
But I don't understand, why it doesn't work in Vivaldi (after browser restart) ...

Re: nuBuilder on XAMPP

Posted: Thu Mar 24, 2022 5:26 pm
by kev1n
No issues here with XAMPP and Apache, on different systems.
You might have to try the usual stuff like restarting Apache,clearing the browser cache, trying in another browser, checking the log files, restarting the computer etc..