GithubHelp home page GithubHelp logo

sonata-project / sandbox Goto Github PK

View Code? Open in Web Editor NEW
268.0 44.0 198.0 38.98 MB

[Abandoned] Sonata Project's sandbox

Home Page: https://sonata-project.org

License: MIT License

Shell 1.57% Makefile 0.55% PHP 55.95% Gherkin 29.96% CSS 0.79% JavaScript 0.25% Dockerfile 0.07% Batchfile 0.02% Twig 10.84%
php sonata symfony

sandbox's Introduction

Sonata Sandbox

WARNING: This repository is abandoned

There is no active support on it.

Feel free to ask if you want to help to keep this project up to date.

What's inside?

Sonata Sandbox comes pre-configured with the following bundles:

  • Bundles from Symfony Standard distribution
  • Sonata Admin Bundles: Admin and Doctrine ORM Admin
  • Sonata Ecommerce Bundles: Payment, Customer, Invoice, Order and Product
  • Sonata Foundation Bundles: Notification, Formatter, Intl, Cache, Seo and Easy Extends
  • Sonata Feature Bundles: Page, Media, News, User, Block, Timeline
  • Api Bundles: FOSRestBundle, BazingaHateoasBundle, NelmioApiDocBundle and JMSSerializerBundle

Installation

Download sandbox files by one of possible examples

Curl:

curl -L github https://github.com/sonata-project/sandbox-build/archive/master.tar.gz | tar xzv
cd sandbox

Git:

git clone https://github.com/sonata-project/sandbox.git
cd sandbox
git checkout master

Prepare configuration

  • Copy configuration file: cp .env .env.local
  • Edit .env.local to configure own environment

Load fixtures data

vendor/bin/phing
  • You should be ready to go ...

Vagrant Installation

  • vagrant up --provision --provider=virtualbox (Vagrant is going to get the environnement, install it for you and load sonata sample data)
  • Configure your host sudo nano /etc/hosts and add this line 192.168.33.99 sonata.local
  • Open your browser here

Run

If you are running PHP 7.2 or above, you can use symfony to start the demo:

symfony server:start --port=9090

Now open your browser and go to http://localhost:9090/

Tests

Functional testing

To run the Behat tests, copy the default configuration file and adjust the base_url to your needs

  • Copy configuration file: cp behat.yml.dist behat.yml
  • Edit it behat.yml

You can now run the tests suite by using the following command:

bin/qa_behat.sh

To get more informations about Behat, feel free to check the official documentation.

Unit testing

To run the sandbox test suites, you can run the command:

vendor/bin/simple-phpunit

You can also run the whole sonata-project bundles test suites by using the following command:

bin/qa_client_ci.sh

Enjoy!

sandbox's People

Contributors

bdejacobet avatar bladrak avatar dependabot[bot] avatar dunglas avatar dypa avatar eko avatar ekonoval avatar emmanuelvella avatar jordisala1991 avatar koyaan avatar oskarstark avatar pborreli avatar rande avatar sagikazarmark avatar shine-neko avatar sonataci avatar soullivaneuh avatar spolischook avatar srascar avatar stephanepate avatar sylvaindeloux avatar symfou avatar taluu avatar tamayg avatar tiagojsag avatar vincentlanglet avatar vincepaname avatar wbloszyk avatar wharenn avatar xymanek 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

sandbox's Issues

admin logo

I'm noticing on initial page load the logo in the top left is there.. But then a second later it disappears.

http://awesomescreenshot.com/06b9xq88d

I think this has to do that I installed the sandbox app in a subdirectory on my development subdomain...

Its looking for: <img src="/bundles/sonataadmin/logo_title.png" alt="Sonata Project">
when it should be looking elsewhere because this setup really is not a top-level installation, i'm assuming this is happening via ajax style because again I'll mention it happens after about a second of the page being loaded up.

SonataNewsBundle:No page instance available for the url, run the sonata:page:update-core-routes and sonata:page:create-snapshots commands

Hi,

I have some troubles to use the NewsBundle in the sonata sandbox.
First of all, when I was on the link /blog there was a message " message_page_redirected " so I overrided the SonataNewsBundle\PostController by changing the homeAction by :

use Sonata\NewsBundle\Controller\PostController as BaseController;
class PostController extends BaseController
{
/**
* @return RedirectResponse
*/
public function homeAction()
{
return $this->renderArchive();
}
}

It worked. I saw all the news but when I click on a news I am redirected to the page http://my-website/blog/exercitationem-facilis-magnam-exercitationem-ab-omnis
that displays this message:

Sonata Project - Internal Error
No page instance available for the url, run the sonata:page:update-core-routes and sonata:page:create-snapshots commands

Error when loading fixtures

app/console doctrine:fixtures:load

purging database
loading [1] Sonata\Bundle\DemoBundle\DataFixtures\ORM\LoadUserData
loading [2] Sonata\Bundle\DemoBundle\DataFixtures\ORM\LoadMediaData

