Try to "build"/"Rebuild" installer project in solution.
воскресенье, 18 декабря 2016 г.
пятница, 16 декабря 2016 г.
symfony 404 not found on file upload
be sure you changed "upload_max_size" in needed php.ini, added "client_max_body_size 100m;" in case nginx.conf, and do not forget to restart all php, nginx, apache2 daemons, or better reboot system.
четверг, 15 декабря 2016 г.
twig unrecognized field 0
because you forget add parameter as associated array, for example
findOneBy(['providerReference' => $reference])
, not (['provideReference', $reference])
четверг, 3 ноября 2016 г.
[Symfony] [ckeditor] browse / upload buttons missing - how to fix
be sure you don't have duplicate call of ivory_ck_editor in config.yml file.
вторник, 11 октября 2016 г.
composer & php 5.6.26 & ubuntu: curl is missing from your system
sudo apt-get install php5.6-curl
sudo a2enmod proxy_fcgi setenvif
sudo a2enconf php5.6-fpm
sudo service apache2 reload
helped notices from php5.6-cur installing
sudo a2enmod proxy_fcgi setenvif
sudo a2enconf php5.6-fpm
sudo service apache2 reload
helped notices from php5.6-cur installing
четверг, 29 сентября 2016 г.
четверг, 18 августа 2016 г.
symfony fixtures cannot delete or update a parent row
* you can add to problem entity field, which is described in error onDelete="set null"
* or deny to purge your database, add to your command key --append.
* or deny to purge your database, add to your command key --append.
четверг, 11 августа 2016 г.
Unable to find mapping information for the class Context
Need to fully configure sonata-classification-bundle, its needed for modern versions of sonata-media.
среда, 10 августа 2016 г.
admin_sonata_classification_context_create" as such route does not exist in SonataAdminBundle:Core:add_block.html.twig
just cache:clear and cache:clear -e prod
четверг, 14 июля 2016 г.
5 columns layout with Twitter Bootstrap
based on http://www.wearesicc.com/quick-tips-5-column-layout-with-twitter-bootstrap/ , modified for fitting 5 columns in any >320px width displays.
.col-xs-15, .col-sm-15, .col-md-15, .col-lg-15 { position: relative; min-height: 1px; padding-right: 10px; padding-left: 10px; } @media (min-width: 320px) { .col-md-15 { width: 20%; float: left; } }
And use it like this:
<div class="col-md-15 col-sm-3"> ... </div>
понедельник, 11 июля 2016 г.
how to fix Symfony CSRF token is invalid. Please try to resubmit the form
If you have problems with uploading files, you should not disable CSRF, only fix it with this hints:
* make sure in php.ini (in all directories in /etc/php5/) max_post_size much bigger than upload_size.
* do not forget to restart server (apache or nginx) and "service php5-fpm restart"
* make sure in php.ini (in all directories in /etc/php5/) max_post_size much bigger than upload_size.
* do not forget to restart server (apache or nginx) and "service php5-fpm restart"
среда, 6 июля 2016 г.
How to add radiobuttons field in Sonata-Admin
protected function configureFormFields(FormMapper $formMapper) {$formMapper
->add('lang', 'choice', [ 'expanded' => true, 'choices' => [ '0' => 'LV', '1' => 'RU', '2' => 'EN' ]]);
}
how to fix \ValidateRequestListener' not found in \ContainerAwareEventDispatcher.php
Just delete cache folder in /app/cache/prod or dev.
Pool::validate() must be an instance of ..\ErrorElement, instance of ..\ErrorElement given
Just downgrade sonata-project/media-bundle to 2.3.3. In my situation it was 2.3.4.
Thanks to https://github.com/sonata-project/SonataMediaBundle/pull/963
Thanks to https://github.com/sonata-project/SonataMediaBundle/pull/963
пятница, 1 июля 2016 г.
Sonata-admin how to add entity filter
protected function configureDatagridFilters(DatagridMapper $datagridMapper){ $datagridMapper ->add('id') ->add('translations.name', null, ['label' => 'Name']) ->add('eanCode') ->add('catalogCode') ->add( 'product', null, [], 'entity', [ 'class' => 'AppBundle\Entity\Product', 'property' => 'name' ]) ;}
In the beginning I thought that 'entity' doesn't work in sonata-admin ^2.3,
and tried 'doctrine_orm_choice'. It could get elements in dropdown, but filter didn't
worked correctly (results always was empty, but there should be elements).
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)
[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
пятница, 29 апреля 2016 г.
'lexik\Bundle\TranslationBundle\LexikTranslationBundle' not found
It solves by changing from 4.0 version to 2.0 by the string in "composer.json":
"lexik/translation-bundle": "~2.0"
среда, 27 апреля 2016 г.
IDEA/phpstorm & GIT unversioned files not available
Make "cd" to needed directory and execute "git add -f <filename>, after that your IDE will see that file. Actual for image files, because it cannot modify inside Idea/Phpstorm.
вторник, 26 апреля 2016 г.
How to solve PDOException “could not find driver” in Ubuntu
sudo apt-get install php5-mysql
It can answer that will be conflicts with some packages, and need to remove it, but suddenly that conflict was solved by it own. After "php5-fpm -m" command you should get pdo_mysql.
среда, 27 января 2016 г.
Webstorm & PhoneGap/Cordova: cannot find Android SDK path error
just add "<your downloaded location>\android-sdk\platform-tools" and "<your downloaded location>\android-sdk\tools" in system PATH variable.
Got from http://learn.ionicframework.com/videos/windows-android/
Got from http://learn.ionicframework.com/videos/windows-android/
вторник, 26 января 2016 г.
Visual Studio Windows Phone emulator doesnt run app
It fixes by turning on "vEthernet (Internal Ethernet Port Windows Phone Emulator Internal Switch)" or something like this in Control Panel > Network Connections.
понедельник, 11 января 2016 г.
Android button onclick simple event
First of all you need to declare method below setContentView(R.layout.main), and add this:
Then select in created button's onClick event in /layout/main.xml designer in "properties" toolbar this method.
public void buttonOnClick(View v) {
}
Then select in created button's onClick event in /layout/main.xml designer in "properties" toolbar this method.
воскресенье, 10 января 2016 г.
Cannot add background to Android designer Intellij IDEA
Add file to "%project%/res/drawable-hdpi" and select it via background selection dialog.
configure Intellij IDEA for Android project
1. do not forget to install Android SDK;
2. just add "Android support" in Plugins in Idea. It because you installed IDE without Android plugin.
2. just add "Android support" in Plugins in Idea. It because you installed IDE without Android plugin.
Подписаться на:
Сообщения (Atom)