Page 1 of 2

Moving application to win2022 server

Posted: Wed Jul 12, 2023 11:03 am
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.

Re: Moving application to win2022 server

Posted: Wed Jul 12, 2023 12:27 pm
by kev1n
Hi,

What code is called in nudatabase.php, row 41?

Re: Moving application to win2022 server

Posted: Wed Jul 12, 2023 12:34 pm
by sandeepgumudelli
nudb_code.PNG
nudb_code.PNG (134.76 KiB) Viewed 5090 times

ini_set("session.gc_maxlifetime", $gcLifetime);

Re: Moving application to win2022 server

Posted: Wed Jul 12, 2023 12:36 pm
by kev1n
Try excluding/removing that line.

Re: Moving application to win2022 server

Posted: Wed Jul 12, 2023 12:48 pm
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 5086 times

Re: Moving application to win2022 server

Posted: Wed Jul 12, 2023 12:55 pm
by kev1n
What's your nuBuilder version, PHP version, mySQL version?

Re: Moving application to win2022 server

Posted: Wed Jul 12, 2023 1:03 pm
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

Re: Moving application to win2022 server

Posted: Wed Jul 12, 2023 1:14 pm
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

Re: Moving application to win2022 server

Posted: Wed Jul 12, 2023 1:36 pm
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.

Re: Moving application to win2022 server

Posted: Wed Jul 12, 2023 2:07 pm
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?