Tagged: 

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #413842

    I just found that function-set-avia-backend.php has hard-coded to chmod directories.

    @chmod( $folder, 0777 );

    Thats not a good idea and bad for a lot of users and hosts.

    For my case 755 is fine and there should be an option or something for this, not making everyones directories 777 like that.

    Why is that needed ?

    Thanks.

    #414708

    Hey peterolle!

    It is needed to create a folder for the theme framework.

    Best regards,
    Yigit

    #414766

    Can you please elaborate on that ?

    Thank you.

    #415200

    Hi!

    That’s part of the avia_backend_create_folder function which is currently used in two cases:
    – To create the dynamic_avia folder which contains the dynamically generated stylesheet (a compressed file containing the Styling Options, Quick CSS, etc).
    – Create a temporary folder needed when uploading a custom .zip font file (https://vimeo.com/75743285).

    Cheers!
    Josue

    #437308

    How can I override that to use 755 ?

    Thanks.

    #437448

    Hey!

    You can edit the file and change it to

    @chmod( $folder, 0755 );

    Cheers!
    Yigit

    #437451

    Yeah and I will have to remember and do that in every single update. Thats what I don’t want to do.

    Is there a function, option or something I can apply and forget about it ?

    Thanks.

    #437696

    Hi!

    avia_backend_create_folder Is a pluggable function, you can just modify and copy it into your child theme functions.php.

    Regards,
    Josue

    #1001562

    Please share the code I have to add to functions.php.

    Thank you.

    #1001593

    Hi peterolle,

    You can copy the whole function to your child theme functions.php
    Image 2018-08-25 at 12.41.28.png
    and edit it there.

    It is found here now
    /enfold/framework/php/function-set-avia-backend.php

    Best regards,
    Victoria

Viewing 10 posts - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.