473,396 Members | 2,029 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Symfony, instaling CMF Core Bundles does not work.

103 100+
I am trying to make symfony project cms1 and install CMS bundles to it:
cd to folder where the symfony is installed
create project: c:\> php symfony.phar new cmf1
run the project: $ cd .\cmf1
$php app/console server:run
GO TO : http://127.0.0.1:8000
or go to URL: http://localhost:8000/
To this point everything is working

According
http://symfony.com/doc/current/cmf/cookbook/editions/cmf_core.html

i add line to :
C:\Bitnami\wampstack-5.4.38-0\sym_prog\cms1\composer.json
Expand|Select|Wrap|Line Numbers
  1. "require": {
  2.     ...
  3.     "symfony-cmf/symfony-cmf": "1.2.*"
  4. }
I am getting the ERROR:
Expand|Select|Wrap|Line Numbers
  1. c:\Bitnami\wampstack-5.4.38-0\sym_prog\cms1>composer update
  2. Loading composer repositories with package information
  3. Updating dependencies (including require-dev)
  4. Your requirements could not be resolved to an installable set of packages.
  5.  
  6.   Problem 1
  7.     - doctrine/phpcr-bundle 1.2.4 requires phpcr/phpcr-implementation 2.1.* -> n
  8. o matching package found.
  9.     - doctrine/phpcr-bundle 1.2.3 requires phpcr/phpcr-implementation 2.1.* -> n
  10. o matching package found.
  11.     - doctrine/phpcr-bundle 1.2.2 requires phpcr/phpcr-implementation 2.1.* -> n
  12. o matching package found.
  13.     - doctrine/phpcr-bundle 1.2.1 requires phpcr/phpcr-implementation 2.1.* -> n
  14. o matching package found.
  15.     - doctrine/phpcr-bundle 1.2.0 requires phpcr/phpcr-implementation 2.1.* -> n
  16. o matching package found.
  17.     - symfony-cmf/symfony-cmf 1.2.0 requires doctrine/phpcr-bundle 1.2.* -> sati
  18. sfiable by doctrine/phpcr-bundle[1.2.0, 1.2.1, 1.2.2, 1.2.3, 1.2.4].
  19.     - Installation request for symfony-cmf/symfony-cmf 1.2.* -> satisfiable by s
  20. ymfony-cmf/symfony-cmf[1.2.0].
  21.  
  22. Potential causes:
  23.  - A typo in the package name
  24.  - The package is not available in a stable-enough version according to your min
  25. imum-stability setting
  26.    see <https://groups.google.com/d/topic/composer-dev/_g3ASeIFlrc/discussion> f
  27. or more details.
  28.  
  29. Read <https://getcomposer.org/doc/articles/troubleshooting.md> for further commo
  30. n problems.
