PDF Export Problem

Hi Guys,

I’ve just started playing with Scriptcase version 7 and can’t seem to get the new pdf export option to work when I upload to my hosting server. It works fine locally in my development environment.

Here’s what happens…

If I click to view the pdf I get a 404 error.

If I click to download the pdf I do get a pdf file which is non zero in length (787 bytes). However, when I try to open this file in Adobe Reader it tells me that the file is not valid.

Here’s what gets output in the log file which lives in my tmp folder…

./wkhtmltopdf-i386 --page-size Letter --orientation Portrait --outline-depth 0 --header-right “[page]” http://drive-designers.tsm-eriks.co.uk/_lib/tmp/sc_syn_grid_results_html_va7tem77ohp1u1evv4armq0mv7.html /var/www/vhosts/tsm-eriks.co.uk/subdomains/drive-designers/httpdocs/_lib/tmp/sc_pdf_20130608192937_998_syn_grid_results.pdf

I’m stumped because all of the paths in the log file appear valid. Does anyone have any suggestions as to what the problem may be?

Regards,

Mike

Anyone?..

I don’t have a clue. But if you are still evaluating SC then you can try to get a live chat on SC website for help. If you have it running well locally and after upload with full libraries and have set connections / dir’s right, it simply should work or there is some kind of bug.

Your PHP Version is 5.3? The files in _lib/prod_third/wkhtmltopdf (deployment directory) must have rights on 755 …

Hi Guys,

The version of PHP on our hosting server is PHP Version 5.2.17. The _lib folder and all of its subfolders have full 777 permissions.

Could the fact that we’re not using PHP 5.3 be significant?

Thanks,

Mike

It might be. If you are able to I would install a small wamp server on your local machine and simply test it.

Yes. SC 7 = PHP 5.3. See documentation …

HI Guys,

I have had our hosting server updated to PHP version 5.3.26, but the PDF export problem still persists. I have setup a test grid application here…

http://sc7.tsm-eriks.co.uk/grid_tb_service_factors/grid_tb_service_factors.php

If anyone would care to take a look and let me know if they have any ideas as to why this isn’t working I would be very grateful.

Thanks,

Mike

Only the pdf is not working. That sounds as a bug to me…

Is there any chance that someone from Netmake could have a look at this and confirm if it is indeed a bug?

Thanks,

Mike

@mikew: see post #4. Have you set the file rights to 755?

I’ve just double checked. The _lib folder and all files and sub-folders have full 777 rights. Any other ideas?

Thanks,

Mike

Yes … Create an info.php on your site …

<?php

echo phpinfo();



… an i check this with my configuration. Send the url with PN to me.

Hi Reinhard,

Here’s a link to our phpinfo() page…

http://sc7.tsm-eriks.co.uk/phpinfo.php

Thanks,

Mike

Hi Mike,

check:
doc_root -> empty?
open_basedir -> path with “:”?
Zend Guard Loader -> not installed?

I have the same problem and reported as bugs , hope can get help from support ,
simply just pdf is missing in the tmp folder on deployed project, only log file exist
on develop status , can find generated pdf together with log file so it runs ok

@frankotse: have you read my posts in this thread und checked you environment?

@RHS
is it caused by mismatch path? log file, xls file exist on tmp folder, just no pdf.
pdfReport also have problem and I find the generated code from /_lib/font/wt002.mtx.php still point to development environment folder, I correct it and works fine.
/_lib/font/wt002.mtx.php: $ttffile=’/Applications/NetMake/v7/wwwroot/scriptcase/app/FCP_estimate/_lib/font/wt002.ttf’;

Upload a pdf file via ftp and see if you can download it via a browser. If not then your settings in .htaccess or your apache settings disallow this.

I’m getting the same Issue…

Its not working over HTTPS:

dram