[PDOException]
SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'name' cannot be
null

doctrine:fixtures:load [--fixtures[="..."]] [--append] [--em="..."] [--purge-with-truncate]

Expand/Collapse link not working

I have installed the sandbox on Ubuntu. Recently I upgraded it using latest composer files. After upgradation, I noticed that the expand/collapse link is not working on any form of the sandbox. I am checking on the Firefox on Ubuntu. When clicked on the "+" sign, entire page gets refreshed without opening the contents for that link.

Error when running php bin/vendors install

Hello,

I am trying to install this project in my win 7 laptop using wamp. When I enter the command "php bin/vendors install" y get the following error:

fatal: Not a git repository: ../.git/modules/vendor/symfony

Installing/Updating symfony
executing : git submodule -q update --init "vendor/symfony"
error: pathspec 'vendor/symfony' did not match any file(s) known to git.
Did you forget to 'git add'?
error: pathspec 'vendor/symfony' did not match any file(s) known to git.
Did you forget to 'git add'?
executing : cd "vendor/symfony" && git fetch -q origin && git reset --hard "0ab776227a0d6586c9f1be379926acaa94f64a01"
fatal: Not a git repository: ../.git/modules/vendor/symfony
PHP Fatal error: Uncaught exception 'RuntimeException' with message 'The command failed cd "vendor/symfony" && git fetch -q origin && git reset --hard "0ab776227a0d6586c9f1be379926acaa94f64a01"' in C:\wamp\www\ESQUELETO\sonata-sandbox\bin\vendors:82
Stack trace:

0 C:\wamp\www\ESQUELETO\sonata-sandbox\bin\vendors(129): exec_command('cd "vendor/symf...')

1 {main}

thrown in C:\wamp\www\ESQUELETO\sonata-sandbox\bin\vendors on line 82

Fatal error: Uncaught exception 'RuntimeException' with message 'The command failed cd "vendor/symfony" && git fetch -q origin && git reset --hard "0ab776227a0d6586c9f1be379926acaa94f64a01"' in C:\wamp\www\ESQUELETO\sonata-sandbox\bin\vendors on line 82

RuntimeException: The command failed cd "vendor/symfony" && git fetch -q origin && git reset --hard "0ab776227a0d6586c9f1be379926acaa94f64a01" in C:\wamp\www\ESQUELETO\sonata-sandbox\bin\vendors on line 82

Call Stack:
0.0012 374680 1. {main}() C:\wamp\www\ESQUELETO\sonata-sandbox\bin\vendors:0
1.8989 407960 2. exec_command() C:\wamp\www\ESQUELETO\sonata-sandbox\bin\vendors:129

What could be wrong? Any ideas?

Thanks.

Unnecessary step in load_data ?

Hi,

In load_data, I can't see the point of doing a bin/vendors install... Indeed, in the deps file, the Symfony framework (and moreover its components) are installed, and then we can use a bin/build_bootstrap.php.

But, in load_data, it seems that it needs the bootstrap (which is not built if we do not first call bin/vendor install and php bin/build_bootstrap.php... or at least the vendors installation) and also some Symfony components like the Symfony Process, ConsoleOutput, FileSystem, ... etc.

That's why I think that in the load_data file, it is kind of useless to make another call to bin/vendors install... As it does absolutely nothing if we had it executed before hand.

Composer.phar missing

Composer.phar is missing and part of the existing gitignore. I'm guessing you don't want it there. If so, docs should be updated. IMO I think it should be included, making sandbox setup faster and more simple

can't install the sandbox

Hi,

I get an error after executing the vendors installation cmd:

sweethome - zazabe@zazabe-laptop - 20:32:40 - 84K /var/www/tests/sandbox (master) 255
$ sudo php bin/vendors install
...
> Installing/Updating Exporter
executing : `git submodule update --init 'vendor//exporter'`
executing : `cd 'vendor//exporter' && git fetch origin && git reset --hard '95f3d6f187ded8e4614f0c3e7e871b79a124b536'`
HEAD is now at 95f3d6f Add support for xls file
sh: /var/www/tests/sandbox/vendor/bundles/Sensio/Bundle/DistributionBundle/Resources/bin/build_bootstrap.php: not found

done!
sweethome - zazabe@zazabe-laptop - 20:33:36 - 84K /var/www/tests/sandbox (master) 0
$

I checked the folder ..Sensio/Bundle/DistributionBundle/Resources/bin/, I have just a build.sh script inside, who also failed:

