You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Upon clicking on "Submit" in Crop PDF's page, nothing gets submitted and the following error takes place in the console:
How to reproduce:
Go to /crop
Upload a file
Click submit
Version of Stirling-PDF
0.35.0
Last Working Version of Stirling-PDF
No response
Page Where the Problem Occurred
/crop
Docker Configuration
No response
Relevant Log Output
Uncaught (in promise) TypeError: Cannot read properties of null (reading 'textContent')
at HTMLFormElement.<anonymous> (downloader.js:39:47)
at HTMLFormElement.dispatch (jquery.min.js:2:43064)
at y.handle (jquery.min.js:2:41048)
Additional Information
No response
Browsers Affected
Firefox, Microsoft Edge
No Duplicate of the Issue
I have verified that there are no existing issues raised related to my problem.
The text was updated successfully, but these errors were encountered:
The error you're encountering, "TypeError: Cannot read properties of null (reading 'textContent')", suggests that the script is trying to access a DOM element that doesn't exist or hasn't been loaded yet. This issue is occurring in the downloader.js file at line 39.
To address this, you should check the following:
Ensure the Element Exists: Verify that the element you're trying to access with textContent is present in the DOM when the script runs. It might be missing or not yet rendered at the time the script executes.
Check the Selector: Make sure the selector used to find the element is correct and matches the element's ID, class, or tag in the HTML.
Script Execution Timing: Ensure that the script runs after the DOM is fully loaded. You can wrap your JavaScript code in a DOMContentLoaded event listener to ensure it executes at the right time.
Debugging: Use browser developer tools to inspect the element and ensure it is present and correctly selected by your script.
If these steps don't resolve the issue, you might need to review the specific line in downloader.js to understand what element is being accessed and why it might be null.
Installation Method
None
The Problem
Upon clicking on "Submit" in
Crop PDF
's page, nothing gets submitted and the following error takes place in the console:How to reproduce:
Version of Stirling-PDF
0.35.0
Last Working Version of Stirling-PDF
No response
Page Where the Problem Occurred
/crop
Docker Configuration
No response
Relevant Log Output
Additional Information
No response
Browsers Affected
Firefox, Microsoft Edge
No Duplicate of the Issue
The text was updated successfully, but these errors were encountered: