Giter VIP home page Giter VIP logo

init-cms-sandbox's People

Stargazers

 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

init-cms-sandbox's Issues

CRITICAL - Uncaught PHP Exception during an attempt to create a new user (db: sqlite)

CRITICAL - Uncaught PHP Exception Symfony\Component\Debug\Exception\ContextErrorException: "Catchable Fatal Error: Argument 1 passed to Symfony\Component\Form\Extension\Core\Type\ChoiceType::normalizeLegacyChoices() must be of the type array, null given, called in .../init-cms-sandbox-2.7/vendor/symfony/symfony/src/Symfony/Component/Form/Extension/Core/Type/ChoiceType.php on line 266 and defined" at .../init-cms-sandbox-2.7/vendor/symfony/symfony/src/Symfony/Component/Form/Extension/Core/Type/ChoiceType.php line 515

With Symfony 2.7.8 and
"php": ">=5.6.14",
"symfony/symfony": "2.7.",
"doctrine/orm": "2.4.8",
"doctrine/doctrine-bundle": "~1.4",
"symfony/assetic-bundle": "~2.3",
"symfony/swiftmailer-bundle": "~2.3",
"symfony/monolog-bundle": "~2.4",
"sensio/distribution-bundle": "~4.0",
"sensio/framework-extra-bundle": "^3.0.2",
"incenteev/composer-parameter-handler": "~2.0",
"twig/extensions": "~1.0",
"sensio/generator-bundle": "2.3.
",
"jms/security-extra-bundle": "1.5.1",
"networking/init-cms-bundle": "~2.7",
"ptachoire/cssembed": "^1.0"

composer update rewrite parameter.yml without database_path for sqlite

When using sandbox with sqlite, $ composer update causes an error:

Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::clearCache
[Symfony\Component\DependencyInjection\Exception\ParameterNotFoundException]
You have requested a non-existent parameter "database_path". Did you mean one of these: "database_host", "database_port", "database_name", "database_user"?

This error is due to the fact that the database_path line has been removed previously from app/config/parameter.yml during the $ composer update command.

Error after last update

After updating to the last version, i got:

- Removing sonata-project/markitup-bundle (dev-master)
- Installing doctrine/instantiator (dev-master 26404e0)

So i had to comment new Sonata\MarkItUpBundle\SonataMarkItUpBundle(), on the AppKernel.php
But now i get:

[Symfony\Component\DependencyInjection\Exception\ParameterNotFoundException]
The service "sandbox_init_cms.menu.frontend_top_menu_template" has a dependency on a non-existent parameter "mopa_bootstrap.navbar.generic".  

Thanks

install on windows machine

Hi. I want to install this on windows machine. I got an error with asset. Asset path in application is wrong..something like /web/js/bootstrap.js etc Is there possible to install this on windows machine? I try to asset:install web but this create a bundles folder.

Critical - unable to render new Page (try to renderView a Template object)

Hello,

With a fresh new install of the sandbox (v2.7.0), an exception is thrown when I try to view a new Page (homepage work fine)

[1] Symfony\Component\Debug\Exception\ContextErrorException: Catchable Fatal Error: Object of class Sensio\Bundle\FrameworkExtraBundle\Configuration\Template could not be converted to string
    at n/a
        in /srv/www/initcms/vendor/symfony/symfony/src/Symfony/Bridge/Twig/TwigEngine.php line 126

    at Symfony\Component\Debug\ErrorHandler->handleError('4096', 'Object of class Sensio\Bundle\FrameworkExtraBundle\Configuration\Template could not be converted to string', '/srv/www/initcms/vendor/symfony/symfony/src/Symfony/Bridge/Twig/TwigEngine.php', '126', array('name' => object(Template)))
        in /srv/www/initcms/vendor/symfony/symfony/src/Symfony/Bridge/Twig/TwigEngine.php line 126

    at Symfony\Bridge\Twig\TwigEngine->load(object(Template))
        in /srv/www/initcms/vendor/symfony/symfony/src/Symfony/Bridge/Twig/TwigEngine.php line 50

    at Symfony\Bridge\Twig\TwigEngine->render(object(Template), array('page' => object(Page), 'admin_pool' => object(Pool)))
        in /srv/www/initcms/vendor/symfony/symfony/src/Symfony/Bundle/TwigBundle/TwigEngine.php line 72

    at Symfony\Bundle\TwigBundle\TwigEngine->render(object(Template), array('page' => object(Page), 'admin_pool' => object(Pool)))
        in /srv/www/initcms/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Controller/Controller.php line 162

    at Symfony\Bundle\FrameworkBundle\Controller\Controller->renderView(object(Template), array('page' => object(Page), 'admin_pool' => object(Pool)))
        in /srv/www/initcms/vendor/networking/init-cms-bundle/Controller/FrontendPageController.php line 119

    at Networking\InitCmsBundle\Controller\FrontendPageController->indexAction(object(Request))
        in  line 

    at call_user_func_array(array(object(FrontendPageController), 'indexAction'), array(object(Request)))
        in /srv/www/initcms/app/bootstrap.php.cache line 3110

    at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), '1')
        in /srv/www/initcms/app/bootstrap.php.cache line 3072

    at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), '1', true)
        in /srv/www/initcms/app/bootstrap.php.cache line 3223

    at Symfony\Component\HttpKernel\DependencyInjection\ContainerAwareHttpKernel->handle(object(Request), '1', true)
        in /srv/www/initcms/app/bootstrap.php.cache line 2442

    at Symfony\Component\HttpKernel\Kernel->handle(object(Request))
        in /srv/www/initcms/web/app_dev.php line 29

