Giter Club home page Giter Club logo

cmf-sandbox's Introduction

This repository is no longer maintained

Due to lack of interest, we had to decide to discontinue this repository. The CMF project focusses on the Routing component and RoutingBundle, which are still in active use by other projects.

This repository will no longer be upgraded and marked as abandoned, but will be kept available for legacy projects or if somebody wants to experiment with the CMF.

You can contact us in the #symfony_cmf channel of the Symfony devs slack.

Symfony Content Management Framework Sandbox

Build Status StyleCI Dependency Status

This sandbox is a testing ground for the cmf bundles being developed.

It is based on the Symfony Standard edition and adds all cmf related bundles on top of the standard edition bundles.

Link to the live demo

Getting started

You can run the sandbox on your system, or in a virtualbox VM using Vagrant. For the latter, see "Getting started using Vagrant"

You will need:

  • PHP 5.3.9+ (with intl extension)
  • PHPUnit 3.6+ (optional)
  • Composer

Initial setup and configuration

git clone git://github.com/symfony-cmf/cmf-sandbox.git
cd cmf-sandbox
curl -s http://getcomposer.org/installer | php --
php composer.phar install

At the end of the installation you will be interactively asked several configuration questions. Note that by default you will end up with a configuration using SQLite and Doctrine DBAL for storage. If you want to adjust the configuration to use Jackrabbit please look at the following section.

Install and run Apache JackRabbit

Follow the guide in the Jackalope Wiki. You can also use a different PHPCR implementation but this is the most solid implementation.

Once you have that, copy the default jackalope-jackrabbit configuration file, adjust it as needed and install the dependencies with composer:

cp app/config/phpcr_jackrabbit.yml.dist app/config/phpcr.yml

The last command will fetch the main project and all its dependencies (CMF Bundles, Symfony, Doctrine\PHPCR, Jackalope ... ). You might want to have a look at the app/config/parameters.yml and adjust as needed.

Install the Doctrine DBAL provider (optional)

Instead of phpcr_jackrabbit.yml.dist, use the phpcr_doctrine_dbal*.yml.dist files and create the database accordingly. If you have the PHP sqlite extension available, this is the simplest to quickly try out the CMF. Copy the file and then install the dependencies:

cp app/config/phpcr_doctrine_dbal.yml.dist app/config/phpcr.yml

The Doctrine DBAL implementation is installed by default already along side the Jackrabbit implementation.

To disable the meta data and node cache for debugging comment the caches settings in the phpcr.yml.

Then, create the database and tables and set up the default workspace using:

php bin/console doctrine:database:create
php bin/console doctrine:phpcr:init:dbal --force

Prepare the PHPCR repository

First you need to create a workspace that will hold the data for the sandbox. The default parameters.yml defines the workspace to be 'default'. You can change this of course. If you do, f.e. to 'sandbox, also run the following command:

php bin/console doctrine:phpcr:workspace:create sandbox

Once your workspace is set up, you need to register the node types for PHPCR-ODM:

php bin/console doctrine:phpcr:repository:init

Import the fixtures

The admin backend is still in an early stage. Until it improves, the easiest is to programmatically create data. The best way to do that is with the doctrine data fixtures. The DoctrinePHPCRBundle included in the symfony-cmf repository provides a command to load fixtures:

php bin/console -v doctrine:phpcr:fixtures:load

Run this to load the fixtures from the Sandbox AppBundle.

Setup filesystem permissions

As with any Symfony2 installation, you need to set up some filesystem permissions. A good guide is in the Symfony2 installation guide. If you use the default setup, an sqlite database will be created at app/app.sqlite. You need to set up permissions for this file and the app/ folder with the method you chose from the installation guide.

If you just want to move on and try out the sandbox for now, you can run:

sudo chmod -R 777 app/

Access by web browser

Create an apache virtual host entry along the lines of:

<Virtualhost *:80>
    Servername cmf.lo
    DocumentRoot /path/to/symfony-cmf/cmf-sandbox/web
    <Directory /path/to/symfony-cmf/cmf-sandbox>
        AllowOverride All
    </Directory>
</Virtualhost>

And add an entry to your hosts file for cmf.lo

