Mcrypt enabled and Laravel still complains - mcrypt

I am on OS X 10.9, using MAMP. I have mcrypt installed and it is enabled when I look at php -i. I am running the composer via php through composer.phar. Getting:
Your requirements could not be resolved to an installable set of packages.
Problem 1
- laravel/framework v5.0.5 requires ext-mcrypt * -> the requested PHP extension mcrypt is missing from your system.
- laravel/framework v5.0.4 requires ext-mcrypt * -> the requested PHP extension mcrypt is missing from your system.
- laravel/framework v5.0.3 requires ext-mcrypt * -> the requested PHP extension mcrypt is missing from your system.
- laravel/framework v5.0.2 requires ext-mcrypt * -> the requested PHP extension mcrypt is missing from your system.
- laravel/framework v5.0.1 requires ext-mcrypt * -> the requested PHP extension mcrypt is missing from your system.
- laravel/framework v5.0.0 requires ext-mcrypt * -> the requested PHP extension mcrypt is missing from your system.
- Installation request for laravel/framework 5.0.* -> satisfiable by laravel/framework[v5.0.0, v5.0.1, v5.0.2, v5.0.3, v5.0.4, v5.0.5].

Sorry for the late.. but if you still have the problem, it's certainly because of your php version ..
Composer use the system version and mcrypt module may not be installed for that version. So check the version that your system using and do what you can to choose the "correct" php.
For example change your PATH env variable ;p
Best regards,

Related

- jms/payment-core-bundle[dev-master, 1.4.0, ..., 1.4.1] require doctrine/common ~2.3 -> found doctrine/common[2.3.0-BETA1, ..., 2.13.x-dev]

I can not install JMSPaymentCoreBundle here are the errors. How to fix it?
Problem 1
- jms/payment-core-bundle[dev-master, 1.4.0, ..., 1.4.1] require doctrine/common ~2.3 -> found doctrine/common[2.3.0-BETA1, ..., 2.13.x-dev]
but the package is fixed to 3.1.1 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument
for the update command.
- jms/payment-core-bundle 1.4.x-dev is an alias of jms/payment-core-bundle dev-master and thus requires it to be installed too.
- Root composer.json requires jms/payment-core-bundle ^1.4 -> satisfiable by jms/payment-core-bundle[1.4.0, 1.4.1, 1.4.x-dev (alias of dev-m
aster)].
Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.
Installation failed, reverting ./composer.json and ./composer.lock to their original content.

Issues Migrating Drupal 8.9.13 to 9.0.1

I am attempting to update from 8.9.13 to 9.0.1 (intending to migrate to 9 in general, not specifically 9.0.1)
Its on a composer site.
I'm running:
composer require drupal/core:^9.0.1 drupal/core-dev:^9.0.1 --update-with-all-dependencies
I keep running up against the following errors:
Problem 1
- drupal/loft_data_grids is locked to version 1.3.0 and an update of this package was not requested.
- drupal/loft_data_grids 1.3.0 requires drupal/core ~8.0 -> found drupal/core[8.0.0-beta6, ..., 8.9.x-dev] but it conflicts with your root composer.json require (^9.0.1).
Problem 2
- drupal/upgrade_status is locked to version 3.4.0 and an update of this package was not requested.
- drupal/upgrade_status 3.4.0 requires drupal/core ^8.7.0 -> found drupal/core[8.7.0-alpha1, ..., 8.9.x-dev] but it conflicts with your root composer.json require (^9.0.1).
Problem 3
- drupal/backup_migrate is locked to version 5.0.0-rc2 and an update of this package was not requested.
- Conclusion: don't install symfony/process[v4.4.0-BETA1] | install symfony/process[v3.4.39] (conflict analysis result)
- Conclusion: don't install symfony/process v3.4.39 (conflict analysis result)
- Conclusion: don't install drupal/core 9.1.4 (conflict analysis result)
- Conclusion: don't install symfony/process v4.4.0-BETA2 (conflict analysis result)
- Conclusion: don't install symfony/process v4.4.0-RC1 (conflict analysis result)
- Conclusion: don't install symfony/process v4.4.0 (conflict analysis result)
.... remvoed for brevity of symfony/profess v4.4.1 - 4.4.2 - etc until 4.4.19
- Conclusion: don't install symfony/process v4.4.19 (conflict analysis result)
- drupal/recaptcha 3.0.0 requires drupal/captcha ^1.0.0-alpha1 -> satisfiable by drupal/captcha[1.1.0].
- drupal/recaptcha is locked to version 3.0.0 and an update of this package was not requested.
- drush/drush is locked to version 10.3.6 and an update of this package was not requested.
- drupal/captcha 1.1.0 requires drupal/core ^8.8 || ^9 -> satisfiable by drupal/core[9.0.1, ..., 9.2.x-dev].
- drupal/core[9.0.1, ..., 9.2.x-dev] require symfony/process ^4.4 -> satisfiable by symfony/process[v4.4.0-BETA1, ..., 4.4.x-dev].
- Conclusion: don't install symfony/process 4.4.x-dev (conflict analysis result)
Could anyone help enlighten me please?
Thanks in advance!
Carefully read the problem statements, for Problem 1:
- drupal/loft_data_grids 1.3.0 requires drupal/core ~8.0
This indicates that Loft Data Grids has a constraint to Drupal 8.x, hence the error. When you follow the link, you will also see that that project doesn't have a Drupal 9 release, so that is blocking your upgrade already. Try and apply the patches from either Drupal 9 Readiness or Automated Drupal 9 compatibility fixes.
The same applies to Problem 2 Upgrade Status, though you wouldn't need this module in Drupal 9, so consider removing this one before upgrading:
- drupal/upgrade_status 3.4.0 requires drupal/core ^8.7.0
I advice you first to fix the module constraints in general that are not yet ready for Drupal 9 before even attempting to run the Composer upgrade command to Drupal 9, as they will all halt the upgrade in similar way.
Please see Apply Drupal 9 compatibility patches with Composer and Require v8 only contrib module with v9 patch to get around Drupal 8 modules that aren't tagged yet with a Drupal 9 release, but have a patch that can be applied.

