Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Something wrong when calling file_prepare_directory without FILE_CREATE_DIRECTORY. The zip file cannot extract.
Here is some information from log:
File temporary://fileEaTjmk could not be copied, because the destination directory public://fontyourface/fontsquirrel/Action-Man-fontfacekit/web fonts/actionmanextended_bolditalic_macroman/specimen_files is not configured correctly.
It happen on fontsquirrel only.
Comment | File | Size | Author |
---|---|---|---|
#1 | create_directory_in_zip-2048175.patch | 1.29 KB | Shellingfox |
Comments
Comment #1
Shellingfox CreditAttribution: Shellingfox commentedI'm not sure it happen on any version. Maybe last time my PHP upgrade and zlip updated too (Zip version 1.11.0 and Libzip version 0.10.1)
But the problem is the zip font have folder inside, the module doesnot create folder and it willnot extract the zip file.
Here is my patch to fix it.
Comment #2
teknocat CreditAttribution: teknocat commentedI was running into the same thing and created a very similar patch. This really needs to be incorporated into the next version.
Comment #3
PhobosK CreditAttribution: PhobosK commentedI can confirm this patch is working, so lets hope really the problem will be fixed soon.
Comment #4
PhobosK CreditAttribution: PhobosK commentedI've added @Shellingfox' fix to my patch work for fixing the problems in Font Squirrel module caused by the new API.
See my comment and the full patch here: #2109241-9: Cant Preview Fonts (Font Squirrel) or load fonts - Font Squirrel API changes
So now you can use Font Squirrel properly
Comment #5
stefan.kornPatch worked for me too. So I think this patch should now be RTBC?
Comment #6
mrP CreditAttribution: mrP commented+1 RTBC
@Shellingfox - Thanks for the patch!
Comment #7
mrP CreditAttribution: mrP commentedFYI, this may have been just my set up since no one else mentioned it. I noticed that the font extracted properly but that the path created in the
fontyourface.metadata
of the database was invalid. This causes the font to not load when utilized:a:3:{s:2:"id";s:3:"520";s:4:"path";s:8:"Windsong";s:13:"font_filename";s:12:"Windsong.ttf";}
Versus a properly installed (and working) local font:
a:2:{s:4:"path";s:75:"public://fontyourface/local_fonts/FIFA_Welcome-normal-normal/stylesheet.css";s:8:"font_uri";a:1:{s:8:"truetype";s:79:"public://fontyourface/local_fonts/FIFA_Welcome-normal-normal/fifawelcome1.3.ttf";}}
Comment #8
paultrotter50 CreditAttribution: paultrotter50 commentedPatch worked for me too
Comment #9
Neslee Canil Pinto