If you are running Symfony2 for the first time, run http://cmf.lo/config.php to ensure your system settings have been setup inline with the expected behaviour of the Symfony2 framework.

Note however that "Configure your Symfony Application online" is not supported in the sandbox.

Then point your browser to http://cmf.lo/app_dev.php

Production environment

In order to run the sandbox in production mode at http://cmf.lo/ you need to generate the doctrine proxies and dump the assetic assets:

php bin/console cache:warmup --env=prod --no-debug
php bin/console assetic:dump --env=prod --no-debug

Getting started using Vagrant

please checkout the README.md in the vagrant/ folder of the project

Other hints

Console

The PHPCR ODM Bundle provides a couple of useful commands in the doctrine:phpcr namespace. Type bin/console to see them all.

Admin interface

There is a proof-of-concept admin interface using the SonataPhpcrAdminBundle at http://cmf.lo/app_dev.php/admin/dashboard

Basically you have paginated lists for two types of documents. You create new documents, edit and delete them. Some filtering is available in the list. This bundle is an implementation of Sonata Admin Bundle

At the moment there is no notion of parents and sons in the admin bundle.

Run the test suite

Functional tests are written with PHPUnit. Note that Bundles and Components are tested independently:

php bin/console doctrine:phpcr:workspace:create sandbox_test
phpunit -c app

Remove demo configuration

If you start a project from the sandbox, remove .sensiolabs.yml as its not a good example for production use.

cmf-sandbox's People

Contributors

benoitpointet avatar bergie avatar brki avatar christiaan avatar colinfrei avatar dantleech avatar dbu avatar electricmaxxx avatar fabian avatar frne avatar jakuza avatar lsmith77 avatar m3co-code avatar mweimerskirch avatar nacmartin avatar oker1 avatar pborreli avatar petesiss avatar podlebar avatar regisg27 avatar rmsint avatar rndstr avatar saithis avatar sjopet avatar tomde avatar uwej711 avatar vtdave avatar waldvogel avatar wouterj avatar yoavl avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cmf-sandbox's Issues

Vagrant setup error

While trying to setup CMF-Sandbox as described in the readme I get error on the Vagrant config.

nostrzak@NOSTRZAK-PC /c/xampplite/htdocs/cmf-sandbox/vagrant (master)
$ vagrant up
You are using a feature that has been removed in this version. Explanation:

`config.vm.customize` now takes an array of arguments to send to
`VBoxManage` instead of having a block which gets a virtual machine
 object. Example of the new usage:

      config.vm.customize ["modifyvm", :id, "--memory", "1024"]

The above will run `VBoxManage modifyvm 1234 --memory 1024` where
"1234" is the ID of your current virtual machine. Anything you could
do before is certainly still possible with `VBoxManage` as well.

Note that this error message will not appear in the next version of Vagrant.

CC: @oker1

Cannot install the sandbox

Hello,

I try that

git clone git://github.com/symfony-cmf/cmf-sandbox.git
cd cmf-sandbox
# copy parameters template and edit as needed
cp app/config/parameters.yml.dist app/config/parameters.yml
cp app/config/phpcr_jackrabbit.yml.dist app/config/phpcr.yml
curl -s http://getcomposer.org/installer | php --
# if you run with --dev, will install midgard too
php composer.phar install

I obtain that

Installing dependencies from lock file
Your lock file is out of sync with your composer.json, run "composer.phar update" to update dependencies
Your requirements could not be solved to an installable set of packages.

  Problem 1
    - Installation request for jackalope/jackalope-jackrabbit == 1.0.9999999.9999999-dev -> satisfiable by jackalope/jackalope-jackrabbit 1.0.x-dev.
    - jackalope/jackalope-jackrabbit 1.0.x-dev requires ext-curl * -> no matching package found.
  Problem 2
    - Installation request for jackalope/jackalope-jackrabbit == 9999999-dev -> satisfiable by jackalope/jackalope-jackrabbit dev-master.
    - jackalope/jackalope-jackrabbit dev-master requires ext-curl * -> no matching package found.

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.

After I try that :

composer.phar update

Obtain that:

