Packaging-Extensions: Invalid value for name property

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

Packaging-Extensions: Invalid value for name property

Post by orynider »

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": "[email protected]",
			"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: 6669
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 »

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
Translator
Posts: 270
Joined: Wed Nov 16, 2005 12:48 pm
Location: Arad, România
Name: Florin-Ciprian Bodin
Contact:

Re: Packaging-Extensions: Invalid value for name property

Post by orynider »

You mean that I should remove the separator underline "_".
10x
User avatar
david63
Registered User
Posts: 20646
Joined: Thu Dec 19, 2002 8:08 am

Re: Packaging-Extensions: Invalid value for name property

Post by david63 »

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!

I now no longer support any of my extensions but they will start to become available here
User avatar
Kailey
Community Team Leader
Community Team Leader
Posts: 3726
Joined: Mon Sep 01, 2014 1:00 am
Location: sudo rm -rf /
Name: Kailey Snay
Contact:

Re: Packaging-Extensions: Invalid value for name property

Post by Kailey »

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

Edit: David was quicker. :lol:
Kailey Snay - Community Team Leader
Knowledge Base | Documentation | Community rules

If you have any questions about the rules/customs of this website, feel free to send me a PM.
User avatar
orynider
Translator
Posts: 270
Joined: Wed Nov 16, 2005 12:48 pm
Location: Arad, România
Name: Florin-Ciprian Bodin
Contact:

Re: Packaging-Extensions: Invalid value for name property

Post by orynider »

There is also another user marttiphpbb that is using "-" dashes if I see correct.
User avatar
david63
Registered User
Posts: 20646
Joined: Thu Dec 19, 2002 8:08 am

Re: Packaging-Extensions: Invalid value for name property

Post by david63 »

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!

I now no longer support any of my extensions but they will start to become available here
User avatar
orynider
Translator
Posts: 270
Joined: Wed Nov 16, 2005 12:48 pm
Location: Arad, România
Name: Florin-Ciprian Bodin
Contact:

Re: Packaging-Extensions: Invalid value for name property

Post by orynider »

User avatar
AlfredoRamos
Recognised Extension Developer
Posts: 1302
Joined: Wed Dec 25, 2013 9:06 pm
Location: /dev/null
Name: Alfredo
Contact:

Re: Packaging-Extensions: Invalid value for name property

Post by AlfredoRamos »

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.
Some of my phpBB extensions:
:chart_with_upwards_trend: SEO Metadata | Image Markdown | :shield: hCaptcha
:trophy: Check out all my validated extensions :trophy:

:penguin: Arch Linux user | Linux Boards :penguin:
User avatar
tbackoff
Former Team Member
Posts: 7068
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 »

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”