Packaging-Extensions: Invalid value for name property

Discussion forum for Extension Writers regarding Extension Development.
Post Reply
User avatar
orynider
Registered User
Posts: 247
Joined: Wed Nov 16, 2005 12:48 pm
Location: Arad, România
Name: Florin Bodin
Contact:

Packaging-Extensions: Invalid value for name property

Post by orynider » Wed Apr 10, 2019 4:24 pm

I did try with simple or more complex composer.json file and none is accepted.

The error at submission is:

Invalid value for name property in composer.json. Please refer to the Extension Validation Policy for the valid format.

What I do wrong or what I have to do before I submit an extension ?

https://www.phpbb.com/extensions/rules- ... extensions

Extensions are packaged as follows: #

/vendorname/extensionname/

The names should be alphanumeric. (No dashes or underscores. Capitals are allowed.) For example, the following common extension files, composer.json, ext.php and license.txt would be located at:

/vendorname/extensionname/composer.json
/vendorname/extensionname/ext.php
/vendorname/extensionname/license.txt

Code: Select all

{
	"name": "orynider/custom_headernfo",
	"type": "phpbb-extension",
	"description": "This extension allows you to insert custom text in the header bar. Fully configurable from ACP.",
	"homepage": "https://github.com/orynider/custom_headernfo",
	"version": "1.0.0",
	"license": "GPL-2.0",
	"authors": [
		{
			"name": "FlorinCB",
			"email": "orynider@users.sourceforge.net",
			"homepage": "http://mxpcms.sourceforge.net",
			"role": "Extension Developer"
		}
	],
	"require": {
		"php": ">=5.3.3",
		"composer/installers": "~1.0"
	},
	"extra": {
		"display-name": "Custom Header Info",
		"soft-require": {
			"phpbb/phpbb": ">=3.1.0"
		}
	}
} 

User avatar
HiFiKabin
Community Team Member
Community Team Member
Posts: 3980
Joined: Wed May 14, 2014 9:10 am
Location: Swearing at the PC, UK
Name: James
Contact:

Re: Packaging-Extensions: Invalid value for name property

Post by HiFiKabin » Wed Apr 10, 2019 4:29 pm

The names should be alphanumeric. (No dashes or underscores.
custom_headernfo
remove the underscore in every instance it can be found and all should be well

User avatar
orynider
Registered User
Posts: 247
Joined: Wed Nov 16, 2005 12:48 pm
Location: Arad, România
Name: Florin Bodin
Contact:

Re: Packaging-Extensions: Invalid value for name property

Post by orynider » Wed Apr 10, 2019 4:33 pm

You mean that I should remove the separator underline "_".
10x

User avatar
david63
Registered User
Posts: 16093
Joined: Thu Dec 19, 2002 8:08 am
Location: Lancashire, UK
Name: David Wood
Contact:

Re: Packaging-Extensions: Invalid value for name property

Post by david63 » Wed Apr 10, 2019 4:44 pm

orynider wrote:
Wed Apr 10, 2019 4:33 pm
You mean that I should remove the separator underline "_".
10x
Yes - everywhere you have used it. See https://area51.phpbb.com/docs/dev/3.2.x ... asics.html
David
Remember: You only know what you know and - you don't know what you don't know!
My CDB Contributions | How to install an extension
I will not be accepting translations for any of my extensions in Github - please post any translations in the appropriate topic.
No support requests via PM or email as they will be ignored

User avatar
kinerity
Community Team Member
Community Team Member
Posts: 2228
Joined: Mon Sep 01, 2014 1:00 am
Location: sudo rm -rf /
Name: Kailey Truscott
Contact:

Re: Packaging-Extensions: Invalid value for name property

Post by kinerity » Wed Apr 10, 2019 4:45 pm

Yes, you're going to have to remove the underscore. As James said, see Packaging extensions.

Edit: David was quicker. :lol:
Kailey Truscott - Community Team

User avatar
orynider
Registered User
Posts: 247
Joined: Wed Nov 16, 2005 12:48 pm
Location: Arad, România
Name: Florin Bodin
Contact:

Re: Packaging-Extensions: Invalid value for name property

Post by orynider » Wed Apr 10, 2019 7:24 pm

There is also another user marttiphpbb that is using "-" dashes if I see correct.

User avatar
david63
Registered User
Posts: 16093
Joined: Thu Dec 19, 2002 8:08 am
Location: Lancashire, UK
Name: David Wood
Contact:

Re: Packaging-Extensions: Invalid value for name property

Post by david63 » Wed Apr 10, 2019 8:26 pm

orynider wrote:
Wed Apr 10, 2019 7:24 pm
There is also another user marttiphpbb that is using "-" dashes if I see correct.
And has that extension been validated?
David
Remember: You only know what you know and - you don't know what you don't know!
My CDB Contributions | How to install an extension
I will not be accepting translations for any of my extensions in Github - please post any translations in the appropriate topic.
No support requests via PM or email as they will be ignored


User avatar
AbaddonOrmuz
Registered User
Posts: 601
Joined: Wed Dec 25, 2013 9:06 pm
Location: /dev/null
Name: Alfredo Ramos
Contact:

Re: Packaging-Extensions: Invalid value for name property

Post by AbaddonOrmuz » Wed Apr 10, 2019 11:17 pm

orynider wrote:
Wed Apr 10, 2019 11:04 pm
He is in BETA-TEST:
Then it's likely they're going to be rejected, for the same reason.
A proudly user of Arch Linux :: /r/sddm_themes

User avatar
tbackoff
Former Team Member
Posts: 7022
Joined: Thu Jun 04, 2009 1:41 am
Location: cheerleading practice
Name: Tabitha Backoff

Re: Packaging-Extensions: Invalid value for name property

Post by tbackoff » Thu Apr 11, 2019 3:35 am

orynider wrote:
Wed Apr 10, 2019 11:04 pm
He is in BETA-TEST:
viewtopic.php?t=2481086
viewtopic.php?t=2473561
You can have any name you want in GitHub. What matters is the code in the extension when it's submitted.

Code: Select all

marttiphpbb/datepickerlunar

Code: Select all

marttiphpbb/extrastyle
Flying is the second best thrill to cheerleaders; being caught is the first.

Post Reply

Return to “Extension Writers Discussion”