Dolphiq / craft3-iconpicker

Craft plugin that provides a new field type that offers end users an easy way to pick an icon from a .woff or .ttf font file. You can easily use ionicons or font awesome icons or any other compatible font file.
MIT License
16 stars 11 forks source link

PHP Warning with resources-shared/css/fonts.css failed to open stream: Permission denied #17

Open mateostabio opened 5 years ago

mateostabio commented 5 years ago

I used the icon field on a page and everything works well, but as soon as I push everything to the AWS live server I get issues where the icons dont display on the front end page, and if I try to go the page in the admin backend, I get this error.

PHP Warning – yii\base\ErrorException file_put_contents(/opt/bitnami/apps/craft/www/vendor/dolphiq/iconpicker/src/resources-shared/css/fonts.css): failed to open stream: Permission denied

I'm guessing its server permissions, but I cannot change the permissions. Is there any fix for this?! I want to use this plugin, but don't think I'll be able because of this. Also, it would be cool if I could store the font files in my /web/assets/fonts/ folder rather than the vendor folder.

Thanks

medoingthings commented 2 years ago

This (imho) has to do with step 4 in https://github.com/Dolphiq/craft3-iconpicker#installation. The generated file is not there after deployment, I guess. So you need to make sure it is.