Questions tagged [composer]
The composer tag has no usage guidance.
77
questions
8
votes
2answers
1k views
What would it take to make Craft composer based?
Since there is a free edition and the plugin architecture looks relatively simple, I'd like to know if anyone has an idea of how this could work. Are there any plans for it?
6
votes
4answers
4k views
Craft 3 Command setup failing
I've installed Craft 3 through composer and I'm attempting to work through the setup process within terminal:
MacBook-Pro:~ jamie$ ~/Documents/repos/__craft-3-beta/craft setup
Which database driver ...
5
votes
5answers
15k views
Carbon 1 is deprecated - migrate to Carbon 2
Is anyone getting this when running a composer update command?
Local install: Craft CMS 3.1.31
update --no-interaction --ansi
Loading composer repositories with package information
Updating ...
5
votes
1answer
4k views
Composer was unable to install the updates
Using Craft 3 and recently installed the https://github.com/supercool/tablemaker plugin.
When I try to update Craft via the Control panel now I am getting the following error.
Error: An error ...
5
votes
1answer
751 views
How can I install modules with Composer?
Installing a Craft 3 plugin via Composer is pretty simple. You require the package, update Composer, and install it via the CMS.
My circumstances require that our company use a private Module on all ...
4
votes
2answers
3k views
“Craft isn't installed yet” error after updating to Craft 3.1
I just updated to Craft 3.1 and logged into the admin to make the required updates to the database and this all worked fine. However, when I use the new ./craft update CLI feature, it responds with "...
4
votes
1answer
1k views
Craft install via composer: install to public_html?
When I do composer create-project craftcms/craft, it will create a web folder. My webroot is called public_html though. Can I change this somehow, or should I make a symlink?
Or simply don't use ...
4
votes
3answers
3k views
“Unknown package has no name defined” composer error on upgrade
Upgrading from Craft 3.4.20 running Composer 1.10.17 on PHP 7.2. Running ./craft update all returns the following error:
error: Unknown package has no name defined. [followed by JSON object related to ...
4
votes
1answer
644 views
Does composer update make changes to the SQL database
When creating plugins on my local I need to run composer update to make sure everything is in sync. In order to make sure the client has the same vendor and plugin folders, I then upload them to the ...
3
votes
2answers
2k views
Can't Install Plugin Via Composer
I set up a basic plugin using https://pluginfactory.io/
The package name is kgrote
The plugin name is siteutilities
Then I put it in a subfolder next to my Craft project folder:
/site
|-- craft
|--...
3
votes
3answers
659 views
cannot update Craft CMS - composer errors
I'm upgrading a site to 3.0.41.1 (not ready to go to 3.1) and when I do I get the following error. How do I resolve this?
composer update craftcms/cms
Loading composer repositories with package ...
3
votes
1answer
78 views
Composer require looking to craft/plugins/[plugin] directory but throws runtime error?
I've got Craft 3.1.32 up and running on dev machines and we're ready to get it into our test/stage enviromnments, which are built through a GitLab CI/CD. While doing this, we noticed some plugins ...
3
votes
1answer
154 views
No index.php file created during install using composer
This is on Centos 7.5 using a vmware local vm
Installed Apache, MariaDB 10.2, PHP 7.1 (Remi) in that order
Logged in as root, no sudo or su
Installed composer 1.6.5 without issue
cd /var/www/...
2
votes
1answer
4k views
composer update missing zip extension (ext-zip) on MacOS
When doing a composer update in a Craft project on MacOS Catalina, I suddenly get the following error:
***** requires ext-zip * -> the requested PHP extension zip is missing from your system.
Any ...
2
votes
1answer
308 views
Copy a Craft 3 site to my local machine (MAMP)
I have a client who started a Craft CMS site with another developer. I guess the other developer quit, and now the client wants me to make some changes to the site.
The site was created with Composer ...
2
votes
1answer
239 views
How to manage breakpoint releases when updating Craft via composer
When logged in to Craft, the "Utilities" tab will show you all the latest releases you can update to. In some cases, it will report that you have reached a breakpoint release:
You’ve reached a ...
2
votes
1answer
455 views
Can't update or install plugins locally, macOS
I'm unable to update or install plugins in Craft 3.
Running in macOS via MAMP, PHP 7.0.8.
Error: The "https://api.github.com/repos/php-fig/cache/zipball/d11b50ad223250cf17b86e38383413f5a6764bf8" file ...
2
votes
1answer
37 views
Possible to reflect changes to a plugin's composer.json without uninstall/reinstall?
When working on a plugin recently, I decided to add a CP section:
composer.json
{
...
"extra":
...
"hasCpSection": true
...
}
The only way that I was able to have this ...
2
votes
1answer
270 views
Craft 3 Ubuntu installation error via composer setup
After running composer and then initiating craft setup I keep getting this error:
Username: [admin]
Email: abc@test.com
Password:
Confirm:
Site name: test
Site URL: test.com
Site language: [en-US]
...
2
votes
1answer
22 views
Craftnet API package query
Does querying composer packages via the Craftnet API need authentication?
Ref https://docs.api.craftcms.com/packages.html
Querying the Craft CMS package itself is fine, eg https://api.craftcms.com/v1/...
2
votes
1answer
342 views
Require vendors in custom plugin
I'm building a plugin in which I would like to use a vendor library, but just adding it to the plugin's composer.json file doesn't seem to be enough to get it installed.
It works when I run composer ...
2
votes
0answers
133 views
What is the correct way to update a production site with composer?
I disable admin updates on production sites, and update Craft and its plugins by updating in the development environment, and then deploying to production using Git.
My basic process starts like this:...
1
vote
1answer
893 views
Migrate path from 2 to 3?
Anyone have experience updating a CraftCMS site from 2.* to the 3-beta? I'm not in dire need of this at the moment, but can't seem to find it in the developer resources.
EDIT: Found the upgrade guide ...
1
vote
2answers
2k views
Problem installing plugin via path repository
I am starting to play with writing a plugin in Craft 3.0. I have followed the following page. I used Plugin Factory to create my plugin structure (very nice). My folder structure is as follows:
/...
1
vote
2answers
750 views
Problem setting security key when installing Craft 3
I'm new to Composer and am using a Mac along with MAMP as a local web server. I've installed Composer but it's referencing an old PHP 5 version that must be the default on my Mac.
I was able to ...
1
vote
2answers
1k views
Craft 3 via composer with Mamp Pro
Is it possible to get an idiots guide to this:
Error on Craft 3 install
I'm just not following the context of the answer/commands, a detailed step by step would be invaluable for fear of trying ...
1
vote
1answer
416 views
composer.json file not updating when plugins are updated
My composer.json file doesn't update to the latest plugin versions when I update my plugins via the Craft CP or command line.
1
vote
1answer
528 views
Can't update past 3.0.15
Here's what I'm getting:
Error: An error occurred
Output: Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set ...
1
vote
1answer
90 views
FTP Plugin Not Showing Up
I am working on a client site and trying to upload the following plugin:
https://github.com/craftcms/guest-entries
The directions instructed me to install the app via composer in my project folderj ...
1
vote
2answers
315 views
How can I install Craft Commerce 2 alpha release?
I tried following the installation instructions here: https://docs.craftcms.com/commerce/v2/installation.html
When I run composer install craftcms/commerce, it says:
Invalid argument craftcms/...
1
vote
3answers
920 views
How do I get past this MySQL error installing Craft 3 using CLI
I am using https://box.scotch.io/ (vagrant).
I'm trying to install Craft 3 with the cli, but can't get past these errors:
Connection refused
No such file or directory
One or the other error shows ...
1
vote
1answer
679 views
Craft 3 composer installation
I have installed Craft with Composer and have run the set up command.
When I type in my database name I always get the error:
Testing database credentials... failed: SQLSTATE[HY000] [1045] Access ...
1
vote
1answer
355 views
Craft 3 forgets plugins
Due to problems I had with Craft 3 Beta 23 I switched back to version Beta 22 (I did this a couple of times)
I do this by importing an sql dump of beta 22 and by directly requesting Beta 22 via ...
1
vote
1answer
1k views
PHP version issue when installing Craft 3 using Composer
Why do I get the error when I try to install Craft 3?
composer create-project craftcms/craft Documents/Development/Project -s beta
The error:
[InvalidArgumentException] ...
1
vote
1answer
36 views
Can't install Transcoder plugin
Not sure whether I should be posting this here or as a Github issue, but when trying to install NY Studio's Transcoder plugin, I get:
Composer output: Package "craftcms/vue-asset" listed ...
1
vote
1answer
16 views
dev- branch plugin forks being prompted for update
I'm currently using a fork of a plugin for my site, and using a "dev-[branch-name]" version specification in the composer "require" block, with a "vcs" repository ...
1
vote
1answer
689 views
Allowed memory size of 1610612736 bytes exhausted when updating via CLI on OS X
This one has been bugging me for months.
My development environment is running on MAMP on OS X. It's worked absolutely find for ages but for no reason that I can identify all my Craft sites now ...
1
vote
1answer
254 views
PS-4 Autloading custom module
I have created a module in modules/Core.php which works great and I can reference it using modules\Core::class. But I want to re-organise my modules.
I'm not super familiar with PSR-4 loading but I ...
1
vote
1answer
1k views
Getting my head round installing plugins from the command line
My command line skills are limited but I’m trying to be better. I’ve been using composer successfully for a while to initiate Craft installs, but then subsequently using the Craft web GUI to install ...
1
vote
2answers
438 views
Getting fatal error when installing new plugin by hitting memory_limit
I am trying to locally install Craft Typed Link Field from the plugin store and I'm getting this PHP error.
I have already upped my memory_limit to 256M within my php.ini file, yet this is claiming ...
1
vote
1answer
174 views
How to Prevent Composer from Updating Plugin?
I have a plugin installed from a well known Craft developer. I have made significant tweaks and changes to the plugin and need to prevent it from updating. Is there an easy line of code to add to the ...
1
vote
2answers
169 views
Craft CMS module composer dependancy
After some research surrounding this I can't seem to fix this issue. So for a project I made a simple module with some variables that simply has to make an OAuth1 call and return some data.
The ...
1
vote
1answer
103 views
Issues with Redactor on Local Install
I loaded redactor. When I try to run the install command
./craft install/plugin redactor
I get an error back that says craft is a directory.
It appears the plugin may already be installed.
But I do ...
1
vote
1answer
367 views
How to recreate symlinks to path-based plugins after moving to live server?
I have a couple of custom plugins for a site, which I successfully added by using path repositories in my composer.json file. However, when I upload the site to my staging server (via FTP - no SSH ...
1
vote
2answers
211 views
Can't use composer with CraftCMS 3
I'm having trouble making updates using composer on a new CraftCMS 3 install. This was working at one point as I was able to require a local repository for plugin development purposes.
Any composer ...
1
vote
1answer
689 views
Composer conflict when installing craftcms/plugin-installer
I have installed composer successfully but when I try to add:
composer require craftcms/plugin-installer
I get the following:
Your requirements could not be resolved to an installable set of ...
1
vote
1answer
773 views
“Error: Unknown package has no name defined” when updating Craft 3
I'm getting "Error: Unknown package has no name defined" when updating a site from 3.0.41.1 to 3.5.15.1
I had read a reinstall of composer had fixed this for someone else, but hasn't for me. ...
1
vote
1answer
23 views
There are no sites in the config file on nitro add
When i try nitro add command to they return "There are no sites in the config file" what should i do?
Unable to locate a webroot, setting to web.
Enter the webroot [web] web
Added tutorial....
1
vote
1answer
29 views
Testing database credentials Craft 3 Setup
When i try setup db in craft 3 at windows with composer using php craft setup/db command it give me
Which database driver are you using? [mysql,pgsql,?]: pgsql
Database server name or IP address: [127....
1
vote
1answer
277 views
Craft CMS issue with Composer V2
We have a website built in Craft 3.4.14 and we are moving it to a hosting company with CentOS 7, using Plesk Obsidian 18.0.5.
The hosting company has told us that they have upgraded Composer from ...