sweethome - zazabe@zazabe-laptop - 20:36:42 - 84K /var/www/tests/sandbox (master) 15
$ sudo /var/www/tests/sandbox/vendor/bundles/Sensio/Bundle/DistributionBundle/Resources/bin/build.sh
grep: vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php: Aucun fichier ou dossier de ce type
cp: impossible d'รฉvaluer ยซREADME.mdยป: Aucun fichier ou dossier de ce type
cd: 58: can't cd to /tmp/vendor/doctrine/orm
cd: 61: can't cd to /tmp/vendor/doctrine/dbal
cd: 64: can't cd to /tmp/vendor/doctrine/common
cd: 67: can't cd to /tmp/vendor/swiftmailer/swiftmailer
cd: 70: can't cd to /tmp/vendor/symfony/symfony
cd: 73: can't cd to /tmp/vendor/twig/twig
cd: 76: can't cd to /tmp/vendor/twig/extensions
cd: 79: can't cd to /tmp/vendor/monolog/monolog
cd: 82: can't cd to /tmp/vendor/jms/metadata
^@^C

zip error: Interrupted (aborting)

It's seems to be a problem from symfony but I'm a newbie in Sf 2.0 and I have no idea how to solve it...

At the end i get this error when I try to execute a Sf cmd (the error is relative to previous problems i guess...):

sweethome - zazabe@zazabe-laptop - 20:38:12 - 88K /var/www/tests/sandbox (master) 0
$ sudo app/console doctrine:database:create
PHP Warning:  require_once(/var/www/tests/sandbox/app/bootstrap.php.cache): failed to open stream: Aucun fichier ou dossier de ce type in /var/www/tests/sandbox/app/console on line 4
PHP Fatal error:  require_once(): Failed opening required '/var/www/tests/sandbox/app/bootstrap.php.cache' (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/tests/sandbox/app/console on line 4

Catchable Fatal Error

I have installed a fresh copy of sandbox following the instalation documentation and I get this error.

Catchable Fatal Error: Argument 1 passed to Sensio\Bundle\FrameworkExtraBundle\Request\ParamConverter\DoctrineParamConverter::__construct() must be an instance of Doctrine\Common\Persistence\ManagerRegistry, instance of Symfony\Bundle\DoctrineBundle\Registry given, called in .../sonata-sandbox/app/cache/dev/appDevDebugProjectContainer.php on line 1822 and defined in .../sonata-sandbox/vendor/bundles/Sensio/Bundle/FrameworkExtraBundle/Request/ParamConverter/DoctrineParamConverter.php line 31

I have cleared the cache and run chmod -R 777 app/cache/ and chmod -R 777 app/logs/

I have done the same 2 months ago and that version is working.

error in app/check.php line 61

if you try run php app/check.php you get this notice:
PHP Notice: Undefined variable: matches in C:\wamp\www\sonata-sandbox\app\check.php on l
ine 61

that fail the intl ICU version test.

in app/check.php line 61 there is:

check(version_compare($matches[1], '4.0', '>='), 'Checking that the intl ICU version is at least 4+', 'Upgrade your intl extension with a newer ICU version (4+)', false);

but should be:

check(version_compare($version, '4.0', '>='), 'Checking that the intl ICU version is at least 4+', 'Upgrade your intl extension with a newer ICU version (4+)', false);

You should change $matches[1] with $version

Add Gallery Block cause Error 500

Adding Gallery block as child block in a page result in a 500 error when editing this block.

The galleryId should be set to null on block child creation but it is not causing this error.

As a workaround, galleryId should be set to null in setDefaultSettings in GalleryBlockService from MediaBundle.

[Behat Tests] Tests failure due to missing parameters

Hi,

The following behat scenario fail (located in features/backend/page/page.feature, around the 18th line) :

Scenario: Add a new page
  When I am connected with "admin" and "admin" on "admin/sonata/page/page/create?uniqid=4f155592a220e"
  And I fill in "4f155592a220e_name" with "toto"
  And I fill in "4f155592a220e_position" with "1"
  And I select "default" from "4f155592a220e_templateCode"
  And I press "Create"
  Then I should see "Item has been successfully created."

I think this is due to the behaviour of \Sonata\PageBundle\Controller\PageAdminController::createAction(), around the line 61 :

<?php
// ...
return $this->redirect($this->admin->generateUrl('create', array('siteId' => $sites[0]->getId())));

When it seems that as there is not a siteId in the request (only a uniqid value), it tries to load the main siteId. OK, that's fine, but... The token is erased from the request (there is no uniqid key anymore), thus failing the test, as it can not find the mentionned field (as the uniqid is generated automatically... we can not really guess it's value I think ?).

I do have a workaround, but I think it is kind of ugly ; adding a siteId (valued to 1) key to the request sent by Mink. So the scenario becomes like this :

Scenario: Add a new page
  When I am connected with "admin" and "admin" on "admin/sonata/page/page/create?uniqid=4f155592a220e&siteId=1"
  And I fill in "4f155592a220e_name" with "toto"
  And I fill in "4f155592a220e_position" with "1"
  And I select "default" from "4f155592a220e_templateCode"
  And I press "Create"
  Then I should see "Item has been successfully created."