Your requirements could not be solved to an installable set of packages.

  Problem 1
    - The requested package symfony/symfony 2.1.* could not be found.
  Problem 2
    - The requested package symfony-cmf/symfony-cmf 1.0.* could not be found.
  Problem 3
    - The requested package symfony-cmf/simple-cms-bundle 1.0.* could not be found.
  Problem 4
    - The requested package jackalope/jackalope-jackrabbit 1.0.* could not be found.
  Problem 5
    - The requested package sonata-project/doctrine-phpcr-admin-bundle 1.0.* could not be found.
  Problem 6
    - Installation request for symfony/assetic-bundle dev-master -> satisfiable by symfony/assetic-bundle dev-master.
    - symfony/assetic-bundle dev-master requires symfony/framework-bundle 2.1.* -> no matching package found.
  Problem 7
    - Installation request for symfony/swiftmailer-bundle dev-master -> satisfiable by symfony/swiftmailer-bundle dev-master.
    - symfony/swiftmailer-bundle dev-master requires symfony/swiftmailer-bridge 2.1.* -> no matching package found.
  Problem 8
    - Installation request for symfony/monolog-bundle dev-master -> satisfiable by symfony/monolog-bundle dev-master.
    - symfony/monolog-bundle dev-master requires symfony/monolog-bridge 2.1.* -> no matching package found.
  Problem 9
    - Installation request for sensio/distribution-bundle dev-master -> satisfiable by sensio/distribution-bundle dev-master.
    - sensio/distribution-bundle dev-master requires symfony/framework-bundle 2.1.* -> no matching package found.
  Problem 10
    - Installation request for sensio/framework-extra-bundle dev-master -> satisfiable by sensio/framework-extra-bundle dev-master.
    - sensio/framework-extra-bundle dev-master requires symfony/framework-bundle 2.1.* -> no matching package found.
  Problem 11
    - Installation request for sensio/generator-bundle dev-master -> satisfiable by sensio/generator-bundle dev-master.
    - sensio/generator-bundle dev-master requires symfony/framework-bundle 2.1.* -> no matching package found.
  Problem 12
    - Installation request for doctrine/doctrine-bundle dev-master -> satisfiable by doctrine/doctrine-bundle dev-master.
    - doctrine/doctrine-bundle dev-master requires symfony/framework-bundle 2.1.* -> no matching package found.
  Problem 13
    - Installation request for doctrine/doctrine-fixtures-bundle dev-master -> satisfiable by doctrine/doctrine-fixtures-bundle dev-master.
    - doctrine/doctrine-fixtures-bundle dev-master requires symfony/doctrine-bridge 2.1.* -> no matching package found.
  Problem 14
    - friendsofsymfony/rest-bundle 0.7.0 requires friendsofsymfony/rest 0.7.* -> no matching package found.
    - friendsofsymfony/rest-bundle 0.6.0 requires friendsofsymfony/rest * -> no matching package found.
    - liip/vie-bundle dev-master requires friendsofsymfony/rest-bundle * -> satisfiable by friendsofsymfony/rest-bundle 0.6.0, friendsofsymfony/rest-bundle 0.7.0.
    - Installation request for liip/vie-bundle dev-master -> satisfiable by liip/vie-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.

Got Exception in route edit

Going editing a route in the admin:

http://cmf.lo/app_dev.php/admin/bundle/routingextra/route//cms/routes/en/company/team/edit

I get this error:

The option "rootNode" does not exist. Known options are: "attr", "by_reference", "cascade_validation", "choice_list", "choices", "class", "compound", "constraints", "csrf_field_name", "csrf_protection", "csrf_provider", "data", "data_class", "disabled", "empty_data", "error_bubbling", "error_mapping", "extra_fields_message", "intention", "invalid_message", "label", "label_attr", "mapped", "max_length", "model_manager", "parent", "pattern", "post_max_size_message", "preferred_choices", "property", "property_path", "query", "read_only", "required", "root_node", "select_root_node", "sonata_admin", "sonata_field_description", "template", "translation_domain", "trim", "validation_constraint", "validation_groups", "virtual"

I'm using php 5.4 and latest trees.
Any other got this error?

design cleanup

make a decent sandbox design. currently it requires a very wide screen and does not adapt.

