Class sentinel.groups does not exist - laravel

After I made a composer update, I get this error:
Class sentinel.groups does not exist
Any suggestions?
Using: Laravel with Cartalyst Platform and Sentinel.
If you need to see some code, let me know.
Removing cartalyst/sentinel (dev-master 6749d28)
Installing cartalyst/sentinel (dev-master 08d5c12)
Downloading: 100%

you need to pull in the changes from the Platform repository or apply these changes https://github.com/cartalyst/platform/commit/08fcd8b00bf1c0cd8bdca7fb6990dc168c2a02da on your composer.json manually, after that you can run composer update and it should work as normal.

Related

how can i fix this package installation error and install require hardevine/shoppingcart for my laravel project

PS F:\web\Laravel-Advance-Ecommerce-master>
PS F:\web\Laravel-Advance-Ecommerce-master>
PS F:\web\Laravel-Advance-Ecommerce-master> composer require hardevine/shoppingcart
Info from https://repo.packagist.org: #StandWithUkraine
Using version ^3.1 for hardevine/shoppingcart
./composer.json has been updated
Running composer update hardevine/shoppingcart
Loading composer repositories with package information
Updating dependencies
Nothing to modify in lock file
Installing dependencies from lock file (including require-dev)
Nothing to install, update or remove
Package swiftmailer/swiftmailer is abandoned, you should avoid using it. Use symfony/mailer instead.
Generating optimized autoload files
Warning: Ambiguous class resolution, "Gloudemans\Shoppingcart\CanBeBought" was found in both "F:/web/Laravel-Advance-Ecommerce-master/vendor/bumbummen99/shoppingcart/src\CanBeBought.php" and "F:/web/Laravel-Advance-Ecommerce-master/vendor/hardevine/shoppingcart/src\CanBeBought.php", the first will be used.
Warning: Ambiguous class resolution, "Gloudemans\Shoppingcart\Cart" was found in both "F:/web/Laravel-Advance-Ecommerce-master/vendor/bumbummen99/shoppingcart/src\Cart.php" and "F:/web/Laravel-Advance-Ecommerce-master/vendor/hardevine/shoppingcart/src\Cart.php", the first will be used.
Warning: Ambiguous class resolution, "Gloudemans\Shoppingcart\CartItem" was found in both "F:/web/Laravel-Advance-Ecommerce-master/vendor/bumbummen99/shoppingcart/src\CartItem.php" and "F:/web/Laravel-Advance-Ecommerce-master/vendor/hardevine/shoppingcart/src\CartItem.php", the first will be used.
Warning: Ambiguous class resolution, "Gloudemans\Shoppingcart\CartItemOptions" was found in both "F:/web/Laravel-Advance-Ecommerce-master/vendor/bumbummen99/shoppingcart/src\CartItemOptions.php" and "F:/web/Laravel-Advance-Ecommerce-master/vendor/hardevine/shoppingcart/src\CartItemOptions.php", the first will be used.
Warning: Ambiguous class resolution, "Gloudemans\Shoppingcart\Contracts\Buyable" was found in both "F:/web/Laravel-Advance-Ecommerce-master/vendor/bumbummen99/shoppingcart/src\Contracts\Buyable.php" and "F:/web/Laravel-Advance-Ecommerce-master/vendor/hardevine/shoppingcart/src\Contracts\Buyable.php", the first will be used.
Warning: Ambiguous class resolution, "Gloudemans\Shoppingcart\Exceptions\CartAlreadyStoredException" was found in both "F:/web/Laravel-Advance-Ecommerce-master/vendor/bumbummen99/shoppingcart/src\Exceptions\CartAlrDiscovered Package: laravel/tinker
Discovered Package: livewire/livewireDiscovered Package: nesbot/carbon
Discovered Package: nunomaduro/collisionDiscovered Package: sven/artisan-view
Package manifest generated successfully.84 packages you are using are looking for funding.
Use the `composer fund` command to find out more!Found 11 security vulnerability advisories affecting 4 packages.
Run composer audit for a full list of advisories.
PS F:\web\Laravel-Advance-Ecommerce-master>
im trying to install this package and create shopping cart for my laravel project
the package you're trying to install hardevine/shoppingcart and the package that already exists in your installation bumbummen99/LaravelShoppingcart are both a fork of the same original package Crinsane/LaravelShoppingcart which is not compatible with the latest version of laravel. You can only use one of them.
Or if you have the patience, make your own fork that merges the functionalities of both forks or just use bumbummen99's which is the most up to date one. Depends on your needs and what those packages add to the original one.

First composer package published not found

