godaddy-wordpress / godaddy-wordpress/wc-plugin-framework

Long filenames can cause fatal errors in some Windows environments

Open
#294 7 comments 0 reactions 0 assignees View on GitHub
Payment Gateway Question
Dominant language
PHP
Stars
146
Forks
43
Avg merge
21m
Merged PRs (30d)
3

Description

Depending on the length of a site's root path, the framework's long filenames could result in fatal errors on Windows servers due to the [maximum path length limitation](https://msdn.microsoft.com/en-us/library/windows/desktop/aa365247(v=vs.85).aspx#MAXPATH).

I believe the longest file path in the framework is `woocommerce/payment-gateway/api/interface-sv-wc-payment-gateway-api-payment-notification-tokenization-response.php` which is why this is tagged with `payment-gateway`.

Other than renaming our files, is there any other way we can address this? Is there some way to increase that limitation at a server-level so we can add something to our documentation and support saved replies?

I recall I had a customer back in the day who downloaded the plugin and edited the file names with each update. This is definitely something I'd like to avoid recommending.

* **Related to:** [HS convo 77736](https://secure.helpscout.net/conversation/585756171/77736)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.