But, it is ugly, because it is not certain that the main site will have an id valued to 1, or more generally that there will be a site with its id valued to 1... any ideas ?

ErrorException : BlockInteractor

Hi,

I use the sandbox to try it.
But I get an error after an update of vendors :

php bin/vendors update

I'm a newbie in Sf 2.0 and I have no idea how to solve it...

I give all the trace

ErrorException: Catchable Fatal Error: Argument 1 passed to Sonata\PageBundle\Entity\BlockInteractor::__construct() must be an instance of Doctrine\Bundle\DoctrineBundle\Registry, instance of Symfony\Bundle\DoctrineBundle\Registry given, called in C:\wamp\www\workspace\sonata-sandbox\app\cache\dev\appDevDebugProjectContainer.php on line 4454 and defined in C:\wamp\www\workspace\sonata-sandbox\vendor\bundles\Sonata\PageBundle\Entity\BlockInteractor.php line 34

    in C:\wamp\www\workspace\sonata-sandbox\vendor\symfony\src\Symfony\Component\HttpKernel\Debug\ErrorHandler.php line 65
at ErrorHandler->handle() in C:\wamp\www\workspace\sonata-sandbox\vendor\bundles\Sonata\PageBundle\Entity\BlockInteractor.php line 34
at BlockInteractor->__construct() in C:\wamp\www\workspace\sonata-sandbox\app\cache\dev\appDevDebugProjectContainer.php line 4454
at appDevDebugProjectContainer->getSonata_Page_BlockInteractorService() in C:\wamp\www\workspace\sonata-sandbox\app\bootstrap.php.cache line 190
at Container->get() in C:\wamp\www\workspace\sonata-sandbox\app\cache\dev\appDevDebugProjectContainer.php line 4506
at appDevDebugProjectContainer->getSonata_Page_Cms_PageService() in C:\wamp\www\workspace\sonata-sandbox\app\bootstrap.php.cache line 190
at Container->get() in C:\wamp\www\workspace\sonata-sandbox\app\cache\dev\appDevDebugProjectContainer.php line 4467
at appDevDebugProjectContainer->getSonata_Page_Cache_EsiService() in C:\wamp\www\workspace\sonata-sandbox\app\bootstrap.php.cache line 190
at Container->get() in C:\wamp\www\workspace\sonata-sandbox\app\cache\dev\appDevDebugProjectContainer.php line 2951
at appDevDebugProjectContainer->getSonata_Cache_ManagerService() in C:\wamp\www\workspace\sonata-sandbox\app\bootstrap.php.cache line 190
at Container->get() in C:\wamp\www\workspace\sonata-sandbox\app\cache\dev\appDevDebugProjectContainer.php line 5266
at appDevDebugProjectContainer->getTwigService() in C:\wamp\www\workspace\sonata-sandbox\app\bootstrap.php.cache line 190
at Container->get() in C:\wamp\www\workspace\sonata-sandbox\app\cache\dev\appDevDebugProjectContainer.php line 60
at appDevDebugProjectContainer->getAssetic_AssetManagerService() in C:\wamp\www\workspace\sonata-sandbox\app\bootstrap.php.cache line 190
at Container->get() in C:\wamp\www\workspace\sonata-sandbox\app\cache\dev\appDevDebugProjectContainer.php line 1728
at appDevDebugProjectContainer->getRouting_LoaderService() in C:\wamp\www\workspace\sonata-sandbox\app\bootstrap.php.cache line 190
at Container->get() in C:\wamp\www\workspace\sonata-sandbox\vendor\symfony\src\Symfony\Bundle\FrameworkBundle\Routing\Router.php line 52
at Router->getRouteCollection() in C:\wamp\www\workspace\sonata-sandbox\vendor\symfony\src\Symfony\Component\Routing\Router.php line 216
at Router->getMatcher() in C:\wamp\www\workspace\sonata-sandbox\vendor\symfony\src\Symfony\Component\Routing\Router.php line 195
at Router->match() in C:\wamp\www\workspace\sonata-sandbox\vendor\symfony\src\Symfony\Bundle\FrameworkBundle\EventListener\RouterListener.php line 73
at RouterListener->onKernelRequest()
at call_user_func() in C:\wamp\www\workspace\sonata-sandbox\vendor\symfony\src\Symfony\Bundle\FrameworkBundle\Debug\TraceableEventDispatcher.php line 82
at TraceableEventDispatcher->doDispatch() in C:\wamp\www\workspace\sonata-sandbox\vendor\symfony\src\Symfony\Component\EventDispatcher\EventDispatcher.php line 49
at EventDispatcher->dispatch() in C:\wamp\www\workspace\sonata-sandbox\vendor\symfony\src\Symfony\Bundle\FrameworkBundle\ContainerAwareEventDispatcher.php line 118
at ContainerAwareEventDispatcher->dispatch() in C:\wamp\www\workspace\sonata-sandbox\vendor\symfony\src\Symfony\Component\HttpKernel\HttpKernel.php line 98
at HttpKernel->handleRaw() in C:\wamp\www\workspace\sonata-sandbox\vendor\symfony\src\Symfony\Component\HttpKernel\HttpKernel.php line 71
at HttpKernel->handle() in C:\wamp\www\workspace\sonata-sandbox\vendor\symfony\src\Symfony\Bundle\FrameworkBundle\HttpKernel.php line 47
at HttpKernel->handle() in C:\wamp\www\workspace\sonata-sandbox\app\bootstrap.php.cache line 547
at Kernel->handle() in C:\wamp\www\workspace\sonata-sandbox\web\app_dev.php line 26

