Title: Correction for write permissions solution
Last modified: January 31, 2023

---

# Correction for write permissions solution

 *  Resolved [kokimo1](https://wordpress.org/support/users/kokimo1/)
 * (@kokimo1)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/correction-for-write-permissions-solution/)
 * Hi, this is in regard to this ticket: [https://wordpress.org/support/topic/gravity-pdf-not-working-on-wordpress-vip/](https://wordpress.org/support/topic/gravity-pdf-not-working-on-wordpress-vip/).
 * The person you were helping, Satya, was still getting errors after applying your
   code fix because there were curly quotation marks in the code example rather 
   than straight quotes. For example:
 * `return get_stylesheet_directory(). ‘/gravity-pdf/’;`
 * I ran into the same issue as Satya (still got the errors after putting your code
   in functions.php), scratched my head for a minute, then decided to replace all
   instances of `‘` and `’` with `'` and it worked! It eliminated the errors in 
   the dashboard and I didn’t have to create the folders manually.
 * So yeah, your fix 100% works! It was just the dreaded curly quote thing. Thanks
   for posting that fix, by the way, cuz it totally saved my ass.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fcorrection-for-write-permissions-solution%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Plugin Author [Jake Jackson](https://wordpress.org/support/users/blue-liquid-designs/)
 * (@blue-liquid-designs)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/correction-for-write-permissions-solution/#post-16427480)
 * Thanks for opening a new topic to provide feedback about using Gravity PDF with
   WP VIP. Since the other topic is locked, I’m going to repost the full solution
   with the correct quotations:
 *     ```wp-block-code
       /* Move PDF Working Directory */
       add_filter( 'gfpdf_template_location', function( $directory, $working_folder, $upload_path ) {
       /* Make sure you include the forward slash! */
           return get_stylesheet_directory(). '/gravity-pdf/';
       }, 10, 3 );
   
       /*
       * You must use the gfpdf_template_location filter in conjunction with the gfpdf_template_location_uri filter
       * Both filters should point to the same directory (one is the path and one is the URL)
       */
       add_filter( 'gfpdf_template_location_uri', function( $url, $working_folder, $upload_url ) {
       /* Make sure you include the forward slash! */
           return get_stylesheet_directory_uri() . '/gravity-pdf/';
       }, 10, 3 );
   
       /* Move the tmp directory */
       add_filter( 'gfpdf_tmp_location', function( $location ) {
           return get_temp_dir() . 'gravity-pdf/';
       } );
       ```
   

Viewing 1 replies (of 1 total)

The topic ‘Correction for write permissions solution’ is closed to new replies.

 * ![](https://ps.w.org/gravity-forms-pdf-extended/assets/icon-256x256.png?rev=3168987)
 * [Gravity PDF](https://wordpress.org/plugins/gravity-forms-pdf-extended/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/gravity-forms-pdf-extended/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/gravity-forms-pdf-extended/)
 * [Active Topics](https://wordpress.org/support/plugin/gravity-forms-pdf-extended/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/gravity-forms-pdf-extended/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/gravity-forms-pdf-extended/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Jake Jackson](https://wordpress.org/support/users/blue-liquid-designs/)
 * Last activity: [3 years, 4 months ago](https://wordpress.org/support/topic/correction-for-write-permissions-solution/#post-16427480)
 * Status: resolved