Reply To: Getting 'Could not create directory' error

Home Forums Support Getting 'Could not create directory' error Reply To: Getting 'Could not create directory' error

Home Forums Support Getting 'Could not create directory' error Reply To: Getting 'Could not create directory' error

#99250
Christopher

Found the problem. Not sure of the solution.

When upgrading, you’re using a very long QUERY_STRING as part of the download request…

Downloading update from http://generatepress.com/?edd_action=package_download&license=c126b66….&id=254..&key=93d521…&expires=MTQ…..

When unpacking the update, it is using the entire QUERY_STRING (all 134 characters) as a directory name.

No problem until you get to generate-page-header where the longest directory sequence creates a path that is longer than the maximum allow under Windows (7 & Server 2008). The culprit is

C:/CW-Web/WpTest/website/html/wp-content/upgrade/edd_actionpackage_downloadlicensec126b668xxxxxxxxxxxxxxxxxxxxxxxxid25441key9xxxxxxxxxxxxxxxxxxxxxxx8b09679aexpiresMTQyxxxxxxxxOA%3D%3D/gp-premium/addons/generate-page-header/inc/cmb2/css/sass/partials

(some characters replaced with x’s). C:/CW-Web/WpTest/website/html/ is the root directory for the WordPress site. Windows appears to have the maximum directory path length of 247 bytes, and this one is 249 characters long.

Any chance of making the QUERY_STRING smaller(!) or providing an alternate way of getting GP Premium updates. Really like GeneratePress, but need to be able to update GP Premium as needed.