Using SC 8.1 I created a very plain grid deployed to a very basic, established CentOS/Apache server with proper ssl certs. The deployed grid works great except when I export out to PDF. What I get is a 404 screen indicating a missing html file, which was created during the wkhtmltopdf creation process. Initial indication is that the grid is trying to send the browser to http, instead of https. I have deployed other grids without this issue using SC 7x. When I compare the code generated between the two versions of SC I find one difference, the SC8.1 code contains the following line in the index.php file, while the index.php file generated from the SC7x does not contain the following line:
$arq_pdf_in = str_replace(“https://”, “http://”, $arq_pdf_in); $arq_pdf_in = str_replace(“https://”, “http://”, $arq_pdf_in);
If I switch the position of the https and the http terms in this line of code or if I remark out this line of code totally, the PDF generation works entirely. I have searched all settings within SC, this forum and documentation regarding wkhtmltopdf and cannot find how this is happening. I really need the PDF generation working entirely for my current project, and I really don’t want to change this manually for obvious reasons. Does anyone have any ideas I could try to solve this? Thanks!