mittwald / typo3-web2pdf

A TYPO3 extension for rendering content as PDF
GNU General Public License v2.0
18 stars 20 forks source link

Just activation web2pdf gives me an error on all pages #18

Closed derpepe closed 9 years ago

derpepe commented 9 years ago

I just enabled web2pdf in my TYPO3 6.2.14. All pages now show the same error: https://gist.github.com/derpepe/30c136e6d4a2c1860f33

What am I missing?

Thank you, Peter

martin-helmich commented 9 years ago

Just a quick thought; did you include the static TypoScript template into your site?

kpurrmann commented 9 years ago

This bug is similar to #16. Added a quick HOTFIX #17. Should be merged soon. But caching seems to be the problem. I will have a look at it.

@derpepe clear all cache should work now too.

derpepe commented 9 years ago

Just clearing all caches with the install-tool does not work. I'll try https://github.com/mittwald/typo3-web2pdf/pull/17 and tell you if it works for me.

Thank you for your support.

derpepe commented 9 years ago

Well...

Clearing caches did not change anything.

I then applied https://github.com/mittwald/typo3-web2pdf/pull/17, still no change. Cleared the caches again. No change at all.

I then tried to add the static template to the site, and it worked immediately. So @martin-helmich was right.

I still think this is a bug, just installing the extension should not break the site. What about other websites in other subtrees which do not want to use web2pdf?!

derpepe commented 9 years ago

I forgot to mention that I reversed the changes from the hotfix.

martin-helmich commented 9 years ago

I see several options here:

I actually don't have any preference on this. @pstranghoener, any thoughts?

pstranghoener commented 9 years ago

We should should make a gracefully skip when the static ts template is missing. This is the normale way when installing extension. We could add that to the manual. Could you do it like that @kpurrmann ?

kpurrmann commented 9 years ago

@pstranghoener will do that tomorrow.

martin-helmich commented 9 years ago

Fixed in #19.