Cheers

First Install - Error on - sonata:page:create-site

Installing the Sandbox for the first time all the steps from worked : https://github.com/sonata-project/sandbox

When I ran :app/console sonata:page:create-site --enabled=true --name=localhost --host=localhost --relativePath=/ --enabledFrom=now --enabledTo="+10 years" --default=true

And entered 'EN' or or 'En' or 'en' for locale and 'y' or 'yes' for confirm, I get
[Doctrine\DBAL\DBALException]
An exception occurred while executing 'INSERT INTO page__site (enabled, name, relative_path, host, enabled_from, enabled_to, is_default, created_at, updated_at, locale, title, meta_keywords, meta_description) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' with par
ams [1, "localhost", "", "localhost", "2013-07-23 17:36:32", "2023-07-23 17:36:32", "true", "2013-07-23 17:36:34", "2013-07-23 17:36:34", "En", null, null, null]:

SQLSTATE[HY000]: General error: 1366 Incorrect integer value: 'true' for column 'is_default' at row 1

[PDOException]
SQLSTATE[HY000]: General error: 1366 Incorrect integer value: 'true' for column 'is_default' at row 1

I am stuck

EDIT:

Solution wrong docs - change "--default=1" in
app/console sonata:page:create-site --enabled=true --name=localhost --host=localhost --relativePath=/ --enabledFrom=now --enabledTo="+10 years" --default=true

PHP extension intl is missing from your system.

C:\xampp\htdocs\sonata-sandbox>php composer.phar install
Loading composer repositories with package information
Installing dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

Problem 1
- Installation request for sonata-project/intl-bundle 2.2.@dev -> satisfiab
le by sonata-project/intl-bundle[2.2.x-dev].
- sonata-project/intl-bundle 2.2.x-dev requires ext-intl * -> the requested
PHP extension intl is missing from your system.
Problem 2
- sonata-project/intl-bundle 2.2.x-dev requires ext-intl * -> the requested
PHP extension intl is missing from your system.
- sonata-project/news-bundle 2.3.x-dev requires sonata-project/intl-bundle 2
.2.
@dev -> satisfiable by sonata-project/intl-bundle[2.2.x-dev].
- Installation request for sonata-project/news-bundle 2.3.*@dev -> satisfiab
le by sonata-project/news-bundle[2.3.x-dev].

Installation instructions need to be reviewed

There are a lot of steps missing in the installation process:

  • app/cache and app/logs have to be created by hand, or else installer complains about permissions
  • assets are not published by default
  • web/config complains that parameters.ini doesn't exist
  • after configuring parameter.ini by hand, creating the DB using phpMyAdmin, creating the tables using php app/console doctrine:schema:update --force, I still get the following error:
    "Unable to find the snapshot : fos_user_security_login"
    ...and I'm stuck here

can't install fixtures

Hello!
i am trying for long time to install the sonata-project sandbox, on localhost.
Though everything goes well till the: app/console doctrine:fixtures:load

i have this error:
[LogicException]

Unable to guess the mime type as no guessers are available

the php extension php_fileinfo is enabled.

If i skip this step and i create the users myself etc, i get across some fatal errors
(like: Fatal error: Call to a member function setLenient() on a non-object in C:\wamp\www\sonata-sandbox\vendor\symfony\src\Symfony\Component\Form\Extension\Core\Type\DateType.php on line 64)

descibed on other issues, where the solution that is proposed is to install the fixtures..

i use the 2.0 branch of sonata project sandbox.

thank you very much for your possible help

see you in paris live

Error during installation

Just after
git clone http://github.com/sonata-project/sandbox.git MyProject
cd MyProject
rm -rf .git
git init
git add .gitignore *
git commit -m "Initial commit (from the Sonata Sandbox)"
php bin/vendors install
git add *
git commit -m "add submodules"
cp app/config/parameters.yml.sample app/config/parameters.yml
cp app/config/parameters.yml.sample app/config/validation_parameters.yml
cp app/config/parameters.yml.sample app/config/production_parameters.yml

I try app/console and what I get is:

