Page 2 of 2

Re: View php syntax errors

Posted: Tue Sep 19, 2023 1:47 am
by treed
Hi Kev1n, Not much is said in the Wiki about using nuEval(). How is it used?

Re: View php syntax errors

Posted: Tue Sep 19, 2023 5:09 am
by kev1n
Whenever a Procedure is run, nuEval() is executed.
It's an internal function, you do not need to call it directly.

Re: View php syntax errors

Posted: Mon Oct 23, 2023 6:09 pm
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.

Re: View php syntax errors

Posted: Mon Oct 23, 2023 7:08 pm
by kev1n
What type of error are we referring to here?

Re: View php syntax errors

Posted: Wed Oct 25, 2023 10:05 pm
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.