Page 1 of 1
File upload download and PDF reports not working after upgrade
Posted: Mon May 26, 2025 2:27 pm
by stevenmiller
Hello again,
after upgrading to
DB: V.4.7-2025.05.25.00
Files: V.4.7-2025.05.26.06
the file upload described here is not working correctly anymore
https://github.com/nuBuilder/nuBuilder- ... le_subform
The files are stored, but the file name and ids not, so I can't click them.
Also with old existing uploads I can't click on them, to download them.
In addition to that all PDF reports are not generated anymore
Could anyone give me a hint?
Thanks, Steven
Re: File upload download and PDF reports not working after upgrade
Posted: Mon May 26, 2025 2:50 pm
by kev1n
Hi Steven,
To help resolve the issue with PDF reports not generating, we’ll need more details, such as:
Are there any error messages shown (either in the browser console or server logs)?
If you encounter an issue, be sure to check the developer console for errors by clicking the `F12` key on most browsers.
Also open nuDebug results (CTRL+SHIFT+D) and check your (Apache) server logs.
Do the reports use a procedure, a SQL query?
Do you pass Hash Cookies to the reports etc..
Re: File upload download and PDF reports not working after upgrade
Posted: Mon May 26, 2025 3:14 pm
by kev1n
As for the file upload:
Replace in Custom Code:
Code: Select all
function uploadFile(event) {
var td = $(event.target);
var t = td.attr('data-nu-prefix');
idRowFileName = t + idFileName;
idRowFileId = t + idFileId;
$("#fileToUpload").click();
}
With:
Code: Select all
function uploadFile(event) {
var td = $(event.target).parent(); // <--- changed this line
var t = td.attr('data-nu-prefix');
idRowFileName = t + idFileName;
idRowFileId = t + idFileId;
$("#fileToUpload").click();
}
Then, change the Access of the object "Filename" (ID files_file_name) to "Editable/Visible".
Also, add an onkeydown event for "Filename" with JS
event.preventDefault();
Re: File upload download and PDF reports not working after upgrade
Posted: Mon May 26, 2025 4:13 pm
by stevenmiller
All reports are not working, even when they are only filled by #object# values as well as SQL statements
Re: File upload download and PDF reports not working after upgrade
Posted: Mon May 26, 2025 4:22 pm
by kev1n
To help you properly, we’ll really need a bit more information—just saying "not working" makes it really difficult to pinpoint the issue.
I’ve just tested various reports using the latest nuBuilder version and Fast Report, and they all display correctly on my end. The issue could be related to your PHP version, MySQL version, or other dependencies....
Could you please share more details about your environment and any error messages you’re seeing? That would really help us troubleshoot effectively.
If you encounter an issue, be sure to check the developer console for errors by clicking the `F12` key on most browsers.
Also open nuDebug results (CTRL+SHIFT+D) and check your (Apache) server logs.
Re: File upload download and PDF reports not working after upgrade
Posted: Mon May 26, 2025 4:26 pm
by stevenmiller
The upload and download is now working! Thanks, Kevin!
Re: File upload download and PDF reports not working after upgrade
Posted: Mon May 26, 2025 4:30 pm
by stevenmiller
Database: (Ubuntu) 8.0.42-0ubuntu0.20.04.1
PHP: 8.1.2-1ubuntu2.21
nuBuilder DB: V.4.7-2025.05.25.00
nuBuilder Files: V.4.7-2025.05.25.03
When I click a pdf report
http Error 500 appears
Re: File upload download and PDF reports not working after upgrade
Posted: Mon May 26, 2025 4:37 pm
by kev1n
Did you review the Apache server logs to see if they provide more information about the error?
Re: File upload download and PDF reports not working after upgrade
Posted: Mon May 26, 2025 4:55 pm
by stevenmiller
Kevin, I found the issue, I had to install php8.1-curl