Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

File(/.ufm) is not within the allowed path(s) #1032

Open
alin09ro opened this issue Feb 6, 2024 · 8 comments
Open

File(/.ufm) is not within the allowed path(s) #1032

alin09ro opened this issue Feb 6, 2024 · 8 comments

Comments

@alin09ro
Copy link

alin09ro commented Feb 6, 2024

Error loading PDF: file_exists(): open_basedir restriction in effect. File(/.ufm) is not within the allowed path(s): (/home/arcareso:/opt/cpanel/ea-php82:/var/cpanel/php/sessions/ea-php82:/tmp:/home/arcareso/secure.arcaromania.ro/storage)

I have tried everything: setting full permisions, changing the paths in the config, nothing works!
the paths are in open_basedir. What else should I check?

can someone help?

@parallels999
Copy link

/home/arcareso:/opt/cpanel/ea-php82:/var/cpane
It seems to me that it should be separated by ;, it also restarts the service

@alin09ro
Copy link
Author

alin09ro commented Feb 9, 2024

these are the locations from open_basedir. i have websites on 3 different servers and all the open_basedir locations are enumerated the same ( without ;)

"Under Windows, separate the directories with a semicolon. On all other systems, separate the directories with a colon." (from the php docs)

@jose123v
Copy link

jose123v commented Feb 9, 2024

Did you try adding /.ufm to open_basedir config?

@alin09ro
Copy link
Author

tried that, no success. but i found that if i add ->setOptions(['defaultFont' => 'sans-serif']); to the pdf generator line it works, so i think it's a issue related to fonts or fonts location (i tried to modify the default font in the config but nothing changes)

@russellobrio
Copy link

Encountering the same issue, I also am using custom font and there are files generated in fonts cache but this still shows this error

@jose123v
Copy link

Feel free to open a PR fixing it

@NacerKH
Copy link

NacerKH commented Mar 13, 2024

I make a PR to fix this issue on dompdf

dompdf/dompdf#3415

This issue must be solved when the PR will be accepted.

@chrisschale
Copy link

I have the same issue and this thread saved my day .. i hope they will accept the PR soon. @alin09ro how do you use ->setOptions(['defaultFont' => 'sans-serif'])? Can you give a full example?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants