Welcome to the nuBuilder Forums!

Register and log in to access exclusive forums and content available only to registered users.

nuRunProcedure from inside of eval

Questions related to using nuBuilder Forte.
Post Reply
shuray
Posts: 30
Joined: Sun Apr 23, 2023 3:36 pm
Has thanked: 10 times
Been thanked: 5 times

nuRunProcedure from inside of eval

Unread post by shuray »

Hi!
I found that it is impossible to call nuRunProcedure() from Before Save PHP event. Is it a bug or some feature?

Code: Select all

/var/www/html/core/nucommon.php(1406) : eval()'d code
Call to undefined function nuRunProcedure()
Thank you
kev1n
nuBuilder Team
Posts: 4292
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 71 times
Been thanked: 444 times
Contact:

Re: nuRunProcedure from inside of eval

Unread post by kev1n »

Hi,

Does it work if you call it in the AS event?
shuray
Posts: 30
Joined: Sun Apr 23, 2023 3:36 pm
Has thanked: 10 times
Been thanked: 5 times

Re: nuRunProcedure from inside of eval

Unread post by shuray »

kev1n wrote: Tue Oct 24, 2023 12:10 am Does it work if you call it in the AS event?
No, does not. Cannot be called from any PHP form event
kev1n
nuBuilder Team
Posts: 4292
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 71 times
Been thanked: 444 times
Contact:

Re: nuRunProcedure from inside of eval

Unread post by kev1n »

Is the function declared in your core/nucommon.php file?
shuray
Posts: 30
Joined: Sun Apr 23, 2023 3:36 pm
Has thanked: 10 times
Been thanked: 5 times

Re: nuRunProcedure from inside of eval

Unread post by shuray »

kev1n wrote: Tue Oct 24, 2023 7:59 am Is the function declared in your core/nucommon.php file?
Oh!!
I see.. Not decared. There are nuRunPHPHidden and nuRunPHP instead of nuRunProcedure.
Ok, in that case the reference to nuRunProcedure in https://wiki.nubuilder.cloud/index.php?title=PHP is outdated
kev1n
nuBuilder Team
Posts: 4292
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 71 times
Been thanked: 444 times
Contact:

Re: nuRunProcedure from inside of eval

Unread post by kev1n »

You could replace nucommon.php from Github with your local one.
Post Reply