cancel
Showing results for 
Search instead for 
Did you mean: 

"Php require section in composer is empty" - can't upload the package

   Did you know you can see the translated content as per your choice?

Translation is in progress. Please check again after few minutes.

"Php require section in composer is empty" - can't upload the package

Hi

 

I'm trying to upload a new extension package to the Marketplace, but this time it shows me the error "Php require section in composer is empty."

I have tried different variations of composer.json file: initially it was without php requirement, also tried with this, but no luck:

 

"require": {
    "magento/module-catalog": "~101.0.*",
    "php": "~7.0.*"
  }
2 REPLIES 2

Re: "Php require section in composer is empty" - can't upload the package

Hi @Snowcore,



Could you please try the composer file in the following format?

 

"require": {
  "php": "^7.0",
  "magento/module-catalog": "~101.0.*",
}


Best regards.

Gabriel

 

Welcome to the Magento Forums. Remember to introduce yourself and read the Magento Forums Guidelines.

Re: "Php require section in composer is empty" - can't upload the package

Hi @Gabriel Guarino

 

It seems like there is a typo in your example, please remove comma from the last requirement.

"magento/module-catalog": "~101.0.*"

 I recommend to follow Magento's composer file and include full list of supported PHP versions to avoid any future conflicts.

"php": "~5.6.5|7.0.2|7.0.4|~7.0.6"