Welcome to the nuBuilder Forums!

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

Custom code takes no effect

Post Reply
Drache
Posts: 10
Joined: Mon Nov 07, 2011 3:12 pm

Custom code takes no effect

Unread post by Drache »

Hello NuBuilder community,

All custom code takes no effect. Eventually, there is something missing with the installation ?
Bildschirmfoto 2014-10-06 um 13.14.58.png
That form still works well; any rubbish text (as well as valid PHP) in the "custom code" tabs seems ignored.
:?: Shouldn't an error message come up when displaying/saving that form later ?

Additionally, it appears wrong that

The installation is the latest nuBuilder with PHP5.6.0. I've re-installed it two times without better success.
Everything else (creating forms, browsing and editing records) works fine.
How can we debug that ?

Thank you,
Ruben
You do not have the required permissions to view the files attached to this post.
massiws
Posts: 503
Joined: Thu May 24, 2012 2:08 am
Location: Milan, Italy
Contact:

Re: Custom code takes no effect

Unread post by massiws »

Ruben, I made now a fresh install and I get no issue, but my PHP version is 5.5.3.
Check log messages in Apache folder: can't you get more information?
Max
Drache
Posts: 10
Joined: Mon Nov 07, 2011 3:12 pm

Re: Custom code takes no effect

Unread post by Drache »

No progress until now. The only suspects are lots of warnings in the apache error log. All of them say

Code: Select all

mod_fcgid: stderr: PHP Warning:  Creating default object from empty value in /var/www/ldgb/htdocs/nucommon.php on line 852
where the line differs (line 834, 842, 852 ...). All of these lines look like this:

Code: Select all

$format[...]->type        = ...; 
Bug or wrong-server-configuration ? I'm unsure.
massiws
Posts: 503
Joined: Thu May 24, 2012 2:08 am
Location: Milan, Italy
Contact:

Re: Custom code takes no effect

Unread post by massiws »

Drake,
To limit error messages I made a patch in nucommon.php: have a look here https://github.com/massiws/nuBuilderPro ... 1f7d13ef9/

Max
Post Reply