Page 1 of 1

php before save misbehaving

Posted: Thu Feb 13, 2025 4:11 pm
by Sasquatch
i had nubuilder running in docker on test server and everything worked fine
after moving to production server suddenly my BS code stopped working
I "narrowed" it down to $nudata remaining empty....

Code: Select all

nuDebug(nuHash());
nuDebug($nudata);

	nuDebug($userIdInputObject = 'ed_by'); 
	nuDebug($userId = nuHash()['LOGIN_NAME']);

	nuDebug($mainFormId = nuHash()['nuFORMdata'][0]->object_id);


      nudebug(nuGetNuDataValue($nudata, $mainFormId, $userIdInputObject)); 
    	nuDebug(nuSetNuDataValue($nudata, $mainFormId, 'ed_by', $userId));
    



nuDebug("nudata:",$nudata);
first nudebug gives array of vvalues,
second nudebug returns 0 on new server and data array on test server

both instances set up using the same docker-compose and the same image versions, phpinfo(); is identical between them too
databases were migrated using mysqldump and then imported before nubuilder was started
I even started from scratch, still the same issue.

please save my sanity

btw i'm trying to save who edited entry by changing fiels named "ed_by"

Re: php before save misbehaving

Posted: Thu Feb 13, 2025 4:17 pm
by kev1n
Hi,

Try updating to the latest on Github.

Re: php before save misbehaving

Posted: Thu Feb 13, 2025 4:41 pm
by Sasquatch
I'm running latest release from github, I built docker image with php 7.4.33 and redeplyed it on new server.
both are running the same version:

Code: Select all

Database: mariadb.org binary distribution 11.6.2-MariaDB-ubu2404
PHP: 7.4.33
nuBuilder DB: V.4.5-2024.06.08.00
nuBuilder Files: V.4.5-2024.06.08.04


using master branch latest zip worked... starngely re-pulling image in situ did'n work, had to deploy from scratch :roll: