четверг, 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

[sylius standalone bundles] "DataSource::__construct() must be an instance of Doctrine\ORM\QueryBuilder, null given" error fix

It means that your Grid repository method doesn't return QueryBuilder, maybe at now you return array/one entity objects with getResult() method inside Repository method.

Example of correct QueryBuilder repository method:

public function createPrivateListQueryBuilder(int $residentId): QueryBuilder{    return $this->createQueryBuilder('a')        ->leftJoin('a.user', 'user')        ->where('user.id = :id')        ->setParameter('id', $residentId);}

Notice that there is no getResult()/getOneOrNullResult()/getSingleResult().
Appears in versions Sylius 1.0 - 1.3, maybe earlier.

среда, 31 октября 2018 г.

[swiftmailer] Cannot send message without a sender address error fix

Do not forget to use (new \Swift_Message())->setFrom([$senderAddress => $senderName]) when preparity an email. Interesting that it doesn't throw an exception in Symfony DEV environment, but do that in PROD.

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

[Ethereum] Chainlink Ropsten faucet doesn't sends LINK tokens

If https://ropsten.chain.link/ doesn't send test tokens to your wallet, try to use https://kovan.chain.link/ on Kovan, it worked to me.

четверг, 18 октября 2018 г.

[Ubuntu] chrome/opera video not working

If your video not working in Facebook/VK, run sudo apt-get install chromium-codecs-ffmpeg-extra
It not worked by default because of licence restrictions.

среда, 17 октября 2018 г.

KDE cannot move cursor to another display fix

In System settings > Display and Monitor (or find in launcher "Displays") in displays preview make that two displays will be snapped together, instead of just were near to each other. Press "apply" and apply the changes.

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

[Sulu] how to fix /admin blank page

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