documentation todo

This is more a todo to myself, I'll do a PR for this when I get time.

I was just stuck for two hours on the following. I was trying to to create a menu item to point to my document. I didn't realize my Document had to implement RouteAwareInterface (also have a getRoutes() method) and as a result the menu generator was throwing an exception with the most bizzare error message. This has to go into a readme, somewhere.

ErrorException after installing cmf-sandbox

Hi

I am following the README to install the cmf-sandbox. I have got as far as the section "Access by web browser", but when I try to load up the page, I get an error:

Warning: DOMDocument::loadXML() [domdocument.loadxml]: Space required after the Public Identifier in Entity, line: 1 in /Users/barry/cmf-sandbox/vendor/symfony-cmf/vendor/doctrine-phpcr-odm/lib/vendor/jackalope/src/Jackalope/Transport/Jackrabbit/Request.php line 530

Anybody else had a problem with this?

Thanks in advance

Barry

Enabling sensio framework extra bundle causes autoloader problems

re: #81

If you enable the sensio framework extra bundle in cmf, all sorts of bizzare things happen. Sometimes you get 'class already declared' as the autoloader tries to re-load a class that already exists. I think that it may be because of some case sensitive class names being loaded from routes in jackrabbit. Try enabling it and you'll notice straight away the site breaks in numerous ways.

problem with Sandbox installation when running Composer

Hi

I have tried to set up the Sandbox this morning, and I get a similar message to issue #86 when I run composer. It appears to load everything and then says the following:

Writing lock file
Generating autoload files
fatal: Needed a single revision
Unable to find current revision in submodule path 'Resources/public/vendor/create'
Running git submodule --init --recursive failed with 1
#86

Fixtures contradiction with assertion in StaticContent

Error when loading fixtures (flushNoSave related)

When running

app/console -v doctrine:phpcr:fixtures:load --path=src/Sandbox/MainBundle/Resources/data/fixtures/ --purge=true

[1]

Throws this error:

Call to undefined method Doctrine\ODM\PHPCR\DocumentManager::flushNoSave() in cmf-sandbox/src/Sandbox/MainBundle/Resources/data/fixtures/005_LoadStaticPageData.php on line 51

That line contains the instruction $manager->flushNoSave() , but flushNoSave() was removed from ODM in this commit:

https://github.com/doctrine/phpcr-odm/commit/ce8fd9274875ef1e019bfaac1c5f9e931f7b1e7b#lib/Doctrine/ODM/PHPCR/DocumentManager.php

So, the question is what to do with that flushNoSave. I am not familiarized with this, hope this helps.

[1] actually the command in the README was phpcr:fixtures:load, that should be updated to doctrine:phpcr:fixtures:load

"php composer.phar install --dev" fails

Installing dev dependencies
Your requirements could not be solved to an installable set of packages.

Problems:
    - Problem caused by:
        - Installation of package "midgard/phpcr" with constraint == 9999999-dev was requested. Satisfiable by packages [midgard/phpcr-9999999-dev].
        - Package "midgard/phpcr-9999999-dev" contains the rule midgard/phpcr requires ext-midgard2 (>= 10.05.5.0). No package satisfies this dependency.

Works fine without the --dev

Purge command/fixtures problem

While installing the cmf-sandbox I've noticed two issues:

  1. The command for importing fixtures doesn't work with --purge option
    app/console -v doctrine:phpcr:fixtures:load --path=src/Sandbox/MainBundle/Resources/data/fixtures/ --purge=true

The problem is that it's trying to purge the "/rep:policy" node, which seems to be a system node. It throws [PHPCR\NodeType\ConstraintViolationException]
HTTP 409: Unable to perform operation. Node is protected

While debugging, I tried to use doctrine:phpcr:purge command to test purging. It also didn't work. I've fixed that by changing isSystemNode method in NodeHelper to the following:

return preg_match('/^(jcr|rep):/', $node->getName());

The doctrine:phpcr:purge started to work.

  1. It turned out that the doctrine:phpcr:fixtures:load command with --purge option use a separate implementation of purge, found in PHPCRPurger class. Seems like it should be refactored to use NodeHelper.

dependency on a non-existent service "jackalope.loader"

