Symfony 2.0.9 and wrong PropelBundle version - php

I'm having troubles with PropelBundle versions using Symfony 2.0.9.
ErrorException: User Deprecated: The PropelBundle uses a new branching model, you should switch to the 1.0 branch (1.0.x versions). For more information, please read: https://github.com/propelorm/PropelBundle/wiki in /home/project_path/vendor/bundles/Propel/PropelBundle/PropelBundle.php line 28
However, in the deps file PropelBundle version is set to 1.0 like it's reccomended here: https://github.com/propelorm/PropelBundle/wiki
[PropelBundle]
git=git://github.com/propelorm/PropelBundle.git
target=/bundles/Propel/PropelBundle
version=origin/1.0
[phing]
git=git://github.com/Xosofox/phing.git
target=/phing
[propel]
git=git://github.com/propelorm/Propel.git
target=/propel
version=origin/1.0
[doctrine-fixtures]
git=http://github.com/doctrine/data-fixtures.git
[DoctrineFixturesBundle]
git=http://github.com/doctrine/DoctrineFixturesBundle.git
target=/bundles/Symfony/Bundle/DoctrineFixturesBundle
version=origin/2.0
I tried to reinstall vendors, but nothing changed.
EDIT: Thanks to Williams I fixed this problem, however now i have this error:
./composer.phar update nothing
Initializing PEAR repository http://pear.phing.info
Updating dependencies
Your requirements could not be resolved to an installable set of packages.
Problem 1
- The requested PHP extension ext-mongo * is missing from your system.
Problem 2
- doctrine/mongodb dev-master requires ext-mongo * -> no matching package found.
- doctrine/mongodb-odm-bundle dev-master requires doctrine/mongodb-odm dev-master -> satisfiable by doctrine/mongodb-odm dev-master.
- doctrine/mongodb-odm dev-master requires doctrine/mongodb dev-master -> satisfiable by doctrine/mongodb dev-master.
- Installation request for doctrine/mongodb-odm-bundle dev-master -> satisfiable by doctrine/mongodb-odm-bundle dev-master.
Potential causes:
- A typo in the package name
- The package is not available in a stable-enough version according to your minimum-stability setting
see https://groups.google.com/d/topic/composer-dev/_g3ASeIFlrc/discussion for more details.
These packages are required for AdminGenerator, which I'm trying to install.

it seems you use a old version of your vendors.
First, remove your Phing configuration, and use the official repository: https://github.com/phingofficial/phing
Then, remove your PropelBundle vendor (rm -rf vendor/.../PropelBundle) and reinstall it. This message only appears if you track the master branch.

Related

Failed to install symfony/mailer because of friendsofsymfony/user-bundle

I have problem in using mailer in symfony. I want to follow the instruction on symfony website. When I write composer require symfony/mailer in the terminal, I get an error:
Using version ^2.1 for friendsofsymfony/user-bundle
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Restricting packages listed in "symfony/symfony" to "5.0.*"
Your requirements could not be resolved to an installable set of packages.
Problem 1
- friendsofsymfony/user-bundle v2.1.2 requires symfony/form ^2.8 || ^3.0 || ^4.0 -> no matching package found.
- friendsofsymfony/user-bundle v2.1.1 requires symfony/form ^2.8 || ^3.0 || ^4.0 -> no matching package found.
- friendsofsymfony/user-bundle v2.1.0 requires symfony/form ^2.8 || ^3.0 || ^4.0 -> no matching package found.
- Installation request for friendsofsymfony/user-bundle ^2.1 -> satisfiable by friendsofsymfony/user-bundle[v2.1.0, v2.1.1, v2.1.2].
Potential causes:
- A typo in the package name
- The package is not available in a stable-enough version according to your minimum-stability setting
see <https://getcomposer.org/doc/04-schema.md#minimum-stability> for more details.
- It's a private package and you forgot to add a custom repository to find it
Read <https://getcomposer.org/doc/articles/troubleshooting.md> for further common problems.
Installation failed, reverting ./composer.json to its original content.
when I check the symfony version in terminal:
Symfony CLI version v4.11.3 (c) 2017-2019 Symfony SAS
Symfony CLI helps developers manage projects, from local code to remote infrastructure
can you please help me to solve this problem?
I don't know about the symfony 4.11 version.
The last version maintained by symfony is the 4.4.
I think you should work on 4.4 version for more stability.
When you read docs, look at the version. Here there is no doc for symfony 4.11
So you're bundle will probably not work on your version.
On packagist you can see the bundle can work on 4.4 or 5 version.
https://packagist.org/packages/symfony/mailer