[Symfony\Component\Config\Definition\Exception\InvalidConfigurationException]
Unrecognized options "sonata.media.cdn.server" under "sonata_media.cdn"

I've try many times.
It's not my first time I install sandbox, but after the latest upgrades I get errors I can't resolve so I start a new project, but the result is that error.

Tagging, branching etc

Hello Thomas & co.

First of all thanks for your great work, your bundles help a lot in typical development.

I want to ask you to create tags for more-a-less stable versions of your bundles and to use branches. The problem is that in deps file all SonataBundles linked to HEAD commit, that causes pulling all cutting-edge commits from you, and that causes in a lot of config changes and unstable stuff. So I guess everyone will be happy if you will create branches\tags for your bundles, so we can stick to anything more-a-less stable. Otherwise it's too risky to use your bundles in production sites.

Thank you again and keep pushing great bundles to the community!

Problem After Installation

Hi!
I have an exception after installation sandbox

An exception has been thrown during the rendering of a template ("Failed to write cache file "D:\work\sonata-sandbox\app/cache/dev/translations/catalogue.: en.php".") in "FOSUserBundle::layout.html.twig" at line 14.

Help me please!

Thanks

Error editing

Hi

I've followed the installation and when I try to edit anything, I get the following:

Variable "btn_add" does not exist in SonataDoctrineORMAdminBundle:CRUD:edit_orm_many_to_one.html.twig at line 46

The image format "default_" is not defined.

When creating a gallery child block, then editing it, the format selection choice list should be updated with ajax depending on the available format of the selected gallery.

We need to update twice. Once to get the format choice list updated, then updating to get format selected to avoid error in page:

The image format "default_" is not defined.
Is the format registered in your sonata-media configuration?

Sandbox installation

I always get the following error when trying to install the sandbox as per the README

[Symfony\Component\Config\Definition\Exception\InvalidDefinitionException]->addDefaultsIfNotSet() is not applicable to prototype nodes at path "assetic.node_paths"

Fatel error: Declaration of Sonata\UserBundle\Form\Type\SecurityRolesType::getDefaultOptions() must be compatible

Seems there went something wrong with some versions..??

That error message I get after installation on several pages in admin/dashboard...:

Fatal error: Declaration of Sonata\UserBundle\Form\Type\SecurityRolesType::getDefaultOptions() must be compatible with that of Symfony\Component\Form\FormTypeInterface::getDefaultOptions() in /Applications/MAMP/htdocs/sonata-sandbox/vendor/bundles/Sonata/UserBundle/Form/Type/SecurityRolesType.php on line 120

How can i fix that I can work with demo?

What needs to be done after the installation ?

Hi,
I'm a bit fresh with symfony (a month to be clear).
Before finding out the sandbox, I tried to install Sonata by hand and got a bit confused with all the different Bundles.
When I found this repository, I though "great" a pre-installed packaged with all I ever dreamed of.
I followed the documentation, install went fine, so I went to the homepage of the project.
I'm asked to login, ok I tell myself I'll create a user with the command fos:user:create.

There I recieve an error message :
No encoder has been configured for account "Application\Sonata\UserBundle\Entity\User"

So I'm thinking I'm missing a bit of configuration but with so many bundles installed, I don't really know what to do ...
Could you help me please ? Give me some direction/documentation to read ?

FatalErrror: PageBundle ExceptionListener

I went through all the steps of the install process.... And I'm getting this error

