Показаны сообщения с ярлыком sulu. Показать все сообщения
Показаны сообщения с ярлыком sulu. Показать все сообщения

среда, 30 января 2019 г.

[Ckeditor] adds extra

html tags fix

If you pass HTML content to Twig template and escape it with raw filter/function, and get extra <p> tags, like in this example:

<p></p>
<p>my passed HTML content from CKeditor</p>
<p></p>

It means you should unwrap <p> tag, which wraps Twig content variable.
Bad Twig case:

<p>{{ page.content|raw }}</p>

Good Twig case:
{{ page.content|raw }}

It occurs because <p> cannot be nested, so tag cannot be unclosed, and if at next opens a new <p>, previous tag becomes automatically closed. 

четверг, 10 января 2019 г.

[Sulu] how to fix [extensionsData] This value is not valid. ({"{{ value }}":"NULL"})

If you have error "[extensionsData] This value is not valid. ({"{{ value }}":"NULL"})" in Symfony Profiler, downgrade symfony version to 3.4.15. Problem occured in symfony version 3.4.21.

четверг, 1 ноября 2018 г.

[Sulu] cannot save page changes

When this issue occurs, in Symfony logs exists this message:

request.CRITICAL: Uncaught PHP Exception Sulu\Component\Content\Form\Exception\InvalidFormException: "[authored] This value is not valid

The solution is to upgrade to Sulu v1.6.22, it downgrades Symfony from 3.4.17 to 3.4.14.

Appeared in v1.6.21

пятница, 5 октября 2018 г.

[Sulu] how to fix /admin blank page

To fix admin login page white screen, run: php bin/console sulu:translate:export

вторник, 15 мая 2018 г.

Sulu /admin/translations/sulu.en.json?v=develop error fix

Be sure you haven't deleted sulu.en.json in project web/admin, and there anything will not be deleted (for example as Vagrant's Rsync do that). After this restore translations with php bin/console sulu:translate:export .

суббота, 5 мая 2018 г.

How to fix Sulu page previews

thanks to this commit, you can update Sulu from 1.6.17 to 1.6.18 and receive this fix.