Welcome to the nuBuilder forums!

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

nuBuilder on XAMPP Topic is solved

Questions related to installing, updating, setting up and configuring
Duski
Posts: 95
Joined: Thu Mar 04, 2021 2:03 pm
nuBuilder Version: 4.5

Re: nuBuilder on XAMPP

Unread post 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 ?
kev1n
nuBuilder Team
Posts: 3801
Joined: Sun Oct 14, 2018 6:43 pm
nuBuilder Version: 4.5
Has thanked: 2 times
Been thanked: 9 times
Contact:

Re: nuBuilder on XAMPP

Unread post by kev1n »

Try using the orginal nuconfig.php and then modify it.
Duski
Posts: 95
Joined: Thu Mar 04, 2021 2:03 pm
nuBuilder Version: 4.5

Re: nuBuilder on XAMPP

Unread post by Duski »

Original from production instance or from fresh installation ? I modified the fresh installed nuconfig.php ...
kev1n
nuBuilder Team
Posts: 3801
Joined: Sun Oct 14, 2018 6:43 pm
nuBuilder Version: 4.5
Has thanked: 2 times
Been thanked: 9 times
Contact:

Re: nuBuilder on XAMPP

Unread post 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.
Duski
Posts: 95
Joined: Thu Mar 04, 2021 2:03 pm
nuBuilder Version: 4.5

Re: nuBuilder on XAMPP

Unread post 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";
kev1n
nuBuilder Team
Posts: 3801
Joined: Sun Oct 14, 2018 6:43 pm
nuBuilder Version: 4.5
Has thanked: 2 times
Been thanked: 9 times
Contact:

Re: nuBuilder on XAMPP

Unread post by kev1n »

Did you restart the browser after modifying nuconfig.php?
Duski
Posts: 95
Joined: Thu Mar 04, 2021 2:03 pm
nuBuilder Version: 4.5

Re: nuBuilder on XAMPP

Unread post by Duski »

Yes, I did.
Duski
Posts: 95
Joined: Thu Mar 04, 2021 2:03 pm
nuBuilder Version: 4.5

Re: nuBuilder on XAMPP

Unread post by Duski »

I can live with it, but I'd like to know, where is the problem for the future ...
Duski
Posts: 95
Joined: Thu Mar 04, 2021 2:03 pm
nuBuilder Version: 4.5

Re: nuBuilder on XAMPP

Unread post by Duski »

In EDGE login works :-)
But I don't understand, why it doesn't work in Vivaldi (after browser restart) ...
kev1n
nuBuilder Team
Posts: 3801
Joined: Sun Oct 14, 2018 6:43 pm
nuBuilder Version: 4.5
Has thanked: 2 times
Been thanked: 9 times
Contact:

Re: nuBuilder on XAMPP

Unread post 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..
Post Reply