i know this has already been asked but, i can't see what is going wrong without asking.
I've created a packagist for a custom code hosted on github.
Packagist : https://packagist.org/packages/claims/module-logger
Github : https://github.com/Minirock/claims-module-logger
But when i try to load it using composer, it says it can't find it.
composer require claims/module-logger
Warning from https://repo.packagist.org: Support for Composer 1 is deprecated and some packages will not be available. You should upgrade to Composer 2. See https://blog.packagist.com/deprecating-composer-1-support/
Info from https://repo.packagist.org: #StandWithUkraine
In InitCommand.php line 785:
Could not find a version of package claims/module-logger matching your minimum-stability (dev). Require it with an explicit version constraint allowing its desired stability.
I'm pretty sure this has to do with composer version but, how can i check if my package is available for composer 1 and / or 2. If not available for composer 1 (which is mandatory in my case) how can i make it accessible ?
I also tried specifying the version
composer require claims/module-logger:dev-main
Warning from https://repo.packagist.org: Support for Composer 1 is deprecated and some packages will not be available. You should upgrade to Composer 2. See https://blog.packagist.com/deprecating-composer-1-support/
Info from https://repo.packagist.org: #StandWithUkraine
In InitCommand.php line 792:
Could not find package claims/module-logger.
Did you mean this?
claims/module-logger
I has exactly the same problem.
I updated my composer version (using composer self-update).
I confirm the problem persist.
The github : https://github.com/j-barth/test
The packagist : https://packagist.org/packages/jbarthes/test
Thank you

yii2 composer update error: Invalid version string "2.*"

I'm use composer update in a Yii2 project, but it is exiting with an exception.
I have updated composer to the lastest version, c6cc6dd6070871f4b198ed39f76dd8047c116b02, but it still doesn't work:
Importing tag v2.0.2 (2.0.2.0)
Reading bower.json of bower-asset/yii2-pjax (v2.0.1)
Reading /home/xiaoai/.composer/cache/repo/github.com/yiisoft/jquery-pjax/bower-f07ce95f6098c0bd5421789a20789f39a19be73b from cache
Importing tag v2.0.1 (2.0.1.0)
Reading /home/xiaoai/.composer/cache/repo/https---packagist.org/provider-yiisoft$yii2-bootstrap.json from cache
Reading /home/xiaoai/.composer/cache/repo/https---packagist.org/provider-bower-asset$bootstrap.json from cache
Downloading https://bower.herokuapp.com/packages/bootstrap
Writing /home/xiaoai/.composer/cache/repo/https---bower.herokuapp.com-packages/bootstrap-3c71cc99d2fc1c12a3d3e1b27e448ca612a89a1d-package.json into cache
Adding VCS repository bower-asset/bootstrap
Downloading https://api.github.com/repos/twbs/bootstrap
Downloading https://api.github.com/repos/twbs/bootstrap/contents/bower.json?ref=master
Downloading https://api.github.com/repos/twbs/bootstrap/commits/master
Downloading https://api.github.com/repos/twbs/bootstrap/tags?per_page=100
Downloading https://api.github.com/repos/twbs/bootstrap/git/refs/heads?per_page=100
[UnexpectedValueException]
Could not parse version constraint <=2.*: Invalid version string "2.*"
Exception trace:
() at phar:///usr/bin/composer.phar/src/Composer/Package/Version/VersionParser.php:461
Composer\Package\Version\VersionParser->parseConstraint() at phar:///usr/bin/composer.phar/src/Composer/Package/Version/VersionParser.php:257
Composer\Package\Version\VersionParser->parseConstraints() at phar:///usr/bin/composer.phar/src/Composer/Package/Loader/ArrayLoader.php:234
Composer\Package\Loader\ArrayLoader->parseLinks() at phar:///usr/bin/composer.phar/src/Composer/Package/Loader/ArrayLoader.php:123
Composer\Package\Loader\ArrayLoader->load() at /home/xiaoai/.composer/vendor/fxp/composer-asset-plugin/Repository/AssetVcsRepository.php:174
Fxp\Composer\AssetPlugin\Repository\AssetVcsRepository->preInitBranchPackage() at /home/xiaoai/.composer/vendor/fxp/composer-asset-plugin/Repository/AssetVcsRepository.php:138
Fxp\Composer\AssetPlugin\Repository\AssetVcsRepository->initBranches() at /home/xiaoai/.composer/vendor/fxp/composer-asset-plugin/Repository/AssetVcsRepository.php:45
Fxp\Composer\AssetPlugin\Repository\AssetVcsRepository->initialize() at phar:///usr/bin/composer.phar/src/Composer/Repository/ArrayRepository.php:178
Composer\Repository\ArrayRepository->getPackages() at phar:///usr/bin/composer.phar/src/Composer/DependencyResolver/Pool.php:104
Composer\DependencyResolver\Pool->addRepository() at /home/xiaoai/.composer/vendor/fxp/composer-asset-plugin/Repository/Util.php:60
Fxp\Composer\AssetPlugin\Repository\Util::addRepositoryInstance() at /home/xiaoai/.composer/vendor/fxp/composer-asset-plugin/Repository/Util.php:39
Fxp\Composer\AssetPlugin\Repository\Util::addRepository() at /home/xiaoai/.composer/vendor/fxp/composer-asset-plugin/Repository/AbstractAssetsRepository.php:139
Fxp\Composer\AssetPlugin\Repository\AbstractAssetsRepository->whatProvides() at phar:///usr/bin/composer.phar/src/Composer/DependencyResolver/Pool.php:199
Composer\DependencyResolver\Pool->computeWhatProvides() at phar:///usr/bin/composer.phar/src/Composer/DependencyResolver/Pool.php:188
Composer\DependencyResolver\Pool->whatProvides() at phar:///usr/bin/composer.phar/src/Composer/DependencyResolver/RuleSetGenerator.php:161
Composer\DependencyResolver\RuleSetGenerator->whitelistFromPackage() at phar:///usr/bin/composer.phar/src/Composer/DependencyResolver/RuleSetGenerator.php:273
Composer\DependencyResolver\RuleSetGenerator->whitelistFromJobs() at phar:///usr/bin/composer.phar/src/Composer/DependencyResolver/RuleSetGenerator.php:324
Composer\DependencyResolver\RuleSetGenerator->getRulesFor() at phar:///usr/bin/composer.phar/src/Composer/DependencyResolver/Solver.php:177
Composer\DependencyResolver\Solver->solve() at phar:///usr/bin/composer.phar/src/Composer/Installer.php:505
Composer\Installer->doInstall() at phar:///usr/bin/composer.phar/src/Composer/Installer.php:230
Composer\Installer->run() at phar:///usr/bin/composer.phar/src/Composer/Command/UpdateCommand.php:140
I don't think this is my mistake, but how do I fix the exception?
Michael Nguyen's answer did not work for me, but updating to dev-master did:
php composer.phar global require "fxp/composer-asset-plugin:dev-master"
One may also need to update composer itself:
php composer.phar self-update
Also there was an extensive discussion on this yesterday: link.
UPDATE. It seems to me at this moment "fxp/composer-asset-plugin:1.0.*#dev" is better again.
I have the same issue and discussed on Yii Forum. It seems like this is a bug with "fxp/composer-asset-plugin".
Try
php composer.phar global require "fxp/composer-asset-plugin:1.0.1"
Then do whatever you need with composer
The bug is discussed at https://github.com/francoispluchino/composer-asset-plugin/issues/129
It helped for me
composer self-update
composer global update