Why does composer complain about the ext-mongo extension?

When I try to install doctrine/mongodb-odm-bundle and doctrine/mongodb with composer it throws an error.
composer require doctrine/mongodb-odm-bundle doctrine/mongodb
Using version ^3.5 for doctrine/mongodb-odm-bundle
Using version ^1.6 for doctrine/mongodb
./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
- doctrine/mongodb 1.6.3 requires ext-mongo ^1.6.7 -> the requested PHP extension mongo is missing from your system.
- doctrine/mongodb 1.6.2 requires ext-mongo ^1.6.7 -> the requested PHP extension mongo is missing from your system.
- doctrine/mongodb 1.6.1 requires ext-mongo ^1.6.7 -> the requested PHP extension mongo is missing from your system.
- doctrine/mongodb 1.6.0 requires ext-mongo ^1.6.7 -> the requested PHP extension mongo is missing from your system.
- Installation request for doctrine/mongodb ^1.6 -> satisfiable by doctrine/mongodb[1.6.0, 1.6.1, 1.6.2, 1.6.3].
To enable extensions, verify that they are enabled in your .ini files:
-
- /usr/local/etc/php/conf.d/docker-php-ext-mongodb.ini
- /usr/local/etc/php/conf.d/docker-php-ext-pdo_mysql.ini
- /usr/local/etc/php/conf.d/docker-php-ext-soap.ini
- /usr/local/etc/php/conf.d/docker-php-ext-sodium.ini
- /usr/local/etc/php/conf.d/docker-php-ext-zip.ini
You can also run `php --ini` inside terminal to see which files are used by PHP in CLI mode.
Installation failed, reverting ./composer.json to its original content.
I was suprised to see this error message because I did install Mongodb with pecl and enabled it with an ini file.
RUN pecl install mongodb \
&& docker-php-ext-enable mongodb
Does anyone knows how to solve this?
I figured that by adding a provide section with the ext-mongo to the composer.json file the issue was resolved
"provide" : {
"ext-mongo": "*"
}
It appears to completely ignore the php extension.

Conflict on composer require of behat/mink

When I try to install Mink (using composer require --dev behat/mink) I get the message:
Your requirements could not be resolved to an installable set of packages.
Problem 1
- behat/mink v1.7.1 requires symfony/css-selector ~2.1|~3.0 -> no matching package found.
- behat/mink v1.7.0 requires symfony/css-selector ~2.1 -> no matching package found.
- Installation request for behat/mink ^1.7 -> satisfiable by behat/mink[v1.7.0, v1.7.1].
Potential causes:
- A typo in the package name
- The package is not available in a stable-enough version according to your minimum-stability setting
see <https://getcomposer.org/doc/04-schema.md#minimum-stability> for more details.
- It's a private package and you forgot to add a custom repository to find it
Read <https://getcomposer.org/doc/articles/troubleshooting.md> for further common problems.
Installation failed, reverting ./composer.json to its original content
What I found is that there is a conflict with symfony/css-selector.
If I run composer show symfony/css-selector the version shown is v4.2.1, so I think this is the problem.
Also, when I run composer why symfony/css-selector it returns:
symfony/test-pack v1.0.5 requires symfony/css-selector (*)
Is there any way of solving this conflict without removing the symfony/test-pack?
According to https://github.com/minkphp/Mink/pull/749#issuecomment-351402449, Mink has support for Symfony 4, but not released yet. You can using "behat/mink": "~1.7#dev" to install latest dev code for trial.

