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.

View php syntax errors

Questions related to customising nuBuilder Forte with JavaScript or PHP.
treed
Posts: 205
Joined: Mon May 18, 2020 12:02 am
Been thanked: 2 times
Contact:

Re: View php syntax errors

Unread post by treed »

Hi Kev1n, Not much is said in the Wiki about using nuEval(). How is it used?
kev1n
nuBuilder Team
Posts: 4565
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 76 times
Been thanked: 529 times
Contact:

Re: View php syntax errors

Unread post by kev1n »

Whenever a Procedure is run, nuEval() is executed.
It's an internal function, you do not need to call it directly.
treed
Posts: 205
Joined: Mon May 18, 2020 12:02 am
Been thanked: 2 times
Contact:

Re: View php syntax errors

Unread post by treed »

Well I finally got a chance to try this and I can't see any difference as I still just get a blank screen if there's a php error. The errors can be seen on the apache2 error log.
kev1n
nuBuilder Team
Posts: 4565
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 76 times
Been thanked: 529 times
Contact:

Re: View php syntax errors

Unread post by kev1n »

What type of error are we referring to here?
treed
Posts: 205
Joined: Mon May 18, 2020 12:02 am
Been thanked: 2 times
Contact:

Re: View php syntax errors

Unread post by treed »

Code: Select all

[Mon Oct 23 08:24:13.916042 2023] [proxy_fcgi:error] [pid 90253] [client 192.52.251.253:59278] AH01071: Got error 'PHP message: PHP Warning:  move_uploaded_file(files/PurchaseOrder.xlsx): Failed to open stream: Permission denied in /var/www/html/db/libs/upload/upload1.php on line 10PHP message: PHP Warning:  move_uploaded_file(): Unable to move "/tmp/php0FBCU0" to "files/PurchaseOrder.xlsx" in /var/www/html/db/libs/upload/upload1.php on line 10', referer: https://dbs.winecountry-bbq.com/index.php
What I'd like to see is the same error you'd see from the command line or when running PHP in a browser. Unless there's something better. :hi: If someone is writing PHP and doesn't have access to the apache2 error logs all they'll see is a blank screen if there's a syntax error of any sort. This is when running in a new window. When running hidden a huge screen of stuff comes up, however I can't seem to find the actual error in there.

nuBuilder offers lots of great functions as a good API to PHP. Once you start to use those in your code you're limited to the "developer" functions built in to nuBuilder. A full blown line by line debugger would be awesome, but that's probably not in the cards. I'm saying this because there's a ton of locked up potential here.
Post Reply