While uploading to magento connect, we often receive an error “Invalid Pakage Name- the Package name without ext should be ……..”. We have to take care of few things while packaging and uploading extension to magento connect. Following is the solution.
1). Create a package of your Extension:
As you see from the above figure, “Create Package Extension” is a five step process. The “Package Info” is the important part. Please see the below picture:
Decide your package name carefully because it should be the same name as “Extension Key” field which we are going to discuss later in our post. I have set it to “Discretelogix_Reviews”. Then we have a Channel and it should only contain “community” as MagentoConnect is only supporting this channel only. Be careful with the letter case, community and Community are considered two different words.
If you want your extension to support both Connect 1.0 and 2.0 then select “Pre-184.108.40.206” from the Support releases list box. While uploading to MagentoConnect it will automatically create the package for 1.0 and 2.0. But if you want your extension to be released only for Connect 2.0, then select 220.127.116.11 & later.
2). Uploading your extension to MagentoConnect:
Fill up all fields according to your extension specs. But make sure that your “Extension Key” should contain the name like your Package name i.e “Discretelogix_Reviews” otherwise you will get an error of “Invalid Package Name” while uploading . See the following image:
After filling all mandatory fields. Go to next step and upload your package. It will create packages for Connect 1.0 and Connect 2.0 if you have selected Pre & 18.104.22.168 option while packaging your extension.