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

Aws ecs-cli created fargate instance instead of ec2 fix

Be sure you ran ecs-cli up --capability-iam --instance-type t2.micro  with argument --cluster-config <configname>
, where configname is already created with ecs-cli configure command.

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

Bootstrap modal "Maximum call stack size exceeded" error fix

If you receive this error, another solution is to hide all other modals before opening current modal. Bootstrap 3.3.7

суббота, 10 ноября 2018 г.

gta 3 how to disable drunk slow mo effect

To disable dizziness or slowmo effect in GTA III, in game video settings make "Trails" disabled.

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

[Ethereum] Web3 "Couldn't connect to node" fix

If you have "Couldn't connect to node http://localhost:8545", check your web3 smart contract function arguments, maybe you're added redundant parameter ({value: ...} in my case). Worked on Parity v2.1.3 on Docker

вторник, 6 ноября 2018 г.

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