[Sun Jul 08 00:54:58 2012] [error] [client 184.91.24.135] PHP Catchable fatal error: Argument 1 passed to Sonata\PageBundle\Listener\ExceptionListener::handleInternalError() must be an instance of Symfony\Component\HttpKernel\Event\GetResponseForExceptionEvent, instance of Sonata\PageBundle\Exception\PageNotFoundException given, called in /var/www/clients/client4/web58/web/sonata/vendor/bundles/Sonata/PageBundle/Listener/ExceptionListener.php on line 161 and defined in /var/www/clients/client4/web58/web/sonata/vendor/bundles/Sonata/PageBundle/Listener/ExceptionListener.php on line 114
[Sun Jul 08 00:54:58 2012] [error] [client 184.91.24.135] PHP Stack trace:
[Sun Jul 08 00:54:58 2012] [error] [client 184.91.24.135] PHP 1. {main}() /var/www/clients/client4/web58/web/sonata/web/app.php:0
[Sun Jul 08 00:54:58 2012] [error] [client 184.91.24.135] PHP 2. Symfony\Component\HttpKernel\Kernel->handle() /var/www/clients/client4/web58/web/sonata/web/app.php:19
[Sun Jul 08 00:54:58 2012] [error] [client 184.91.24.135] PHP 3. Symfony\Bundle\FrameworkBundle\HttpKernel->handle() /var/www/clients/client4/web58/web/sonata/app/bootstrap.php.cache:547
[Sun Jul 08 00:54:58 2012] [error] [client 184.91.24.135] PHP 4. Symfony\Component\HttpKernel\HttpKernel->handle() /var/www/clients/client4/web58/web/sonata/app/cache/prod/classes.php:4879
[Sun Jul 08 00:54:58 2012] [error] [client 184.91.24.135] PHP 5. Symfony\Component\HttpKernel\HttpKernel->handleException() /var/www/clients/client4/web58/web/sonata/app/cache/prod/classes.php:3881
[Sun Jul 08 00:54:58 2012] [error] [client 184.91.24.135] PHP 6. Symfony\Bundle\FrameworkBundle\ContainerAwareEventDispatcher->dispatch() /var/www/clients/client4/web58/web/sonata/app/cache/prod/classes.php:3942
[Sun Jul 08 00:54:58 2012] [error] [client 184.91.24.135] PHP 7. Symfony\Component\EventDispatcher\EventDispatcher->dispatch() /var/www/clients/client4/web58/web/sonata/app/cache/prod/classes.php:4818
[Sun Jul 08 00:54:58 2012] [error] [client 184.91.24.135] PHP 8. Symfony\Component\EventDispatcher\EventDispatcher->doDispatch() /var/www/clients/client4/web58/web/sonata/app/cache/prod/classes.php:3707
[Sun Jul 08 00:54:58 2012] [error] [client 184.91.24.135] PHP 9. call_user_func() /var/www/clients/client4/web58/web/sonata/app/cache/prod/classes.php:3781
[Sun Jul 08 00:54:58 2012] [error] [client 184.91.24.135] PHP 10. Sonata\PageBundle\Listener\ExceptionListener->onKernelException() /var/www/clients/client4/web58/web/sonata/app/cache/prod/classes.php:0
[Sun Jul 08 00:54:58 2012] [error] [client 184.91.24.135] PHP 11. Sonata\PageBundle\Listener\ExceptionListener->handleNativeError() /var/www/clients/client4/web58/web/sonata/vendor/bundles/Sonata/PageBundle/Listener/ExceptionListener.php:106
[Sun Jul 08 00:54:58 2012] [error] [client 184.91.24.135] PHP 12. Sonata\PageBundle\Listener\ExceptionListener->handleInternalError() /var/www/clients/client4/web58/web/sonata/vendor/bundles/Sonata/PageBundle/Listener/ExceptionListener.php:161

Installation document correction

In the installation process, I think the following text :

cp app/config/parameters.ini.sample app/config/parameters.ini
cp app/config/parameters.ini.sample app/config/validation_parameters.ini
cp app/config/parameters.ini.sample app/config/production_parameters.ini

Should replace by :

cp app/config/parameters.yml.sample app/config/parameters.yml

Can't install the sandbox

I try to install the sandbox but i become the follow error from the composer:

approach@thin ~/workspace/www/sonata-sandbox $ composer install
Loading composer repositories with package information
Installing dependencies from lock file
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Installation request for sonata-project/intl-bundle 2.1.0 -> satisfiable by sonata-project/intl-bundle 2.1.0.
    - sonata-project/intl-bundle 2.1.0 requires ext-intl * -> the requested PHP extension intl is missing from your system.
  Problem 2
    - sonata-project/intl-bundle 2.1.0 requires ext-intl * -> the requested PHP extension intl is missing from your system.
    - sonata-project/news-bundle 2.1.x-dev requires sonata-project/intl-bundle 2.1.* -> satisfiable by sonata-project/intl-bundle 2.1.0.
    - Installation request for sonata-project/news-bundle 2.1.

sandbox homepage gallery

I think the homepage gallery is still not finding the nivo.gallery.js. To get it to work on my installs I overrode the block_gallery view file in the Application MediaBundle

<script src="{{ asset('bundles/sonatamedia/nivo-gallery/jquery.nivo.gallery.js') }}" type="text/javascript"></script>

above the script at the bottom of the view file:
/src/Application/Sonata/MediaBundle/Resources/views/Block/block_gallery.html.twig

Dan

Not working fresh out of the box...

[EDITED : please close]

if anyone is running into this problem, it could possibly be because of the default date time settings from using MAMP... for some reason, the timezone was not being set properly while using the command line.

Thanks

Ryan

indentation problem on fresh install in sonata_block.yml

[Symfony\Component\Yaml\Exception\ParseException]
Indentation problem in "/users/ejaz/Sites/sonata-sandbox/app/config/sonata/sonata_block.yml" at line 14 (near "sonata.media.block.feature_media:").

please put a new newline at the end

Error trying to create the schema - BaseMessage not found

I'm getting a error when I'm trying to create the db:

app/console doctrine:schema:create
PHP Fatal error: Class 'Sonata\NotificationBundle\Entity\BaseMessage' not found in /home/jaume.tarradasllort/www/test/sonata-sandbox/src/Application/Sonata/NotificationBundle/Entity/Message.php on line 25