composer.json - minimum-stability for single package

I had this problem that whenever i wanted to download dev-master running $ composer require egeloen/google-map-bundle dev-master package I was getting error:
Problem 1
Installation request for egeloen/google-map-bundle dev-master -> satisfiable by egeloen/google-map-bundle[dev-master].
egeloen/google-map-bundle dev-master requires egeloen/google-map ^2.0#dev -> satisfiable by egeloen/google-map[2.0.x-dev] but these
conflict with your requirements or minimum-stability.
When I added minimum-stability: "dev" to composer.json file it suddenly upgraded all the packages including symfony/symfony to dev-master. I am not getting any error, but I am worried that I might have problems with some unstable packages in the future.
I made some research and found out that it is possible to set minimum-stability to single package. I tried running this:
$ composer require egeloen/google-map-bundle dev-master#dev
But unfortunatelly I am getting an error:
Problem 1
egeloen/google-map-bundle dev-master requires egeloen/google-map ^2.0#dev -> satisfiable by egeloen/google-map[2.0.x-dev].
egeloen/google-map-bundle dev-master requires egeloen/google-map ^2.0#dev -> satisfiable by egeloen/google-map[2.0.x-dev].
Removal request for egeloen/google-map == 2.0.9999999.9999999-dev
Installation request for egeloen/google-map-bundle dev-master#dev -> satisfiable by
egeloen/google-map-bundle[dev-master].
Unfortunatelly it suggests ^2.0#dev, but that version is not what I need. Any ideas where I am wrong or what I am missing?
The bundle you want to install has another dependency egeloen/google-map with a constraint of ^2.0#dev (also don't confuse this package with the bundle package). Since there is no stable 2.0 release of this dependency yet, it fails when your minimum stability is stable.
To resolve it without lowering the minimum stability for the other packages, you should explicitely list egeloen/google-map in your dependencies:
"egeloen/google-map": "^2.0#dev"
This will allow Composer to install a non-stable version of this "second-level" dependency.

Install the DoctrineMongoDBBundle with Composer

I have been trying to install DoctrineMongoDBBundle with Symfony2. I followed this reference http://symfony.com/doc/current/bundles/DoctrineMongoDBBundle/index.html
Unfortunately I am getting the following error and could not find a solution.
I have already added the php extension for MongoDB. Could you please give an idea about this ?
doctrine/mongodb 1.0.3 requires ext-mongo >=1.2.12,<1.5-dev -> the request
ed PHP extension mongo has the wrong version (1.2.11) installed.
doctrine/mongodb 1.0.2 requires ext-mongo >=1.2.12,<1.4-dev -> the request
ed PHP extension mongo has the wrong version (1.2.11) installed.
doctrine/mongodb 1.0.1 requires ext-mongo >=1.2.12,<1.4-dev -> the request
ed PHP extension mongo has the wrong version (1.2.11) installed.
doctrine/mongodb 1.0.0 requires ext-mongo >=1.2.12,<1.4-dev -> the request
ed PHP extension mongo has the wrong version (1.2.11) installed.
doctrine/mongodb-odm 1.0.0-BETA5 requires doctrine/mongodb 1.0.0-BETA1 ->
no matching package found.
You have to update your PHP MongoDB extension as it is currently version 1.2.11 and you need a version greater than or equal to 1.2.12.
ext-mongo in the error message refers to your PHP extension.
That's exactly what the error message says ... doctrine/mongodb needs a greater version of the mongoDB extension and therefore composer can't find a compatible package.

Resource Bundle 0.2* installation failed in sylius?

I want to install resource bundle in sylius i used below command using cmd
composer require sylius/resource-bundle:0.2.*
when i ran above command i get below error
composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Problem 1
- sylius/taxation-bundle 0.1.x-dev requires sylius/resource-bundle 0.1.* -> satisfiable by sylius/resour
ce-bundle[v0.1.0].
- sylius/taxation-bundle 0.1.x-dev requires sylius/resource-bundle 0.1.* -> satisfiable by sylius/resour
ce-bundle[v0.1.0].
- Can only install one of: sylius/resource-bundle[v0.2.0, v0.1.0].
- Can only install one of: sylius/resource-bundle[v0.2.0, v0.1.0].
- Installation request for sylius/resource-bundle 0.2.* -> satisfiable by sylius/resource-bundle[v0.2.0]
.
- Installation request for sylius/taxation-bundle == 0.1.9999999.9999999-dev -> satisfiable by sylius/ta
xation-bundle[0.1.x-dev].
Installation failed, reverting composer.json to its original content.
Please share some knowledge..Thanks in advance.
Why you want to install this bundle? I is already there as it is dependency of all other bundles. You do not need to install it separately. And these bundles use 0.1.* version currently.

Resources