Comments (4)
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
- See whether
upload-tmp-dir
is set inphp.ini
and - if set - whether it's writeable by the user your app is running as - 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 - 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.
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.
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.
No problem, glad you got it sorted, @nzurita!
from whiteoctobertcpdfbundle.
Related Issues (20)
- How do i insert an image? HOT 2
- Configuration ignored HOT 2
- custom config parameters not loaded HOT 3
- Fatal error!! HOT 1
- Problem with the bundle HOT 3
- Directory-Path without trailing slash in Cache HOT 3
- Constants from tcpdf_autoconfig cannot be override in boot() HOT 1
- Create table with editable cells HOT 1
- Package tecnick.com/tcpdf is abandoned / new version needed HOT 2
- phpStorm custom class auto completion HOT 2
- Compile Error: Cannot redeclare class TCPDF HOT 1
- How can i use a custom class that extends TCPDF HOT 6
- Error tempnam when insertint image inside twig HOT 3
- could you update it for 4.1 version? HOT 5
- Add version constraint for tecnickcom/tcpdf HOT 4
- services.yaml HOT 1
- Looking for maintainers HOT 6
- Symfony env variable HOT 2
- I cant use the Fork HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from whiteoctobertcpdfbundle.