If I change the corresponding lines in FrontendPageController.php like this it works but there should be another solution if no one has had this problem before.

$html = $this->renderView(
    $request->get('_template'),
    $params
);

// ->

$html = $this->renderView(
    is_object($request->get('_template')) ? $request->get('_template')->getTemplate() : $request->get('_template'),
    $params
);

composer installed packages :

behat/transliterator                     v1.1.0
cocur/slugify                            v1.4.1
dflydev/markdown                         v1.0.3
doctrine/annotations                     v1.2.7
doctrine/cache                           v1.6.0
doctrine/collections                     v1.3.0
doctrine/common                          v2.6.1
doctrine/data-fixtures                   v1.1.1
doctrine/dbal                            v2.5.4
doctrine/doctrine-bundle                 1.6.2
doctrine/doctrine-cache-bundle           1.3.0
doctrine/doctrine-fixtures-bundle        v2.2.0
doctrine/inflector                       v1.1.0
doctrine/lexer                           v1.0.1
doctrine/orm                             v2.4.8
egeloen/ckeditor-bundle                  2.5.2
egeloen/json-builder                     1.0.3
friendsofsymfony/rest-bundle             1.7.7
friendsofsymfony/user-bundle             v1.3.6
gedmo/doctrine-extensions                v2.3.12
ibrows/annotation-reader                 1.0.5
ibrows/sonata-admin-annotation-bundle    1.2.0
ibrows/sonata-translation-bundle         1.0.3
imagine/imagine                          v0.6.3
incenteev/composer-parameter-handler     v2.1.2
jdorn/sql-formatter                      v1.2.17
jms/aop-bundle                           1.2.0
jms/cg                                   1.1.0
jms/di-extra-bundle                      1.7.0
jms/metadata                             1.5.1
jms/parser-lib                           1.0.0
jms/security-extra-bundle                1.5.1
jms/serializer                           0.16.0
jms/serializer-bundle                    0.13.0
knplabs/gaufrette                        0.2.0
knplabs/knp-components                   1.3.2
knplabs/knp-markdown-bundle              1.2.0
knplabs/knp-menu                         v2.1.1
knplabs/knp-menu-bundle                  v2.1.1
knplabs/knp-paginator-bundle             2.5.1
kriswallsmith/assetic                    v1.3.2
kriswallsmith/buzz                       v0.15
lexik/translation-bundle                 v3.1.1
michelf/php-markdown                     1.6.0
monolog/monolog                          1.17.2
mopa/bootstrap-bundle                    v3.0.0
mopa/composer-bridge                     v1.5.0
nelmio/api-doc-bundle                    2.11.2
networking/init-cms-bundle               v2.7.4
paragonie/random_compat                  v1.2.0
phpcollection/phpcollection              0.4.0
phpfastcache/phpfastcache                3.0.28
phpoption/phpoption                      1.5.0
psr/log                                  1.0.0
sensio/distribution-bundle               v4.0.5
sensio/framework-extra-bundle            v3.0.13
sensio/generator-bundle                  v2.3.5
sensiolabs/security-checker              v3.0.2
sonata-project/admin-bundle              2.3.7
sonata-project/block-bundle              2.2.13
sonata-project/cache                     1.0.7
sonata-project/core-bundle               2.3.10
sonata-project/datagrid-bundle           dev-master 0749e71
sonata-project/doctrine-extensions       1.0.2
sonata-project/doctrine-orm-admin-bundle 2.3.3
sonata-project/easy-extends-bundle       2.1.10
sonata-project/exporter                  1.4.1
sonata-project/formatter-bundle          2.3.3
sonata-project/google-authenticator      1.0.2
sonata-project/intl-bundle               2.2.3
sonata-project/media-bundle              2.3.3
sonata-project/notification-bundle       2.3.2
sonata-project/user-bundle               2.2.4
stof/doctrine-extensions-bundle          v1.1.0
swiftmailer/swiftmailer                  v5.4.1
symfony-cmf/routing                      1.1.0
symfony-cmf/routing-bundle               1.1.0
symfony/assetic-bundle                   v2.7.1
symfony/monolog-bundle                   v2.8.2
symfony/swiftmailer-bundle               v2.3.11
symfony/symfony                          v2.7.9
twbs/bootstrap                           v3.2.0
twig/extensions                          v1.3.0
twig/twig                                v1.24.0
willdurand/jsonp-callback-validator      v1.1.0
willdurand/negotiation                   1.5.0

