Page 1 of 1

nuRunProcedure from inside of eval

Posted: Mon Oct 23, 2023 8:29 pm
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

Re: nuRunProcedure from inside of eval

Posted: Tue Oct 24, 2023 12:10 am
by kev1n
Hi,

Does it work if you call it in the AS event?

Re: nuRunProcedure from inside of eval

Posted: Tue Oct 24, 2023 7:41 am
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

Re: nuRunProcedure from inside of eval

Posted: Tue Oct 24, 2023 7:59 am
by kev1n
Is the function declared in your core/nucommon.php file?

Re: nuRunProcedure from inside of eval

Posted: Tue Oct 24, 2023 8:24 am
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

Re: nuRunProcedure from inside of eval

Posted: Tue Oct 24, 2023 8:50 am
by kev1n
You could replace nucommon.php from Github with your local one.