Laravel 4 - Composer could not load package

I am trying to update composer in a Laravel 4 project, but I get this error:
[RuntimeException] Could not load package psy/psysh in
http://packagist.org: [UnexpectedValueException] Could not parse
version constraint ^2.4.2: Invalid version string "^2.4.2"
I haven't used psy/psysh within my project. Why is this returned? How can I solve this and run composer update?
The ^ character in version strings is a relatively new composer feature. Update your version of the package manager and you should be good to go
composer self-update

Composer neither installing nor updating RecursiveDirectoryIterator Cannot find path specified

I have been trying to update / install with composer on my windows7 64 bit machine. But lately I am getting this errors:
$ php composer.phar install
Loading composer repositories with package information
Installing dependencies (including require-dev)
- Installing zendframework/zendxml (dev-master 559b34f)
Cloning 559b34f426d33a11c3db118e00ce14bb8dc64e5f
Failed to download zendframework/zendxml from source: RecursiveDirectoryIterator
::__construct(C:\wamp\www\projects\vendor\zendframework\zendxml,C:\wamp\www\projects\vendor\zendframework\zendxml): The system cannot find the path specified. (
code: 3)
Now trying to download from dist
- Installing zendframework/zendxml (dev-master 559b34f)
Downloading: 100%
[UnexpectedValueException]
RecursiveDirectoryIterator::__construct(C:\wamp\www\projects\vendor/zendfra
mework/zendxml,C:\wamp\www\projects\vendor/zendframework/zendxml): The syst
em cannot find the path specified. (code: 3)
I have tried to remove the vendor directory as well as empty the composer cache but this didn't solve the issue.
Any suggestions?
My problem was that I moved a directory which enabled colors in cmd.exe. Now the directory was not linked properly anymore.
Check out https://getcomposer.org/doc/articles/troubleshooting.md#-the-system-cannot-find-the-path-specified-windows- and also check for invalid paths.
Maybe a write permisions error in the vendor's folder.
Stop Apache and delete the folder /vendor/zendframework and run again composer install.

Resources