bin/vendors.sh ends with this error :
[Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException] The service "symfony_cmf_core.filehelper" has a dependency on a non-existent service "jackalope.loader".

SimpleCmsBundle revision

@dbu

I noticed in IRC overnight that a few others got stung by the same thing as me when updating to the current cmf-sandbox release, you'll need to update the composer.lock file to have the simple cms bundle revision point to symfony-cmf/simple-cms-bundle@1aa9ecd

The typo with the lowercase 'bundle' is causing confusing errors, and if anyone tries to run composer.phar update they're updated to a revision of sonata admin bundle that has BC breaks.

Problem installing Doctrine DBAL provider

When I try to install Doctrine DBAL provider I get the following error after execute "php composer.phar update"

PHP Fatal error:  Class JMS\DiExtraBundle\Config\FastDirectoriesResource contains 5 abstract methods and must 
therefore be declared abstract or implement the remaining methods     
(Symfony\Component\Config\Resource\ResourceInterface::getModificationTime, 
Symfony\Component\Config\Resource\ResourceInterface::exists,   
Symfony\Component\Config\Resource\ResourceInterface::getId, ...) in .../cmf-sandbox/vendor/jms/di-extra-
bundle/JMS/DiExtraBundle/Config/FastDirectoriesResource.php on line 78

Cannot load fixtures

When trying:
app/console -v phpcr:fixtures:load --path=src/Sandbox/MainBundle/Resources/data/fixtures/ --purge=true

The following error shows:


[ErrorException]                                                                                                                                                                                              
  16384: Use Session::refresh instead, this method is extremely unsafe in /home/reinoud/sites/cmf-sandbox/vendor/symfony-cmf/vendor/doctrine-phpcr-odm/lib/vendor/jackalope/src/Jackalope/Session.php line 539  
                                                                                                                                                                                                                
Exception trace:
 () at /home/reinoud/sites/cmf-sandbox/vendor/symfony/src/Symfony/Component/HttpKernel/Debug/ErrorHandler.php:65
 Symfony\Component\HttpKernel\Debug\ErrorHandler->handle() at n/a:n/a
 trigger_error() at /home/reinoud/sites/cmf-sandbox/vendor/symfony-cmf/vendor/doctrine-phpcr-odm/lib/vendor/jackalope/src/Jackalope/Session.php:539
 Jackalope\Session->clear() at /home/reinoud/sites/cmf-sandbox/src/Sandbox/MainBundle/Resources/data/fixtures/005_LoadStaticPageData.php:61
 Sandbox\MainBundle\Resources\data\fixtures\LoadStaticPageData->load() at /home/reinoud/sites/cmf-sandbox/vendor/doctrine-data-fixtures/lib/Doctrine/Common/DataFixtures/Executor/AbstractExecutor.php:94
 Doctrine\Common\DataFixtures\Executor\AbstractExecutor->load() at /home/reinoud/sites/cmf-sandbox/vendor/symfony-cmf/src/Symfony/Cmf/Bundle/PhpcrCommandsBundle/Helper/Fixtures/PHPCRExecutor.php:48
 Symfony\Cmf\Bundle\PhpcrCommandsBundle\Helper\Fixtures\PHPCRExecutor->execute() at /home/reinoud/sites/cmf-sandbox/vendor/symfony-cmf/src/Symfony/Cmf/Bundle/PhpcrCommandsBundle/Command/LoadFixtureCommand.php:76
 Symfony\Cmf\Bundle\PhpcrCommandsBundle\Command\LoadFixtureCommand->execute() at /home/reinoud/sites/cmf-sandbox/vendor/symfony/src/Symfony/Component/Console/Command/Command.php:214
 Symfony\Component\Console\Command\Command->run() at /home/reinoud/sites/cmf-sandbox/vendor/symfony/src/Symfony/Component/Console/Application.php:194
 Symfony\Component\Console\Application->doRun() at /home/reinoud/sites/cmf-sandbox/vendor/symfony/src/Symfony/Bundle/FrameworkBundle/Console/Application.php:75
 Symfony\Bundle\FrameworkBundle\Console\Application->doRun() at /home/reinoud/sites/cmf-sandbox/vendor/symfony/src/Symfony/Component/Console/Application.php:118
 Symfony\Component\Console\Application->run() at /home/reinoud/sites/cmf-sandbox/app/console:16