I followed the readme...What's wrong?

Sonata - Internal Error

Hi,

I went through all steps to install sonata sandbox and as a result I got "Sonata - Internal Error" Page with no content. Each rout gave me 500 error.

Fix: I ran this command again

app/console sonata:page:create-snapshots --site=all

and everything is ok now.

Bundles missing translations, and incorrect SimpleThings namespace registration

Hey,

This is just a couple of things I've found using the sandbox:

  1. autoload.php, line 58 should be:
'SimpleThings'      => __DIR__.'/../vendor/bundles',

for the version you're referencing.

  1. The SonataMediaBundle, SonataPageBundle and SonataNewsBundle all seem to be missing a number of English translations in their xliff files. I'm guessing this is purely because the sandbox is referencing commits before this was fixed?

Of course, if I'm wrong, I'll see if I can't organise a pull request - just wasn't going to create one for 1 line of code, haha.

generated super admin user has no access to ROLE_SONATA_PAGE_ADMIN_PAGE_EDIT

I create admin user:
app/console fos:user:create
app/console fos:user:activate
app/console fos:user:promote

But $this->get('security.context')->isGranted('ROLE_SONATA_PAGE_ADMIN_PAGE_EDIT') still return false.

https://github.com/sonata-project/SonataPageBundle/blob/master/Controller/PageController.php#L25

Add ROLE_SONATA_PAGE_ADMIN_PAGE_EDIT to security.yml:

https://github.com/sonata-project/sandbox/blob/master/app/config/security.yml#L4

ROLE_SUPER_ADMIN: [ROLE_USER, ROLE_SONATA_ADMIN, ROLE_ADMIN, ROLE_ALLOWED_TO_SWITCH, ROLE_SONATA_PAGE_ADMIN_PAGE_EDIT]

Database creation problem

my parameters.yml file is:

parameters:
database_driver: pdo_mysql
database_host: localhost
database_name: database
database_user: root
database_password: ~

When I do
app/console doctrine:database:create
I get an error:
Could not create database for connection named An exception occurred while executing 'CREATE DATABASE':

SQLSTATE[42000]: Syntax error or access violation: 1102 Incorrect database name
''

InvalidArgumentException during the installation

after I config the parameters.ini file. I execute the command:

app/console doctrine:database:create

and appears the following message:

[InvalidArgumentException] Invalid db driver "orm".

I did research for two days, I tried reinstall, but without success.

app/console doctrine:database:create ERROR

When I run this command app/console doctrine:database:create I get the following error:

PHP Fatal error: Call to undefined method Symfony\Bundle\SecurityBundle\DependencyInjection\SecurityExtension::addUserProviderFactory() in .../sonata-sandbox/vendor/bundles/Doctrine/Bundle/DoctrineBundle/DoctrineBundle.php on line 39

Did a clean install following the docs.

Intl issue in almost all list actions

Instalation was great, everythink work's fine, but when I logged in admin panel and attempt list all users I get this error:

An exception has been thrown during the rendering of a template ("The Symfony\Component   \Locale\Stub\StubIntlDateFormatter::__construct() method's argument $locale value 'pl' behavior is not implemented. Only the 'en' locale is supported. Please install the 'intl' extension for full localization capabilities.") in SonataIntlBundle:CRUD:list_datetime.html.twig at line 18. 

The SonataIntlBundle has been installed to, so I don't know what's the problem...

Fatal error: Call to undefined function Symfony\Component\Form\Extension\Core\DataTransformer\intl_is_failure() in

And when I try to edit a page I get the following error:

Fatal error: Call to undefined function Symfony\Component\Form\Extension\Core\DataTransformer\intl_is_failure() in /Applications/MAMP/htdocs/sonata-sandbox/vendor/symfony/src/Symfony/Component/Form/Extension/Core/DataTransformer/NumberToLocalizedStringTransformer.php on line 79

Sry but for me the application is not usable yet :(

Problem, how use PostgreSQL

When used PostgreSQL, command sonata:page:update-core-routes raises an exception
Before this command run:

`````` doctrine:database:create doctrine:schema:create```
```doctrine:fixtures:load```
PostgreSQL 9.1

[PDOException]                                                                                                       
  SQLSTATE[23505]: Unique violation: 7 ERROR:  duplicate key value violates unique constraint "page__page_audit_pkey"  
  DETAIL:  Key (id, rev)=(4, 0) already exists. 

When used MySQL, everything is working properly

Sonata Project - Internal Error

Hi, I want to know if anyone has had this error when you create a website eg: localhost/website1 /

Error : An exception has been thrown during the rendering of a template ("The security context contains no authentication token. One possible reason may be that there is no firewall configured for this URL.") in "SonataPageBundle::layout.html.twig".

Thank you for your help !

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.