Giter VIP home page Giter VIP logo

Comments (4)

sampart avatar sampart commented on August 15, 2024

Hi @nzurita, sorry you're having issues.

I guess this is a TCPDF question rather than a WhiteOctoberTCPDFBundle question, but the original TCPDF project (which this bundle uses) is no longer supported and so you can't raise an issue there. So I'll see if I can help.

TCPDF puts its cached images into the folder defined by the constant K_PATH_CACHE (see getObjFilename merthod, called from the Image function).

That constant gets its value from php.ini's upload-tmp-dir value if set, or sys_get_temp_dir() if that value isn't set.

Therefore, I'd recommend that you do these in order

  1. See whether upload-tmp-dir is set in php.ini and - if set - whether it's writeable by the user your app is running as
  2. Look at the output of sys_get_temp_dir() on your system and see whether that's writeable by the user your app is running as
  3. If you can't change the permissions on the directories identified in the previous steps, try setting the K_PATH_CACHE value to refer to a directory the relevant user can write to.

Hope this helps. Sorry for the belated response.

from whiteoctobertcpdfbundle.

sampart avatar sampart commented on August 15, 2024

Hi again. I missed something here, sorry. Turns out this issue does relate to the bundle itself rather than just TCPDF.

I hadn't realised (I'm not the original developer) that the WhiteOctoberTCPDFBundle overrides the default value of k_path_cache. It sets it to: '%kernel.cache_dir%/tcpdf' (see here).

This makes me wonder if you need to look at the permission settings of your Symfony cache folder. This documentation page might help: http://symfony.com/doc/3.4/setup/file_permissions.html

Let us know how you get on!

from whiteoctobertcpdfbundle.

nzurita avatar nzurita commented on August 15, 2024

Hello, sorry for the late response, I solved it some time ago but I think I solved it as you propose, located the cache dir and give proper permissions.

Thank you

from whiteoctobertcpdfbundle.

sampart avatar sampart commented on August 15, 2024

No problem, glad you got it sorted, @nzurita!

from whiteoctobertcpdfbundle.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.