Questions tagged [composer]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
51 views

Composer was unable to install the updates. Error: Unknown package has no name defined

Hi I cannot install Craft CMS updates. I have version 3.1.18 and I'm trying to update to 3.7.50 I have updated Composer successfully. I did however have a platform PHP 7 issue listed in composer.json ...
user avatar
  • 299
0 votes
0 answers
61 views

Can't install Codeception with Craft 4 and PHP 8.1

Did anyone manage to make Codeception work with Craft 4 and PHP 8.1? I tried /composer require "codeception/codeception" --dev, got: - codeception/codeception[4.1.0, ..., 4.1.8] require php &...
user avatar
  • 55
2 votes
1 answer
142 views

Your project config YAML files are expecting different versions to be installed

I'm working on a site on shared hosting and I can't run composer install from CLI to install the vendor folder because I get The Process class relies on proc_open, which is not available on your PHP ...
user avatar
  • 509
0 votes
0 answers
91 views

Not instantiable – yii\di\NotInstantiableException Failed to instantiate component or class

I am getting this error after the Craft CMS upgrade 3.7.30. Anyone please assist me on this issue.
user avatar
  • 61
1 vote
1 answer
67 views

Error when running composer commands

I'm getting an error with almost every Craft project I set up when I try and run any composer command: Parse error: parse error, expecting `';'' or `'{'' in /path-to-my-project/craft/vendor/craftcms/...
user avatar
  • 197
1 vote
1 answer
29 views

Difficulties to setup a Filter class

This question is following this one: Where to implement Craft Webhook FilterInterface. I'm trying to implement a Craft Webhook FilterInterface but failed to load it. Below is the content of my setup, ...
user avatar
0 votes
0 answers
41 views

Path issue shows with composer installing via MAMP on macOS

When I have tried to install composer for laravel 8 on localhost MAMP I have gotten this message in command line (terminal): -bash: /Applications/MAMP/bin/php/php7.4.16/bin/php: No such file or ...
user avatar
0 votes
0 answers
57 views

Composer needs GitHub token to update craft cms

I was on craft v3.7.24, but I needed bugfixes in 3.7.25.1. Both Craft update console command and composer told me they couldn't authenticate against GitHub and/or needed an API token. composer update ...
user avatar
1 vote
1 answer
113 views

Upgrading to 3.7.26 causes tempnam() error from twig's FilesystemCache.php

I am upgrading a Craft project that I have been neglecting for a little bit too long. I am upgrading to 3.7.26 from 3.4.25; on top of this, I am upgrading from PHP 7.1 to PHP 7.4. I'm also updating a ...
user avatar
1 vote
1 answer
118 views

Composer error while upgrading from Craft CMS 3.5.8 to 3.7.21

I am trying to upgrade to the Craft CMS from 3.5.8 to 3.7.21. I am getting the below error. Any help really helpful. Output: <warning>Package "craftcms/vue-asset" listed for update is ...
user avatar
  • 61
2 votes
1 answer
31 views

Child (inner) Path of backend in Virtual Host is possible?

I have ISP Config host virtual website which is a system tool to host many websites. Document root path '/' is not writable. I have an /private, which is writable. I used alias @root as /private, and ...
user avatar
1 vote
1 answer
22 views

Composer Unexpected end of file on new plugin

I'm making a new Plugin for CraftCMS, it works fine locally but when I call the services class on our staging server it throws a Syntax Error, Unexpected end of file. I've installed them both through ...
user avatar
1 vote
1 answer
375 views

Error when trying to update Craft or install any plugin

When I try to update Craft, or install any plugin from the plugin store, I get the following error): Composer was unable to install the updates. Error: The url supplied for the path (plugins/redactor)...
user avatar
  • 149
1 vote
1 answer
31 views

Class '...SiteModuleService' not found when used inside scout.php

I have a custom SiteModule that is used inside scout.php to deliver indexing data to Algolia. I have followed CraftQuest's tutorial on creating a custom SiteModule for handling the indicies. The setup ...
user avatar
  • 617
2 votes
1 answer
436 views

Where exactly to update the composer.json to install an older version of Craft 3?

I'm trying to install a non-current version of Craft 3, and several pointers on using composer to do this say to "update the composer.json" line with the version you want. Can someone please ...
user avatar
2 votes
1 answer
364 views

Error with Craft CMS set up and composer: failed: SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: YES)

Hi I am trying to set up craft CMS with composer. I am using MAMP on a mac and I just cannot get it to connect. I get this error even though I know the password is correct. failed: SQLSTATE[HY000] [...
user avatar
  • 299
1 vote
1 answer
87 views

Configure path craft uses for composer and php

Is it possible to configure the PATH to composer that craft is using? In a shared hosting (our server, lots of sites) php isn't available by default. It's provided via redhat software collections. ...
user avatar
  • 131
1 vote
1 answer
4k 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. ...
user avatar
  • 107
1 vote
1 answer
61 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 ...
user avatar
  • 509
1 vote
1 answer
187 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....
user avatar
  • 11
1 vote
1 answer
48 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 ...
user avatar
  • 61
10 votes
7 answers
31k 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 ...
user avatar
  • 286
1 vote
1 answer
192 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....
user avatar
  • 11
1 vote
1 answer
75 views

Why does Bootup.php run with PHP 5.4.16 from with Craft script but PHP 7.4.10 from the terminal command line?

This is a problem encountered apparently by a lot of users when installing from the Craft setup/install files from the Craft web site. PHP Warning: Unsupported declare 'strict_types' in /var/craft/...
user avatar
1 vote
1 answer
27 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/...
user avatar
  • 1,731
1 vote
1 answer
808 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 ...
user avatar
0 votes
0 answers
63 views

How to move a plugin from dev to prod?

I have a plugin that I developed in a symlinked folder locally. I now want to deploy it to production. But when I do composer require namespace/pluginhandle it gets symlinked. What I want is to ...
user avatar
2 votes
1 answer
7k 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 ...
user avatar
1 vote
1 answer
114 views

Weird issue with craft/setup command

I have been trying to install Craft CMS on Windows. I tried composer: composer create-project craftcms/craft d:\temp\craft After that when I try to craft setup there is a loop on the console which ...
user avatar
  • 121
1 vote
1 answer
312 views

"Could not find composer.json file" error in CraftCMS 3

I recently updated my CraftCMS 3 with the help of Composer. When I try to install a plugin with the plugin store, I get an error saying that Craft couldn't find my composer.json file. He proposes me ...
user avatar
1 vote
1 answer
848 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 ...
user avatar
  • 403
2 votes
1 answer
688 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 ...
user avatar
  • 193
2 votes
1 answer
478 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 ...
user avatar
  • 13.3k
1 vote
1 answer
74 views

Update issues on local laravel valet

When I update any plugins ( and I mean any not specific) the vendor package vlucas (Php DotEnv) is removed and the site subsequently breaks complaining it cannot find the DOT env file. Manual update ...
user avatar
  • 1,900
1 vote
1 answer
713 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.
user avatar
  • 107
1 vote
1 answer
36 views

Faceted navigation plugin problem installing

I get the errors below in the Command Prompt when trying to install. helloswish/craft-faceted-navigation Does anyone know why this is not working? [InvalidArgumentException] Could not find a ...
user avatar
2 votes
1 answer
256 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: ...
user avatar
3 votes
1 answer
248 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 ...
user avatar
5 votes
5 answers
20k 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 ...
user avatar
  • 598
3 votes
3 answers
1k 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 ...
user avatar
  • 1,907
1 vote
1 answer
2k 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 ...
user avatar
2 votes
1 answer
54 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 ...
user avatar
  • 137
1 vote
1 answer
482 views

upgrade issue Yii Framework from version 2.0.15.1 to 2.0.16.1

I tried installing a site I developed on my work mac (high sierra), pushed to its repo, pulled it down at home on my mac (mojave)and on running composer update get this displayed in my terminal: ...
user avatar
  • 141
1 vote
0 answers
265 views

Every time I perform updates on Craft 3, I get errors

What is going on in Craft 3, seems like Composer has caused more problems than good. Every time I have had to update a dev/staging environment I run into issues and have to go and manually update the ...
user avatar
  • 801
1 vote
1 answer
4k views

How do I resolve dependency conflicts in Composer?

I'm new to using Composer and I'm having trouble deploying to Laravel Forge. I am getting an error message that says: Your requirements could not be resolved to an installable set of packages. ...
user avatar
5 votes
2 answers
4k 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 "...
user avatar
  • 1,032
1 vote
1 answer
884 views

Install Zoho CRM SDK (or any SDK for that matter)

For a client I need to connect a rather complex contact form with the Zoho CRM. They're offering a PHP SDK which sounds great, but I can't get it to work. It's very likely that I'm just stupid, ...
user avatar
1 vote
0 answers
74 views

Installing module via composer

I followed this question like: ... "repositories": [{ "type": "vcs", "url": "git@bitbucket.org:jorgeanzola/mymodule.git" } ], ... "require": { "craftcms/cms": "^3.0.0", ... "...
user avatar
1 vote
1 answer
66 views

Error running any Composer command

I am working on a project with multiple developers and another member of the team is getting on with a Plugin to assist with some CraftCommerce integrations. As it's not a publicly available plugin, ...
user avatar
  • 1,032
1 vote
2 answers
523 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 ...
user avatar
  • 1,032