PDF Export Not Working

Hi,

We have recently started using Scriptcase & seem to have encountered a problem when using the Grid Export options. I have uploaded a test grid application to www.tsmmail.co.uk to demonstrate the problem. We are using NamesCo (www.names.co.uk) as our host. I have also set permissions on all files and folders to 777.

Essentially, if you look at the test site the pdf export button does not work at all (giving a 403 error). Also, the other export options work if you select view, but fail with the same 403 error if you select download.

I have read on a previous post that Java or the JRE needs to be installed on the server for the grid pdf export to work, so am waiting for our host to come back to me on this. I am a little confused though why the other export options also exhibit the same behaviour when the download option is selected.

If anybody has any suggestions they would be greatly appreciated.

Thanks,

Mike
Total Systems Management Limited

Re: PDF Export Not Working

I have read on a previous post that Java or the JRE needs to be installed on the server for the grid pdf export to work

I am not positive on this, but I believe that is for development only. Not for production.

In have run into cases where Shared servers do not like 777 across the board for an app and will shutdown access in this case. You may have lower your rights, but the ISP will know more.

A 403 can be caused by something simple as the lack of a trailing backslash in a path.

Firebug reports: (may help)


jspath	/_lib/prod/lib/js
pbfile	/content/Hosting/t/s/tsmmail.co.uk/web/_lib/tmp/sc_pb_0111d1eb8121e8cbf37e459450ea0b97.tmp
sc_apbgcol	/content/Hosting/t/s/tsmmail.co.uk/web/_lib/css/
sc_graf_pdf	2
sc_parms_pdf	800 LETTER -orientation PORTRAIT
sc_tp_pdf	cor
script_case_init	78
script_case_session	0111d1eb8121e8cbf37e459450ea0b97
scsess	0111d1eb8121e8cbf37e459450ea0b97
str_btn	Scriptcase5_Text/Scriptcase5_Text.css
str_lang	en_us
str_prod	/_lib/prod
str_schema	ERIKS2/ERIKS2
str_tmp	/_lib/tmp

Regards,
Scott.

Re: PDF Export Not Working

Hi Scott,

Thanks for the reply.

I have installed FireBug, so will have a play around with it and see if it shows anything up.

Also, I set all files and folder permissions to 777 as this was what I was advised to do by Scriptcase support (although there does seem to be a language barrier). It appears to make no difference to the problem whether the files are set to 777 or are left at their default permissions.

If all else fails I’ll give my hosting company a call and see if they can shed any light on the problem.

Thanks once again,

Mike

P.S. If Anyone else has any other suggestions their input would be appreciated.

Re: PDF Export Not Working - SOLVED

Hi,

After much head scratching we finally figured out what was going on…

Firstly, the 403 error seems to have been caused by our hosting company (www.names.co.uk) putting a restriction on folders called tmp. We noticed that if you create any folder called tmp, and then give it 777 permissions, you could not browse the folder at all in a web browser. I guess that this is done for security reasons. Anyway, the solution was to use the “Advanced” deployment option in SC and specify a custom temp folder. This works fine.

Secondly, the pdf export now gets further (no more 403) but results in a zero byte pdf file. I’m pretty sure that this is because our hosting company does not use JRE on their shared hosting. I’m fine with this and will simply remove the pdf button from our grid applications. I guess that if any users want a pdf version they can just use the standard print option and specify a pdf printer driver such as CutePdf etc…

Regards,

Mike
Total Systems Management Limited