phpcr:fixtures:load [--path="..."] [--purge[="..."]]

When commenting the 'trigger_error' in line 539 out and trying to load the fixtures again to see if that helps the next error shows:


                                                                                                                                                                               
  [ErrorException]                                                                                                                                                             
  Notice: Undefined index: Node in /home/reinoud/sites/cmf-sandbox/vendor/symfony-cmf/vendor/doctrine-phpcr-odm/lib/vendor/jackalope/src/Jackalope/ObjectManager.php line 792  
                                                                                                                                                                               


Exception trace:
 () at /home/reinoud/sites/cmf-sandbox/vendor/symfony/src/Symfony/Component/HttpKernel/Debug/ErrorHandler.php:65
 Symfony\Component\HttpKernel\Debug\ErrorHandler->handle() at /home/reinoud/sites/cmf-sandbox/vendor/symfony-cmf/vendor/doctrine-phpcr-odm/lib/vendor/jackalope/src/Jackalope/ObjectManager.php:792
 Jackalope\ObjectManager->refresh() at /home/reinoud/sites/cmf-sandbox/vendor/symfony-cmf/vendor/doctrine-phpcr-odm/lib/vendor/jackalope/src/Jackalope/Session.php:527
 Jackalope\Session->refresh() at /home/reinoud/sites/cmf-sandbox/vendor/symfony-cmf/vendor/doctrine-phpcr-odm/lib/Doctrine/ODM/PHPCR/DocumentManager.php:416
 Doctrine\ODM\PHPCR\DocumentManager->clear() at /home/reinoud/sites/cmf-sandbox/vendor/doctrine-data-fixtures/lib/Doctrine/Common/DataFixtures/Executor/AbstractExecutor.php:95
 Doctrine\Common\DataFixtures\Executor\AbstractExecutor->load() at /home/reinoud/sites/cmf-sandbox/vendor/symfony-cmf/src/Symfony/Cmf/Bundle/PhpcrCommandsBundle/Helper/Fixtures/PHPCRExecutor.php:48
 Symfony\Cmf\Bundle\PhpcrCommandsBundle\Helper\Fixtures\PHPCRExecutor->execute() at /home/reinoud/sites/cmf-sandbox/vendor/symfony-cmf/src/Symfony/Cmf/Bundle/PhpcrCommandsBundle/Command/LoadFixtureCommand.php:76
 Symfony\Cmf\Bundle\PhpcrCommandsBundle\Command\LoadFixtureCommand->execute() at /home/reinoud/sites/cmf-sandbox/vendor/symfony/src/Symfony/Component/Console/Command/Command.php:214
 Symfony\Component\Console\Command\Command->run() at /home/reinoud/sites/cmf-sandbox/vendor/symfony/src/Symfony/Component/Console/Application.php:194
 Symfony\Component\Console\Application->doRun() at /home/reinoud/sites/cmf-sandbox/vendor/symfony/src/Symfony/Bundle/FrameworkBundle/Console/Application.php:75
 Symfony\Bundle\FrameworkBundle\Console\Application->doRun() at /home/reinoud/sites/cmf-sandbox/vendor/symfony/src/Symfony/Component/Console/Application.php:118
 Symfony\Component\Console\Application->run() at /home/reinoud/sites/cmf-sandbox/app/console:16


phpcr:fixtures:load [--path="..."] [--purge[="..."]]

Followed the readme and using Jackalope 2.2.8.

be more robust against invalid data

the sandbox was down with fatal error. i found this in the logfile, we should try if we can survive something like this.

[2012-06-21 13:52:47] request.CRITICAL: Twig_Error_Runtime: An exception has been thrown during the rendering of a template ("Internal error: path valid but not properly encoded: /cms/menu/main/projects-item/cmf-item/Fuuuuuu%20!-item") in "SandboxMainBundle::skeleton.html.twig" at line 72. (uncaught exception) at /var/www/cmf-sandbox/app/cache/prod/classes.php line 9197

Refactor duplication away

