help, impossible to create pdf

help, impossible to create pdf in web server, the error throws to view or download:

Not Found

The requested URL / was not found fichaweb/_lib/tmp/sc_pdf_20140512155138_800_informe_04_Cuadra_caja.pdf on this server.

Additionally, a 404 Not Found Error was Encountered while trying to use an ErrorDocument to handle the request.

At the moment I am receiving the same error when try to create pdf files. While ago this happened and I have fixed it by changing the file permission of wkhtmlpdf.exe in _lib/prod/third/wkhtmltopdf/linux-amd64 and _lib/prod/third/wkhtmltopdf/linux-i386

But now it doesn’t help either. Hope someone can help us.
Aari

Any update on this issue???

Try to set the write permission of _lib/tmp/ to 777 as a test.

that folder is already set to 777 but no luck.

I am having this problem as well. Generating a pdf from a PDF Report Application works fine, but when exporting from a grid, I get the file not found error. In investigating, I found that the tmp directory on the server contains the .css and .html and .log files for the pdf, but no .pdf file. I open the log file, and I can execute the command found there (although the input file is shown in the log file as a url, and on the command line I am changing that to the absolute path of the .html file in the tmp directory) and the pdf builds fine. It would seem that whatever generates the log file should be using the system path instead of the root url in the wkhtmltopdf command line.

I believe I have found the issue, at least with my particular problem.

When sc generates the source for a grid, it generates a file called <appname>.php. If you do a search through that file for “$arq_pdf_in” you will find a line that looks like this:

       $arq_pdf_in   = (FALSE !== strpos($nm_url_de_saida, ' '))     ? " \"" . $nm_url_de_saida . "\""     :  $nm_url_de_saida;

Now, I believe that the wrong variable is being used. $nm_url_de_saida contains the URL to the HTML file to be used as input to wkhtmltopdf. On my server this generates an error. If I change all 3 instances of “$nm_url_de_saida” to “$nm_arquivo_de_saida”, which represents the absolute server path to the same HTML file, then everything works fine.

The only problem is of course when I generate source again, the bug is reintroduced.

Can anyone tell me where the template is stored that is used by sc to generate the grid source file? It would be excellent to change it there rather than waiting for a sc update.

Some new solutions working this problem or
where is the variable that is not in tmp :mad:

[QUOTE=daveprue;24208]

When sc generates the source for a grid, it generates a file called <appname>.php. [/QUOTE]
Can you provide the path to this file? Can’t find it.