468 posts
  • Envato Staff
  • Envato Developer
  • Australia
  • Bought between 1 and 9 items
  • Has been a member for 2-3 years
  • Exclusive Author
justinfrench Dev says

Honestly I dont think Envato cares, look how many request theme authors get with “stylesheet missing” threads, comments and emails to the authors they number in the hundreds a week, yet all it would take is adding a simple notice above the download area/confirmation email/user profile or a notice after purchase

Of course we care, there’s just a lot of things to care about. It doesn’t just cause frustration for authors and buyers, it causes frustration for Envato dealing with support tickets on the same topic.

I’ve been wanting to tackle this for a while, but have been told that the way things are structured makes it difficult. Seeing this thread has nudged me to try a different angle. I’ve had a chat with Pete, and we might have a solution which would allow us to have a second download link with only the installable zip.

Looking into it, but no promises on timing just yet :)

3422 posts
  • Elite Author
  • Sold between 250 000 and 1 000 000 dollars
  • Community Moderator
  • Bought between 100 and 499 items
  • Referred more than 2000 users
  • Has been a member for 4-5 years
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
+4 more
sevenspark Volunteer moderator says


Can we please make this option of automatically including the license folder optional? I’m perfectly happy to manually include the license file. This automatic inclusion is going to create a huge amount of unnecessary trouble for both authors and customers.

We could make it optional, but I’d rather automate it in a way that matches how and where you would place it manually, since we’ve clearly missed something. Can you go into a bit more detail about how the current automated placement fails, and where you’d prefer the files to be automatically placed instead?

I assume this is specific to WordPress plugins (rather than themes), but please let me know if this is not the case.

Thanks for looking into this, Justin!

Let me preface this by saying that I have not actually experienced this yet with my own plugins – I’m basing this off of of QuanticaLabs’ initial report, as well as cmoreira’s report (so they may have better insight – I’ve personally avoided updating till the issue is resolved to avoid any problems). Here’s how things have worked in the past:

1. Plugin author submits plugin.zip, which is simply a zipped version of the plugin folder. The contents probably look like this:

/plugin
-- /plugin.php
-- /includes
-- /documentation

(alternatively, an uninstallable package that would require to the customer to unzip the download package and install an plugin zip contained inside would have this structure:

/plugin-package
-- /plugin.zip (contains the structure of first example, minus /documentation)
-- /documentation

The difference is that the first .zip is a plugin archive that is installable directly to WordPress; the second is a package that needs to be manually extracted by the customer to install the plugin archive contained inside it.

2. CodeCanyon renames the zip file to codecanyon-111111-plugin-name.zip

3. Customer downloads plugin. They can (a) unzip to the original plugin folder name and upload that folder to wp-content/plugins, or (b) install this entire archived .zip package directly, because the zip contains plugin.php in the top level of the archive (this is the heart of the matter, and what the new directory is breaking)

Now, the /license directory is also added. Again, I haven’t seen the exact structure myself, but I suspect the resulting archive structure is either:

Scenario A

/plugin
-- /plugin.php
-- /includes
-- /documentation
/license (same level as /plugin, rather than a subdirectory)

which I think becomes uninstallable via the WordPress admin panel because the zip can only have one archived top level directory (that’s conjecture on my part, but I assume that’d be an issue as WordPress isn’t expecting two directories in a plugin zip). I suspect this is what would occur if the command to “add /license to plugin.zip archive” were run

or

Scenario B

/plugin.zip (within the codecanyon-1111-plugin-name.zip archive)
/license

In this case the download package is not installable because the actual plugin zip is nested. I suspect this structure would be the result of running the command to create a new archive containing the contents plugin.zip and /license.

My apologies if these assumptions are inaccurate, but I don’t have any way of testing this without submitting an update.

The structure that we would need to have in order to allow the download package to be installable as a plugin AND add the licensing automatically would be

/plugin
-- /plugin.php
-- /includes
-- /documentation
-- /license (as a subdirectory of /plugin)

Essentially, we need the /license directory added as a subdirectory of the top level directory in the archive (in this case /plugin), rather than as a top level directory itself. (I hope that explanation makes sense, as I may not be using 100% accurate terminology here).

Not knowing exactly what the process is on the back end to add the license folder, I won’t speculate on the best way to accomplish that.

I hope that’s helpful! And again, my apologies if any of this is off-base.

Thanks again for looking into it! :)

