- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-04-2017
03:08 AM
02-04-2017
03:08 AM
"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.*" }
Labels:
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-04-2017
07:17 AM
02-04-2017
07:17 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-04-2017
08:50 AM
02-04-2017
08:50 AM
Re: "Php require section in composer is empty" - can't upload the package
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"