Hello, I'm trying to figure out if I'm doing something wrong or if it's VBO, and then figure out what to do next.
I'm using VBO to select a number of entities, create PDFs based on each one, concatenate that into one PDF, and download the multi-page PDF. I'm using the FPDF library to create the PDFs as local files in /tmp & the FPDI library to concatenate them. I'm using an action to run the PDF creation, concatenation, and output.
All of that works except for the last step, downloading the multi-page PDF. It just silently doesn't happen. No download dialog, no error message. I can save the multi-page PDF as a local file in /tmp, so I know that works. If I change the FPDI flag to download the output instead, nothing happens.
All of my experience so far suggests that VBO's behavior is masking or interfering with the download step, as if the action was trying to present the download but no longer has the stage. However, #1222844: Provide an action for creating an archive of selected files suggests that all of this is possible.
What am I doing wrong? Should I somehow be presenting the download from the View and not from the action?
Comments
Comment #1
bojanz CreditAttribution: bojanz commentedThe download action is in actions/archive.action.inc so you can start your debugging from there.
The download is never initiated, you are supposed to get a message with a link to the download file.
maybe that's not happening?
Also, if you're using VBO 3.1, try going back to 3.0 to confirm if maybe there was a recent regression.
Comment #2
bojanz CreditAttribution: bojanz commentedLet's keep this open for now.
Comment #3
bojanz CreditAttribution: bojanz commentedComment #4
pdesai CreditAttribution: pdesai commentedI am using VBO 3.2 and it is not giving me the download link. It goes right back to the view page again. Any ideas?
Comment #5
bojanz CreditAttribution: bojanz commentedIn the VBO settings enable the "Skip batching" option and retry. That should help us narrow down the potential problem.
Comment #6
pdesai CreditAttribution: pdesai commentedThanks for the quick response. However, even with that option checked - it still goes back to the views page. Here is the views export: