пятница, 1 июля 2016 г.

working Apache2.4 virtualhost with Symfony2.8

dont forget to add to /etc/hosts with 127.0.0.1 project.dev;
Include "C:/wamp64/alias/*"
<VirtualHost *:80>
    ServerAdmin webmaster@localhost
    DocumentRoot "c:/wamp64/www"
    ServerName localhost
    ErrorLog "logs/localhost-error.log"
    CustomLog "logs/localhost-access.log" common
</VirtualHost>
<VirtualHost *:80>
    DocumentRoot "e:/Coding/php/symfony/project/web"
    ServerName project.dev
    <directory "e:/Coding/php/symfony/project/web">
        Options Indexes FollowSymLinks
        AllowOverride All
Allow from all
Require local
    </directory>
ErrorLog "C:/wamp64/logs/apache_error2.log"
    CustomLog "C:/wamp64/logs/apache_error-custom.log" combined
</VirtualHost>

вторник, 21 июня 2016 г.

Doctrine: String data, right truncated: 1406 Data too long for column 'column_name' at row 2

It is only one of the way. If you want to convert field to another type, you can fix it with changing values length in the database, according to your changes length.

понедельник, 20 июня 2016 г.

Change CKeditor height in Symfony

add theres rows in \egeloen\ckeditor-bundle\Resources\views\Form\ckeditor_widget.html.twig:

<script type='text/javascript'>
    CKEDITOR.config.height = 700;
</script>


And don't forget to php app/console assets:install --symlink && php app/console assetic:dump && php app/console cache:clear

суббота, 28 мая 2016 г.

Windows 10 Mail with Zoho.com gets 0x80072726 error

You should use IMAP with receiving server imappro.zoho.com instead of poppro.zoho.com

понедельник, 9 мая 2016 г.

undefined method named "setFormTheme" in SonataAdminBundle

Your class needs to be extended like this:

class CategoryAdmin extends Admin{

}

четверг, 5 мая 2016 г.

Symfony {urn:oasis:names:tc:xliff:documen t:1.2}br not expected

You can get the same error like me:
[Symfony\Component\Translation\Exception\InvalidResourceException]
  Invalid resource provided: "1.2"; Errors: [ERROR 1871] Element '{urn:oasis:names:tc:xliff:documen
  t:1.2}br': This element is not expected. Expected is one of ( {urn:oasis:names:tc:xliff:document:
  1.2}g, {urn:oasis:names:tc:xliff:document:1.2}bpt, {urn:oasis:names:tc:xliff:document:1.2}ept, {u
  rn:oasis:names:tc:xliff:document:1.2}ph, {urn:oasis:names:tc:xliff:document:1.2}it, {urn:oasis:na
  mes:tc:xliff:document:1.2}mrk, {urn:oasis:names:tc:xliff:document:1.2}x, {urn:oasis:names:tc:xlif
  f:document:1.2}bx, {urn:oasis:names:tc:xliff:document:1.2}ex ). (in /var/www/rgk.lv/rgk-symfony/
  - line 12, column 0)
It solves by adding string in composer.json:
"geschke/translator-gui-bundle": "dev-master"

And doing composer update

понедельник, 2 мая 2016 г.

RouteNotFoundException "lexik_translation_new" as such route does not exist

Do not forget make changes in files:
  • *.html.twig
  • Config/routing/routing.yml
  • Config/routing/app.yml

Especially in the second, do not forget to add there these lines:

lexik_translation_edition:    resource: "@LexikTranslationBundle/Resources/config/routing.yml"    prefix: /translations/grid