Welcome to the nuBuilder forums!

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

Moving application to win2022 server

Questions related to installing, updating, setting up and configuring
sandeepgumudelli
Posts: 41
Joined: Thu Jan 25, 2018 3:51 pm

Moving application to win2022 server

Unread post by sandeepgumudelli »

Hi ,

I have moved application built using nubuilder to win 2022 from win 2012 with following steps.

1) copied the source code to xamp
2) exported the database
3) changed relevant connection string.
4) started apache and mysql.

After performing above steps i am able to see login screen with localhost on the server as well as outside the server using url.

However, i tried to login with normal user or globeadmin i am getting attached error and warmings. please suggest.
Attachments
nuerror.PNG
nuerror.PNG (87.56 KiB) Viewed 4770 times
kev1n
nuBuilder Team
Posts: 3847
Joined: Sun Oct 14, 2018 6:43 pm
nuBuilder Version: 4.5
Has thanked: 2 times
Been thanked: 9 times
Contact:

Re: Moving application to win2022 server

Unread post by kev1n »

Hi,

What code is called in nudatabase.php, row 41?
sandeepgumudelli
Posts: 41
Joined: Thu Jan 25, 2018 3:51 pm

Re: Moving application to win2022 server

Unread post by sandeepgumudelli »

nudb_code.PNG
nudb_code.PNG (134.76 KiB) Viewed 4743 times

ini_set("session.gc_maxlifetime", $gcLifetime);
kev1n
nuBuilder Team
Posts: 3847
Joined: Sun Oct 14, 2018 6:43 pm
nuBuilder Version: 4.5
Has thanked: 2 times
Been thanked: 9 times
Contact:

Re: Moving application to win2022 server

Unread post by kev1n »

Try excluding/removing that line.
sandeepgumudelli
Posts: 41
Joined: Thu Jan 25, 2018 3:51 pm

Re: Moving application to win2022 server

Unread post by sandeepgumudelli »

Thank you Kevin for quick response. It made me to move one step forward. However, Still not able to login successfully.

From the first screenshot ini_set warning is resolved however i feel actual error is last message from first screenshot.:

Fatal error: Uncaught Error: Attempt to modify property "forms" on null in E:\xampp\htdocs\PMTools_PROD\nuapi.php:33
Stack trace:
#0 {main}
thrown in E:\xampp\htdocs\PMTools_PROD\nuapi.php on line 33


line 33 code for nuapi.php is

$f->forms[0] = new stdClass;
nuapi.PNG
nuapi.PNG (181.9 KiB) Viewed 4739 times
kev1n
nuBuilder Team
Posts: 3847
Joined: Sun Oct 14, 2018 6:43 pm
nuBuilder Version: 4.5
Has thanked: 2 times
Been thanked: 9 times
Contact:

Re: Moving application to win2022 server

Unread post by kev1n »

What's your nuBuilder version, PHP version, mySQL version?
sandeepgumudelli
Posts: 41
Joined: Thu Jan 25, 2018 3:51 pm

Re: Moving application to win2022 server

Unread post by sandeepgumudelli »

Server version: 10.4.28-MariaDB - mariadb.org binary distribution

PHP/8.1.17
Database client version: libmysql - mysqlnd 8.1.17

nubuilder 4
sandeepgumudelli
Posts: 41
Joined: Thu Jan 25, 2018 3:51 pm

Re: Moving application to win2022 server

Unread post by sandeepgumudelli »

on my old windows server we have the following.


Database client version: libmysql - mysqlnd 5.0.12-dev
PHP version: 7.0.30


Server version: 10.1.32-MariaDB - mariadb.org binary distribution
kev1n
nuBuilder Team
Posts: 3847
Joined: Sun Oct 14, 2018 6:43 pm
nuBuilder Version: 4.5
Has thanked: 2 times
Been thanked: 9 times
Contact:

Re: Moving application to win2022 server

Unread post by kev1n »

nuBuilder4 might not be completely compatible with your existing setup. I recommend updating both nuBuilder to the latest version (4.5) and your PHP version to a more recent version.
sandeepgumudelli
Posts: 41
Joined: Thu Jan 25, 2018 3:51 pm

Re: Moving application to win2022 server

Unread post by sandeepgumudelli »

Thank you very much Kevin for the advice.

I have created separate instance with 4.5 version. but i got struct with migrate existing forms and data. looks like few fields have changed.

Do we have ant specific procedure to follow when we have latest version?
Post Reply