CRUD/edit.html.twig and CRUD/list.html.twig are strongly overlapped. It must be made in a cleaner way.

Can't install all vendors, no access to Liip/VieBundle

Installing/Updating VieBundle
Cloning into /home/mhe/web/cmf-sandbox/vendor//bundles/Liip/VieBundle...
Permission denied (publickey).
fatal: The remote end hung up unexpectedly
cd: 1: can't cd to /home/mhe/web/cmf-sandbox/vendor//bundles/Liip/VieBundle

Why there is no label visible at adminpanel?

After my first install of the cmf-sandbox was testing my installation and want to create a new content. But this is very difficult because of the missing field labels.
I've also check that with the current cmf demo page. There also are the field labels invisible. Why that?

Fatal error in production environment

After fresh install I get the following error when accessing main page

PHP Fatal error: Class 'PHPCRProxies\SandboxMainBundleDocumentEditableStaticContentReferenceProxy' not found in /home/pentarim/webdev/symfony2/cmftest/vendor/symfony-cmf/vendor/doctrine-phpcr-odm/lib/Doctrine/ODM/PHPCR/Proxy/ProxyFactory.php on line 94

When accessing the main page in dev environment there is no such error.

suggested tags don't include obvious ones

  • the text contains this paragraph:

"In October 1855 Victor Hugo arrived on rainy, wind-swept Guernsey seeking refuge. A fierce opponent of the Second Empire of Napoleon III, he had been banished first from his native France, and then Belgium and the island of Jersey. By the time he landed on this small neighboring island in the English Channel, the exiled writer was in desperate need of asylum."

  • the auto suggested tags don't include the most obvious ones like "Victor Hugo" and "Guernsey"

Error importing fixtures

Hello!

when I try to import fixtures with the command

app/console -v doctrine:phpcr:fixtures:load

i get this error:

purging database
loading [5] Sandbox\MainBundle\DataFixtures\PHPCR\LoadStaticPageData
loading [10] Sandbox\MainBundle\DataFixtures\PHPCR\LoadMenuData
PHP Fatal error: Call to undefined method Symfony\Cmf\Bundle\MultilangContentBundle\Document\MultilangMenuItem::setPath() in /var/www/cmf-sandbox/src/Sandbox/MainBundle/DataFixtures/PHPCR/LoadMenuData.php on line 81

Fatal error: Call to undefined method Symfony\Cmf\Bundle\MultilangContentBundle\Document\MultilangMenuItem::setPath() in /var/www/cmf-sandbox/src/Sandbox/MainBundle/DataFixtures/PHPCR/LoadMenuData.php on line 81

Thanks!

Unable to save document with child of type File

This branch demonstrates a problem with trying to save a document with a child node of type Doctrine\ODM\PHPCR\Document\File:

https://github.com/brki/cmf-sandbox/tree/phpcrodm-file-issue

Somehow, Doctrine/ODM/PHPCR/Mapping/Driver/DriverChain should know about Doctrine\ODM\PHPCR\Document\File, but it doesn't.
It seems to me that it should "just work". Or perhaps I'm missing some configuration option?

It seems to me that the DoctrinePHPCRBundle may have to do something to make it work(e.g. add the Driver entry for File), but I couldn't see where that should happen. Perhaps I'm on the wrong track, though.

Running the command
app/console -v phpcr:fixtures:load --path=src/Sandbox/MainBundle/Resources/data/fixtures/ --purge=true
results in


  [Doctrine\ODM\PHPCR\Mapping\MappingException]                                          
  Class Doctrine\ODM\PHPCR\Document\File is not a valid document or mapped super class.  