Best,

Chris

5391 posts
  • Australia
  • Bought between 100 and 499 items
  • Envato Studio (Microlancer) Beta Tester
  • Exclusive Author
  • Has been a member for 4-5 years
  • Interviewed on the Envato Notes blog
  • Referred between 1 and 9 users
  • Sold between 1 000 and 5 000 dollars
Australia says

^5 for a briliant explanation. Even I understood that

3422 posts
  • Elite Author
  • Sold between 250 000 and 1 000 000 dollars
  • Community Moderator
  • Bought between 100 and 499 items
  • Referred more than 2000 users
  • Has been a member for 4-5 years
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
+4 more
sevenspark Volunteer moderator says

^5 for a briliant explanation. Even I understood that

I’m relieved to hear it came through clearly! :)

325 posts Keeping Things Simple
  • Elite Author
  • Exclusive Author
  • Referred between 500 and 999 users
  • Has been a member for 2-3 years
  • Bought between 1 and 9 items
  • Portugal
  • Envato Studio (Microlancer) Beta Tester
+2 more
cmoreira says

@sevenspark good overview! What’s happening is Scenario A. A directory is being added inside the zip we upload. I was using the first file structure you described, so this makes the main zip incompatible with WP install, as you described.

Now I’ve been using the Second file structure you described, to make it a bit easier for users, now that the license folder is added.

This user might be having problems because of this. (speculating, I don’t know the reason of course).

Anyway, the file should be processed something like:

if (main.zip includes only 1 folder) { include license folder inside that existing folder; } else { include license folder inside zip (top directory); }

Something like this, correct?

3192 posts
  • Sold between 5 000 and 10 000 dollars
  • United States
  • Bought between 10 and 49 items
  • Has been a member for 4-5 years
  • Exclusive Author
organicbee says


I actually just shot an email to Justin as well(with screenshots)
I never got this :/

I resent it ;-)

468 posts
  • Envato Staff
  • Envato Developer
  • Australia
  • Bought between 1 and 9 items
  • Has been a member for 2-3 years
  • Exclusive Author
justinfrench Dev says

Thanks everyone, here’s what we do on our side:

We unzip the mainfile you upload, add in a new top-level directory “licensing”, add the files into that directory, zip everything back up. There must be something odd about how some zipping programs work (or how we’re unzipping server-side) because what we’re doing seems to make sense to me on my Mac.

We’ll have a fix out for this ASAP.

101 posts quanticalabs.com
  • Power Elite Author
  • Power Elite Author: Sold between 1 000 000 - 1 999 999 dollars
  • Author had a File in an Envato Bundle
  • Author had a Free File of the Month
  • Bought between 50 and 99 items
  • Referred between 500 and 999 users
  • Exclusive Author
+2 more
QuanticaLabs says

@sevenspark has described the issue very well. The same is for themes as well, not only for plugins. In fact I’ve noticed that after updating one of my themes. I’ve just replied to your email @KingDog. Fell free to contact me again, I’ll be glad to help on this.

4 posts
  • Bought between 10 and 49 items
  • Has been a member for 2-3 years
dpeca83 says

And what is the conclusion at the end?

How we can avoid adding licensing/ folder as top level folder?

Is there any way to force adding it as subfolder in plugin/ folder?

We have a lot of support tickets about installing issue since last update :(

3422 posts
  • Elite Author
  • Sold between 250 000 and 1 000 000 dollars
  • Community Moderator
  • Bought between 100 and 499 items
  • Referred more than 2000 users
  • Has been a member for 4-5 years
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
+4 more
sevenspark Volunteer moderator says

Hey guys, any update here?

I’m in kind of a tight place because I need to release an update, but I don’t want to cause issues for my customers (with over 15,000 using this plugin, even if only 10% are upgrading then that creates a lot of headaches). Do we have an ETA on when this will be resolved? Or can it be temporarily disabled until it is resolved? Or can I request that the license in my file is moved manually by the reviewer when I upload?

Thanks guys! :)

Chris

by
by
by
by
by
by