There's a syntax error in your json, you need a comma at the end of the 2nd to last line.
Custom Paths
askvortsov There's a syntax error in your json, you need a comma at the end of the 2nd to last line.
"repositories": [{"type": "composer", "url": "https://extiverse.com/composer/"}],
It must be some of that code that is the only thing I have added in the "composer.json" file.
Thank you!
LagunaLife my bad, I meant 3rd to Lady (the prefer stability one). Are you using a code editor? That should highlight syntax issues like this.
askvortsov
I'm using Notepad ++ what happens is that I'm new to this, and I still have a hard time understanding it. I do not know if it is too much to ask, could you correct where the fault is and so I would see where the error is?
Here is the code for my composer.json file. My English is not very good, and I have a hard time understanding some things. Excuse me.
{
"name": "flarum/flarum",
"description": "Delightfully simple forum software.",
"type": "project",
"keywords": [
"forum",
"discussion"
],
"homepage": "https://flarum.org/",
"license": "MIT",
"authors": [
{
"name": "Franz Liedke",
"email": "franz@develophp.org"
},
{
"name": "Daniel Klabbers",
"email": "daniel@klabbers.email",
"homepage": "https://luceos.com"
},
{
"name": "David Sevilla Martin",
"email": "me+flarum@datitisev.me",
"homepage": "https://datitisev.me"
},
{
"name": "Clark Winkelmann",
"email": "clark.winkelmann@gmail.com",
"homepage": "https://clarkwinkelmann.com"
},
{
"name": "Matthew Kilgore",
"email": "matthew@kilgore.dev"
},
{
"name": "Alexander (Sasha) Skvortsov",
"email": "askvortsov@flarum.org"
}
],
"support": {
"issues": "https://github.com/flarum/core/issues",
"source": "https://github.com/flarum/flarum",
"docs": "https://flarum.org/docs/"
},
"require": {
"alexanderomara/flarum-gravatar": "^1.2",
"clarkwinkelmann/flarum-ext-circle-groups": "^0.2.3",
"clarkwinkelmann/flarum-ext-emojionearea": "^0.3.0",
"clarkwinkelmann/flarum-ext-popular-discussion-badge": "^0.2.2",
"darkfoxdeveloper/lang-spanish": "^1.1",
"dem13n/quad-theme": "^0.1.9",
"flarum/approval": "^0.1.0",
"flarum/bbcode": "^0.1.0",
"flarum/core": "^0.1.0",
"flarum/emoji": "^0.1.0",
"flarum/flags": "^0.1.0",
"flarum/lang-english": "^0.1.0",
"flarum/likes": "^0.1.0",
"flarum/lock": "^0.1.0",
"flarum/markdown": "^0.1.0",
"flarum/mentions": "^0.1.0",
"flarum/nicknames": "^0.1.0",
"flarum/pusher": "^0.1.0",
"flarum/statistics": "^0.1.0",
"flarum/sticky": "^0.1.0",
"flarum/subscriptions": "^0.1.0",
"flarum/suspend": "^0.1.0",
"flarum/tags": "^0.1.0",
"fof/cookie-consent": "^0.4.0",
"fof/forum-statistics-widget": "^0.4.0",
"fof/linguist": "^0.5.0",
"fof/polls": "^0.3.2",
"fof/realtimedate": "^0.2.1",
"fof/recaptcha": "^0.3.1",
"fof/secure-https": "^0.3.0",
"fof/sitemap": "^0.6.0",
"jordanjay29/flarum-ext-summaries": "^0.3.2",
"jslirola/flarum-ext-login2seeplus": "^0.1.7",
"matteocontrini/flarum-imgur-upload": "^3.5",
"migratetoflarum/canonical": "^0.2.3",
"sycho/flarum-profile-cover": "^1.2",
"therealsujitk/flarum-ext-gifs": "^2.0",
"v17development/flarum-blog": "^0.2.1",
"v17development/flarum-seo": "^1.5",
"zeokat/flarum-ext-seoslugs": "^0.1.6"
},
"config": {
"preferred-install": "dist",
"sort-packages": true
},
"minimum-stability": "beta",
"prefer-stable": true
"repositories": [{"type": "composer", "url": "https://extiverse.com/composer/"}]
}
And thank you very much for your time.
LagunaLife sorry again, I think I've given you wrong instructions twice now and that's certainly not helping.
You need to add a comma at the end of the prefer stable line.
For code editor, I'd highly recommend vscode.
LagunaLife the end of the file must look like this:
"prefer-stable": true,
"repositories": [{"type": "composer", "url": "https://extiverse.com/composer/"}]
}
The file follows JSON formatting, which requires a comma at the end of each line except the last one. If you add the repositories
key at the bottom, this means adding a comma on the line above. If you add it in the middle, this means adding a comma at the end of the new line.
You can use online tools to validate JSON if needed. But most will probably give the same kind of error that Composer shows. It tells you at what place of the file the issue is.
Let me know if you have any other issue
clarkwinkelmann Thank you!! That was it, I'm really sorry for asking so much. Now I get another different error when I put:
composer config --global --auth bearer.extiverse.com (here I put my Token)
I get this error:
[InvalidArgumentException]
Setting bearer.extiverse.com does not exist or is not supported by this command
What can be?
LagunaLife what is your Composer version? You can find out with composer --version
. You might need to update it if it's super outdated.
clarkwinkelmann Exact! I think it must be that, I have the version of composer 1.8.6. I am trying to update but cannot. As I have seen is with the command: composer self-update
And I get the error:
[ErrorException]
rename(/opt/cpanel/composer/bin/composer): failed to open stream: Permission denied
I think it is a failure of some permission, but that location can not find it through FTP.
LagunaLife if you are on a shared hosting they might not allow you to update the global composer
command. This might be an option inside of cPanel somewhere however.
Another option is to manually download composer.phar
and run it from your Flarum folder with php composer.phar [command]
clarkwinkelmann All set! Exactly I have a Shared Hosting, I have sent a ticket to support and they have updated it. I have already been able to install the extension without problems.
I'm very sorry for the annoying and so many questions. Thanks so much for the help.
clarkwinkelmann Can you add support for the links below?
/private
/groups
DursunCan please specify which extensions provide them. I'm assuming Byobu and my own group list? I'll look into it.
clarkwinkelmann my fault. FoF Byōbu and Group List exts.
Hi
I just purchased the plugin. I have provided the necessary update in the composer.json file.
But I am having a problem with the authorization process with Composer. I make a root connection with SSH and run the code "composer config --global --auth bearer.extiverse.com yourUniqueToken" by typing my own token. As a result of this process, when I get the error "No such file or directory".
I am using Beta 15 Flarum version. My server is Centos 7 + Plesk Obsidian 18.0.33 and my Composer version 1.1.2-218.
How can I solved this?
Thanks.