miss symfony / http-foundation during themosis Installation

I'm just want to install themosis to start new project and i have some problem during installation.
composer create-project themosis/themosis myProject
and the installation fails because obviously missing a package symfony.
Installing themosis/themosis (1.2.3)
- Installing themosis/themosis (1.2.3)
Loading from cache
Created project in myProject
Loading composer repositories with package information
Warning: Accessing wpackagist.org over http which is an insecure protocol.
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Problem 1
- themosis/framework 1.2.3 requires symfony/http-foundation 2.4.2 -> no matching package found.
- themosis/framework 1.2.2 requires symfony/http-foundation 2.4.2 -> no matching package found.
- themosis/framework 1.2.1 requires symfony/http-foundation 2.4.2 -> no matching package found.
- themosis/framework 1.2.0 requires symfony/http-foundation 2.4.2 -> no matching package found.
- Installation request for themosis/framework 1.2.* -> satisfiable by themosis/framework[1.2.0, 1.2.1, 1.2.2, 1.2.3].
Potential causes:
- A typo in the package name
- The package is not available in a stable-enough version according to your minimum-stability setting
see for more details.
Read for further common problems.
I 'm new to this framework and have already done tests and everything worked on my local machine .
Would you have a solution to continue the install of themosis
Thanks for your help.
I was bug on packagist. Now it's fixed. Go try it!

Laravel with drivers of MongoDB

I'm new using MongoDB in laravel, I want to use laravel 4.2 with MongoDB but I have this problem:
> C:\xampp\htdocs\laravel-mongo>composer require jenssegers/mongodb
Using version ^3.0 for jenssegers/mongodb
./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
- jenssegers/mongodb v3.0.0 requires mongodb/mongodb ^1.0.0 -> satisfiable by mongodb/mongodb[1.0.0, 1.0.1].
- jenssegers/mongodb v3.0.1 requires mongodb/mongodb ^1.0.0 -> satisfiable by mongodb/mongodb[1.0.0, 1.0.1].
- jenssegers/mongodb v3.0.2 requires mongodb/mongodb ^1.0.0 -> satisfiable by mongodb/mongodb[1.0.0, 1.0.1].
- mongodb/mongodb 1.0.1 requires ext-mongodb ^1.1.0 -> the requested PHP extension mongodb has the wrong version (1.0.0) installed.
- mongodb/mongodb 1.0.0 requires ext-mongodb ^1.1.0 -> the requested PHP extension mongodb has the wrong version (1.0.0) installed.
- Installation request for jenssegers/mongodb ^3.0 -> satisfiable by jenssegers/mongodb[v3.0.0, v3.0.1, v3.0.2].
To enable extensions, verify that they are enabled in those .ini files:
- C:\xampp\php\php.ini
You can also run `php --ini` inside terminal to see which files are used by PHP in CLI mode.
Installation failed, reverting ./composer.json to its original content.
For Laravel 4.2 you would need 2.0.x version of the package
composer require jenssegers/mongodb ^2.0
When you don't specify the version composer grabs the latest stable release by default, which currently happens to be v3.0.2.
This happened to me (for Lumen 5) due to an old mongo installation.
From http://php.net/manual/en/class.mongoclient.php:
Warning: This extension that defines this class is deprecated. Instead,
the MongoDB extension should be used.
Following next steps I was able to get jenssegers/mongodb properly working:
sudo apt-get install php5-dev
sudo pecl install mongodb
Then add to /etc/php5/cli/php.ini or similar:
extension=mongodb.so
And then install the driver
composer require jenssegers/mongodb
ref: http://haafiz.me/development/installing-mongodb-driver-mongoclient-for-php-on-ubuntu

Categories