Exception trace:
 () at /private/var/www/cmf-sandbox/vendor/symfony-cmf/vendor/doctrine-phpcr-odm/lib/Doctrine/ODM/PHPCR/Mapping/MappingException.php:40
 Doctrine\ODM\PHPCR\Mapping\MappingException::classIsNotAValidDocument() at /private/var/www/cmf-sandbox/vendor/symfony-cmf/vendor/doctrine-phpcr-odm/lib/Doctrine/ODM/PHPCR/Mapping/Driver/DriverChain.php:59
 Doctrine\ODM\PHPCR\Mapping\Driver\DriverChain->loadMetadataForClass() at /private/var/www/cmf-sandbox/vendor/symfony-cmf/vendor/doctrine-phpcr-odm/lib/Doctrine/ODM/PHPCR/Mapping/ClassMetadataFactory.php:228
 Doctrine\ODM\PHPCR\Mapping\ClassMetadataFactory->loadMetadata() at /private/var/www/cmf-sandbox/vendor/symfony-cmf/vendor/doctrine-phpcr-odm/lib/Doctrine/ODM/PHPCR/Mapping/ClassMetadataFactory.php:199
 Doctrine\ODM\PHPCR\Mapping\ClassMetadataFactory->getMetadataFor() at /private/var/www/cmf-sandbox/vendor/symfony-cmf/vendor/doctrine-phpcr-odm/lib/Doctrine/ODM/PHPCR/DocumentManager.php:135
 Doctrine\ODM\PHPCR\DocumentManager->getClassMetadata() at /private/var/www/cmf-sandbox/vendor/symfony-cmf/vendor/doctrine-phpcr-odm/lib/Doctrine/ODM/PHPCR/UnitOfWork.php:355
 Doctrine\ODM\PHPCR\UnitOfWork->cascadeScheduleInsert() at /private/var/www/cmf-sandbox/vendor/symfony-cmf/vendor/doctrine-phpcr-odm/lib/Doctrine/ODM/PHPCR/UnitOfWork.php:324
 Doctrine\ODM\PHPCR\UnitOfWork->doScheduleInsert() at /private/var/www/cmf-sandbox/vendor/symfony-cmf/vendor/doctrine-phpcr-odm/lib/Doctrine/ODM/PHPCR/UnitOfWork.php:293
 Doctrine\ODM\PHPCR\UnitOfWork->scheduleInsert() at /private/var/www/cmf-sandbox/vendor/symfony-cmf/vendor/doctrine-phpcr-odm/lib/Doctrine/ODM/PHPCR/DocumentManager.php:245
 Doctrine\ODM\PHPCR\DocumentManager->persist() at /private/var/www/cmf-sandbox/src/Sandbox/MainBundle/Resources/data/fixtures/040_LoadTeamMemberData.php:53
 Sandbox\MainBundle\Resources\data\fixtures\LoadSTeamMemberData->load() at /private/var/www/cmf-sandbox/vendor/doctrine-data-fixtures/lib/Doctrine/Common/DataFixtures/Executor/AbstractExecutor.php:94
 Doctrine\Common\DataFixtures\Executor\AbstractExecutor->load() at /private/var/www/cmf-sandbox/vendor/symfony-cmf/src/Symfony/Cmf/Bundle/PhpcrCommandsBundle/Helper/Fixtures/PHPCRExecutor.php:48
 Symfony\Cmf\Bundle\PhpcrCommandsBundle\Helper\Fixtures\PHPCRExecutor->execute() at /private/var/www/cmf-sandbox/vendor/symfony-cmf/src/Symfony/Cmf/Bundle/PhpcrCommandsBundle/Command/LoadFixtureCommand.php:76
 Symfony\Cmf\Bundle\PhpcrCommandsBundle\Command\LoadFixtureCommand->execute() at /private/var/www/cmf-sandbox/vendor/symfony/src/Symfony/Component/Console/Command/Command.php:214
 Symfony\Component\Console\Command\Command->run() at /private/var/www/cmf-sandbox/vendor/symfony/src/Symfony/Component/Console/Application.php:194
 Symfony\Component\Console\Application->doRun() at /private/var/www/cmf-sandbox/vendor/symfony/src/Symfony/Bundle/FrameworkBundle/Console/Application.php:75
 Symfony\Bundle\FrameworkBundle\Console\Application->doRun() at /private/var/www/cmf-sandbox/vendor/symfony/src/Symfony/Component/Console/Application.php:118
 Symfony\Component\Console\Application->run() at /private/var/www/cmf-sandbox/app/console:16

Compact TreeBundle configuration

Configuration now assumes lots of things not supposed to change. Most of it can then be hidden from standard development.
The goal is to just provide Symfony routes packed up in a Javascript object.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.