четверг, 19 апреля 2018 г.

[Symfony] how to disable "request.INFO: Matched route" messages in Monolog logs

app/config/config_prod.yml:
monolog:    
    handlers:        
        main:
            channels: ["!request"]
and run cache:clear -e prod if you on PROD environment.

среда, 18 апреля 2018 г.

[Sonata] "A non well formed numeric value encountered" error at upload

be sure you are using appropriate context in related form type in Sonata Admin class. If you doesnt need resizing or changing image compression, try to remove formats node in config.yml sonata_media node. It should looks like similar, without formats:

banner:    providers:        - sonata.media.provider.image

вторник, 17 апреля 2018 г.

how to fix 'Mysql has gone away'

just ensure you have swap file and add to /etc/mysql/my.cnf :

max_allowed_packet=32M
wait_timeout=172800

понедельник, 5 марта 2018 г.

четверг, 8 февраля 2018 г.

VichUploaderBundle doesnt call setFile() entity method, uploading not working

For me helped using using {{ form_start(form) }} instead of creating <form> tag by itself.

воскресенье, 17 декабря 2017 г.

Vagrant SSH Permission denied (publickey,gssapi-keyex,gssapi-with-mic) fix

If you receive error "Permission denied (publickey,gssapi-keyex,gssapi-with-mic)" or "No more authentication methods to try." in verbose mode on connect via SSH to guest, also noticed that works when you disable provision script, this means your script contains error and so other Vagrant scripts cannot execute for correct SSH working.

Solution is to fix your provision script.

четверг, 23 ноября 2017 г.

fos user bundle promote not working - solution

It is about command
php app/console fos:user:promote admin --super

just logout from user via Symfony Profiler and logon again.