Solution 1. Added line to composer.json – does not work
C:\Bitnami\wampstack-5.4.38-0\sym_prog\cms1\composer.json
Expand|Select|Wrap|Line Numbers
  1.    "require": {
  2.         "doctrine/phpcr-bundle": "~2.4",
  3.         "symfony-cmf/symfony-cmf": "1.2.*",
There is coming an error, that package “doctrine/phpcr-bundle" does not exists.

Expand|Select|Wrap|Line Numbers
  1. c:\Bitnami\wampstack-5.4.38-0\sym_prog\cms1>composer update
  2. Loading composer repositories with package information
  3. Updating dependencies (including require-dev)
  4. Your requirements could not be resolved to an installable set of packages.
  5.  
  6.   Problem 1
  7.     - The requested package doctrine/phpcr-bundle could not be found in any vers
  8. ion, there may be a typo in the package name.
  9.   Problem 2
  10.     - Installation request for symfony-cmf/symfony-cmf 1.2.* -> satisfiable by s
  11. ymfony-cmf/symfony-cmf[1.2.0].
  12.     - symfony-cmf/symfony-cmf 1.2.0 requires doctrine/phpcr-bundle 1.2.* -> no m
  13. atching package found.
  14.  
  15. Potential causes:
  16.  - A typo in the package name
  17.  - The package is not available in a stable-enough version according to your min
  18. imum-stability setting
  19.    see <https://groups.google.com/d/topic/composer-dev/_g3ASeIFlrc/discussion> f
  20. or more details.
  21.  
  22. Read <https://getcomposer.org/doc/articles/troubleshooting.md> for further commo
  23. n problems.
  24.  
Solution: i added many bundles:
Budles for symfony-cmf according https://packagist.org/packages/symfony-cmf/symfony-cmf
"doctrine/phpcr-bundle": "~1.2",
"doctrine/phpcr-odm": "1.2.*",
"symfony-cmf/core-bundle": "1.2.*",
"symfony-cmf/content-bundle": "1.2.*",
"symfony-cmf/menu-bundle": "1.2.*",
"symfony-cmf/block-bundle": "1.2.*",
"symfony-cmf/routing-bundle": "1.3.*",
"symfony-cmf/media-bundle": "1.2.*",
"symfony-cmf/symfony-cmf": "1.2.*",
"symfony-cmf/symfony-cmf": "1.2.*",

Budles for doctrine/phpcr-bundle according
https://packagist.org/packages/doctrine/phpcr-bundle:
https://packagist.org/packages/jackalope/jackalope
"symfony/doctrine-bridge": "~2.3",
"phpcr/phpcr-implementation": "2.1.*", // it is not a separate bundle it comes with jakalope
"phpcr/phpcr-utils": "~1.2.*",
"phpcr/phpcr": "~2.1",
"jackalope/jackalope-doctrine-dbal": "~1.2.2",
"jackalope/jackalope": "1.2.3", //requires “jacalope/jakapole-transport”, which is part of “jackalope/jackalope-doctrine-dbal” and requires "doctrine/dbal"
"doctrine/dbal": "~2.4.5",
"doctrine/phpcr-bundle": "~1.3",
"doctrine/phpcr-bundle": "~1.3", //instead of 2.4


Finally my composer.json looks like this:
Expand|Select|Wrap|Line Numbers
  1.  {
  2.     "name": "gintare/cms1",
  3.     "license": "proprietary",
  4.     "type": "project",
  5.     "autoload": {
  6.         "psr-4": {
  7.             "": "src/"
  8.         }
  9.     },
  10.     "require": {
  11.         "php": ">=5.3.9",
  12.         "symfony/symfony": "2.7.*",
  13.         "doctrine/orm": "^2.4.8",
  14.         "doctrine/doctrine-bundle": "~1.2",
  15.         "doctrine/dbal": "~2.4.5",
  16.         "doctrine/data-fixtures": "~1.0",
  17.         "symfony/assetic-bundle": "~2.3",
  18.         "symfony/swiftmailer-bundle": "~2.3",
  19.         "symfony/monolog-bundle": "~2.4",
  20.         "symfony/doctrine-bridge": "~2.3",
  21.         "phpcr/phpcr-utils": "~1.2",
  22.         "phpcr/phpcr": "~2.1",
  23.         "jackalope/jackalope-doctrine-dbal": "~1.2.2",
  24.         "jackalope/jackalope": "1.2.3",
  25.         "doctrine/phpcr-bundle": "~1.2",
  26.         "doctrine/phpcr-odm": "1.2.*",
  27.         "symfony-cmf/core-bundle": "1.2.*",
  28.         "symfony-cmf/content-bundle": "1.2.*",
  29.         "symfony-cmf/menu-bundle": "1.2.*",
  30.         "symfony-cmf/block-bundle": "1.2.*",
  31.         "symfony-cmf/routing-bundle": "1.3.*",
  32.         "symfony-cmf/media-bundle": "1.2.*",        
  33.         "symfony-cmf/symfony-cmf": "1.2.*",
  34.         "sensio/distribution-bundle": "~4.0",
  35.         "sensio/framework-extra-bundle": "^3.0.2",
  36.         "incenteev/composer-parameter-handler": "~2.0"
  37.     },
  38.     "require-dev": {
  39.         "sensio/generator-bundle": "~2.3"
  40.     },
  41.     "scripts": {
  42.         "post-install-cmd": [
  43.             "Incenteev\\ParameterHandler\\ScriptHandler::buildParameters",
  44.             "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::buildBootstrap",
  45.             "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::clearCache",
  46.             "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installAssets",
  47.             "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installRequirementsFile",
  48.             "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::prepareDeploymentTarget"
  49.         ],
  50.         "post-update-cmd": [
  51.             "Incenteev\\ParameterHandler\\ScriptHandler::buildParameters",
  52.             "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::buildBootstrap",
  53.             "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::clearCache",
  54.             "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installAssets",
  55.             "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installRequirementsFile",
  56.             "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::prepareDeploymentTarget"
  57.         ]
  58.     },
  59.     "config": {
  60.         "bin-dir": "bin"
  61.     },
  62.     "extra": {
  63.         "symfony-app-dir": "app",
  64.         "symfony-web-dir": "web",
  65.         "symfony-assets-install": "relative",
  66.         "incenteev-parameters": {
  67.             "file": "app/config/parameters.yml"
  68.         }
  69.     }
  70. }
  71.  
I am still getting an error that:
Expand|Select|Wrap|Line Numbers
  1.     - jackalope/jackalope 1.2.3 requires jackalope/jackalope-transport * -> no matching package found.
As it is described above "jackalope/jackalope" “jacalope/jakapole-transport”, which is part of “jackalope/jackalope-doctrine-dbal” and requires "doctrine/dbal". All these packages are added to the composer.json

What packages i need to install symfony-cmf, better with development mode?
http://symfony.com/doc/current/cmf/cookbook/editions/cmf_core.html
Oct 12 '15 #1
0 1288

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: Peter | last post by:
L.S. I am developing a PHP-login script (on Lycos Tripod) that uses Session to pass on variables. Below is the entire (stripped) structure that I use. It opens a page where you can Set and Read...
3
by: cv | last post by:
Hello All, I have used MultipartRequest like the following to upload images. MultipartRequest multi = new MultipartRequest(request, "../webapps/coreprogram/dealerlogos", 1024 * 1024); It...
4
by: Field | last post by:
Hi, the following snippet shows once executed this output: 2 2 I'd have rather expected this output: 2 10
4
by: Das | last post by:
Hi, I have made an application in ASP.net with C#. The application works fine with localhost. I have uploaded the site. I'm using web user controls in the form. but some of the button do not work...
7
by: Tom | last post by:
Hi Is this a conditional ? what is the structure of the statement? ch Tom
10
by: Antoine | last post by:
I can't work out what is causing this problem. Can anyone suggest what the typical causes beyond the obvious might be? Could you get it with datasets? Maybe I should run in debug mode and test...
5
by: Jason | last post by:
I've got a small form (400 X 310) and I want it to start up in the lower right corner of the screen. Is there a way I can easily do this? Thanks
1
by: Newbie in ChiTown | last post by:
Here's my code: I am using MS Access and I am trying to update a table (InvoiceDetails) with data input by the user on a form. However, it does not update nor does it give me an error message. ...
11
by: Jim | last post by:
Hi, I want to schedule a Python program that reads the command line for input. However, when adding an argument to the command line Python will not pick it up when using Windows scheduled...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.