Welcome to the nuBuilder Forums!

Join our community by registering and logging in.
As a member, you'll get access to exclusive forums, resources, and content available only to registered users.

php before save misbehaving

Questions related to installing, updating, setting up and configuring
Post Reply
Sasquatch
Posts: 11
Joined: Sat Mar 13, 2021 11:00 pm
Has thanked: 1 time

php before save misbehaving

Unread post 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"
kev1n
nuBuilder Team
Posts: 4444
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 75 times
Been thanked: 484 times
Contact:

Re: php before save misbehaving

Unread post by kev1n »

Hi,

Try updating to the latest on Github.
Sasquatch
Posts: 11
Joined: Sat Mar 13, 2021 11:00 pm
Has thanked: 1 time

Re: php before save misbehaving

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