How to install SonataAdminBundle on Wamp? - php

I am try to install Sonata Admin Bundle on WAMP . To begin, add the dependent bundles to the vendor/bundles directory. Add the following lines to the file deps.
[SonatajQueryBundle]
git=http://github.com/sonata-project/SonatajQueryBundle.git
target=/bundles/Sonata/jQueryBundle
[SonataUserBundle]
git=http://github.com/sonata-project/SonataUserBundle.git
target=/bundles/Sonata/UserBundle
[SonataAdminBundle]
git=http://github.com/sonata-project/SonataAdminBundle.git
target=/bundles/Sonata/AdminBundle
[KnpMenuBundle]
git=https://github.com/KnpLabs/KnpMenuBundle.git
target=/bundles/Knp/Bundle/MenuBundle
[KnpMenu]
git=https://github.com/KnpLabs/KnpMenu.git
target=/knp/menu
[SonataDoctrineORMAdminBundle]
git=http://github.com/sonata-project/SonataDoctrineORMAdminBundle.git
target=/bundles/Sonata/DoctrineORMAdminBundle
Now problem in install these bundle in vendor. I run this commend php bin/vendors install but it's show Try to run ./bin/vendors install --reinstall
Is there something wrong with my Bundle. I am really not sure what to do about this. Please help.
I appreciate all the help.
Thanks!

You might be using incompatible versions of Symfony and SonataAdminBundle.
Also, you might be missing SonataBlockBundle and SonataCacheBundle which are required with the latest versions of SonataAdminBundle (have a look at the SonataAdmin installation reference). Symfony, SonataAdminBundle and Doctrine2 only work together in specific combinations.
Suggestion: Try the relevant instructions in this tutorial, or better yet, clone this repository and configure it according to the instructions.
You'll have a working install, to which you can then add your existing bundle.

Related

Symfony 2.8 TinyMCE install bundle error

i am on symfony 2.8, and my php version is 5.5.9.
i'm trying to install TINYMCE bundle from composer. I used this command line:
php composer.phar require stfalcon/tinymce-bundle='1.0'
i had this message error:
i tried with v2.0 but same problem.
Have you an idea ?
Thank's a lot for your help.
It would seem that in your composer.json's config section you have platform requirements that conflict with the bundle.
https://getcomposer.org/doc/06-config.md#platform
You could try installing the requirements using the option --ignore-platform-reqs:
composer require stfalcon/tinymce-bundle --ignore-platform-reqs
composer install --ignore-platform-reqs
This will momentarily lift the specified platform requirements. Obviously if they are in place, because they are actually needed - and since they were put there deliberately, at least at some point they were - this might break things on production. So be careful and look at the above option first (updating or removing the platform requirements).
Have you tried either of these two commands:
composer.phar require stfalcon/tinymce-bundle='1.0'
composer require stfalcon/tinymce-bundle='1.0'
I'm not sure if it will make a difference, but it might.

Is it possible to install Doctrine without PEAR or Composer? If so, how?

My hosting provider doesn't allow using Composer or PEAR. Doctrine manual doesn't mention any other way of installing it.
How do I install Doctrine without using PEAR or Composer?
You can visit this page https://github.com/doctrine/doctrine2 and then Download ZIP at the right side of the page. Additional Doctrine related stuff can be found here https://github.com/doctrine and here https://github.com/l3pp4rd/DoctrineExtensions
EDIT: you can also install your vendors with composer locally and upload your vendor folder with your app when you have a production ready version.
You can use PEAR to install the packages locally and then ftp/scp it up to your host: http://pear.php.net/manual/en/installation.shared.php
This way you can use PEAR locally and don't need it on your server.

How to checkout old Symfony 2.0.23 version with Vendors

I'm trying to update the old server, which runs Symfony 2.0.X and vendors to the latest version 2.0.23 with Vendors.
Unfortunatelly I can't find anywhere I can find Symfony 2.0.23 with vendors. On official site:
http://symfony.com/download
And on GitHub:
https://github.com/symfony/symfony/releases/tag/v2.0.23
None of them have a version with Vendors. The download is only about 180 KiB. While version with Vendors is About 8 MiB.
Also, can I use Symfony 2.0.23 and vendors folder from Symfony 2.3.1 ? Is that compatible.
Also, maybe anyone heard about "Export" option for Git and Windows 8, or at least Ubuntu, so I could "Export" vendors from our "old Symfony version with Vendors"?
Thank you guys :)
What about downloading the corresponding deps and deps.lock files from the Symfony Standard Edition v2.0.23 and run bin/vendors locally?
Then export the project using git archive -o latest.zip HEAD (see this question). This will keep off all those .git directories. You may need to touch your .gitignore and/or .gitattributes file to be sure that the vendors aren't excluded on archiving.
Chances are very unlikely that you can run Symfony 2.0.23 with the vendor directory from 2.3.1
If you need to use Symfony 2.0.23 then its probably easiest to use composer.
Otherwise, I know they keep an archive of previous versions on the Symfony website but I'm pretty sure they do not include the vendor directory.

Which version of gedmo should I specify for Doctrine 2.1.7 with symofny2.0.15?

My Bash refuse to process to a databse update since I've installed gedmo for S2.
I'm wondering if its because I've installed the wrong version of Gedmo.
I have Doctrine 2.1.7 and i need to install the 2.1.x version of gedmo-doctrine-extensions how can specify this to my deps file ?
For now I have
[gedmo-doctrine-extensions]
git=http://github.com/l3pp4rd/DoctrineExtensions.git
But when trying to enter the doctrine:schema:update --force command, I have "Class 'Doctrine\Common\Persistence\Mapping\Driver\DefaultFileLocator' not found in (my path)\vendor\gedmo-doctrine-extension\lib\Gedmo\Mapping\ExtensionMetadataFactory.php on line 170"
So i'm assuming it is due to the version of gedmo I use, Am I Right ?
I'm using 2.3.0 version for my project based on Symfony 2.0.15 and Doctrine 2.1.7
[gedmo-doctrine-extensions]
git=http://github.com/l3pp4rd/DoctrineExtensions.git
version=v2.3.0
Anyhow you can look on http://github.com/l3pp4rd/DoctrineExtensions.git to see what version you want/need and add it into your deps file under version option.
P.S. I guess you already know, but when you add version info into your deps file, you need to run vendors script, or if you're using composer use it to update dependencies.

Star plugins for Symfony

I use Symfony 1.4.12 .
If i install http://www.symfony-project.org/plugins/sfWidgetFormJqueryRatingPlugin or http://www.symfony-project.org/plugins/mpStarRatingPlugin
i have error:
You try to install a symfony 1.0 plugin.
Please read the help message of this task to know how to install a plugin for the current version of symfony.
previously without a problem i installed sfGuardDoctrinePlugin. How can i fix it?
It seems that the package was not updated. Did you tried to use the svn trunk version?

Categories