• Resolved jmnewrise

    (@jmnewrise)


    Hi Corey, the option to automatically save the JSON in a theme-folder would be amazing. That works like a charm with ACF and version-controlling the GF forms with this option would be great.

    When using the filter hook to change the default location to the theme instead of the uploads folder, it successfully updates the location in the settings:

    File Location
    JSON Form Exports Path 
    https://{theme-folder}/gf-json

    But when saving the form it throws this warning:
    Warning: file_put_contents(https://{theme-folder}/gf-json\15.json): failed to open stream: HTTP wrapper does not support writeable connections in C:\{local-WP-folder}\wp-content\plugins\power-boost-for-gravity-forms\includes\local-json.php on line 109

    It’s a local server on my device, set up using Laragon on Windows.

    Any ideas on how to solve this?

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author Corey Salzano

    (@salzano)

    Thanks for trying my plugin.

    It’s a path, not a URL. The error message is saying, “you can’t use file_put_contents to write to a URL.”

    In my local site, the default path is /Users/Corey/Sites/test-site/wp-content/uploads/gf-json

    Are you using the gravityforms_local_json_save_path hook to provide a URL? That won’t work. Figure out what the path to your theme folder is, and use that rather than a URL.

Viewing 1 replies (of 1 total)
  • The topic ‘Failed to open stream: HTTP wrapper does not support writeable connections’ is closed to new replies.