Creating menu item ( internal link) with no page connected to it

i wanted to create a menu item ( internal link) but with no page link to it, but gave me an error, i fixed it by changing entity/MenuItem.php line 505 :
from : if (!$child->getPage()->getSnapshot()) {
to : if ($child->getPage() && !$child->getPage()->getSnapshot()) {
the error warrning was bcz trying to call getSnapshot() on a non object.

Should it work with pgsql?

With pgsql I have this exception:
An exception has been thrown during the rendering of a template ("An exception occurred while executing 'SELECT DISTINCT p0_.id AS id0, p0_.id AS id1 FROM page p0_ LEFT JOIN content_route c1_ ON p0_.content_route_id = c1_.id WHERE p0_.locale = ? ORDER BY p0_.path ASC, p0_.id ASC' with params ["allemand (Suisse)"]:

SQLSTATE[42P10]: Invalid column reference: 7 ERROR: for SELECT DISTINCT, ORDER BY expressions must appear in select list
LINE 1: ...route_id = c1.id WHERE p0_.locale = $1 ORDER BY p0_.path A...
^") in NetworkingInitCmsBundle:CRUD:base_list.html.twig at line 113.
500 Internal Server Error - Twig_Error_Runtime
3 linked Exceptions: DriverException » PDOException » PDOException »

The query is:
SELECT
DISTINCT p0_.id AS id0,
p0_.id AS id1
FROM
page p0_
LEFT JOIN content_route c1_ ON p0_.content_route_id = c1_.id
WHERE
p0_.locale = ?
ORDER BY
p0_.path ASC,
p0_.id ASC

    "php": ">=5.6.14",
    "symfony/symfony": "2.7.*",
    "doctrine/orm": "2.4.8",
    "doctrine/doctrine-bundle": "~1.4",
    "symfony/assetic-bundle": "~2.3",
    "symfony/swiftmailer-bundle": "~2.3",
    "symfony/monolog-bundle": "~2.4",
    "sensio/distribution-bundle": "~4.0",
    "sensio/framework-extra-bundle": "^3.0.2",
    "incenteev/composer-parameter-handler": "~2.0",
    "twig/extensions": "~1.0",
    "sensio/generator-bundle": "2.3.*",
    "jms/security-extra-bundle": "1.5.1",
    "networking/init-cms-bundle": "~2.7",
    "ptachoire/cssembed": "^1.0"

the problem of login

An exception has been thrown during the rendering of a template ("Catchable Fatal Error: Argument 6 passed to Networking\InitCmsBundle\Menu\MenuBuilder::__construct() must be an instance of Symfony\Component\Translation\Translator, instance of Symfony\Component\Translation\DataCollectorTranslator given, called in /Users/zrone/AppServer/Lion/app/cache/dev/appDevDebugProjectContainer.php on line 4680 and defined") in NetworkingInitCmsBundle:Navbar:admin_navbar.html.twig at line 33.

AutoCompleteType and IconRadioType

Hi
in appDevDebugProjectContainer.php (AutoCompleteType and IconRadioType) have false names (AutocompleteType and IconradioType) => errors in the capital letters
Please correct this error by updating the correct writing

admin page edit, error while clicking on View published version.

can be fixed by changing in PageAdmin/page_status_settings.html.twig, line 56
{{ path('networking_init_view_live', {'locale': object.locale, 'path': path }) }}
to
{{ path('networking_init_view_live', {'locale': object.locale, 'path': path | base64_encode()}) }}

Online demo

Hi what about setting up an online demo of your sandbox so we can test it easily ?

Thanks

Login Redirects to a Blank Page

Hi,
When I attempt to login to the administrator panel through /login, I am redirected to a blank page /login_check and cannot seem to access the panel.
Any advice?

PHP Warning in Live Demo

Hi,

I found a PHP warning in the live demo. I went to the prices en_US page and deleted some content (f.ex. in the left panel). Then I get the following warning:

Warning: array_key_exists() expects parameter 2 to be array, null given in /var/www/vhosts/initcms.com/private/demo_cms/vendor/networking/init-cms-bundle/Networking/InitCmsBundle/Twig/Extension/NetworkingHelperExtension.php on line 543 Warning: array_key_exists() expects parameter 2 to be array, null given in /var/www/vhosts/initcms.com/private/demo_cms/vendor/networking/init-cms-bundle/Networking/InitCmsBundle/Twig/Extension/NetworkingHelperExtension.php on line 543

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.