Open jonatasfl opened 8 years ago
I have the same problem :-(
same here
same
An alternative solution is to get the DomCrawler back to version 2.8.
Sorry for my bad english.
@jonatasfl thanks its work.
{
"symfony/dom-crawler": "2.8",
"symfony/css-selector": "2.8",
"wbraganca/yii2-dynamicform": "2.0.1"
}
This is doing the job as well:
"wbraganca/yii2-dynamicform": "dev-master"
I'm receiving this error
where I should put the code fg or the line slow-loris?
Thank you. SOrry for my english
@estebanhere Search for "braganca/yii2-dynamicform" in your composer.json and replace the value with "dev-master"
Thank you! it works!
i still have this error..
here is my code : "require": { "php": ">=5.4.0", "yiisoft/yii2": "", "yiisoft/yii2-bootstrap": "", "yiisoft/yii2-swiftmailer": "", "yiisoft/yii2-jui": "", "wbraganca/yii2-dynamicform": "dev-master", "kartik-v/yii2-widget-datepicker": "@dev", "kartik-v/yii2-krajee-base": "dev-master", "kartik-v/yii2-grid": "@dev", "kartik-v/yii2-editable": "", "kartik-v/yii2-widgets": "@dev", "kartik-v/yii2-mpdf": "@dev", "kartik-v/yii2-datecontrol": "@dev", "mdmsoft/yii2-autonumber": "", },
what should i do, please give me any suggestion. Thank you so much.
@paulimas1202 try to composer update
Hello, I was presented with the same problem, I have already done everything you have described in this forum, but still the problem is present, I need help, Thank you
i have same problem, how i fix this ?
Changing this: "wbraganca/yii2-dynamicform": "dev-master"
in composer.json, then composer update in terminal fixed for me.
Edit: Actually doing so broke other forms in the view. I have no idea what happned!
Edit 2:
That worked fine at the end:
"symfony/dom-crawler": "2.8",
"symfony/css-selector": "2.8",
"wbraganca/yii2-dynamicform": "2.0.1",
Changing this:
"wbraganca/yii2-dynamicform": "dev-master"
in composer.json, then composer update in terminal fixed for me.Edit: Actually doing so broke other forms in the view. I have no idea what happned!
Edit 2: That worked fine at the end:
"symfony/dom-crawler": "2.8",
"symfony/css-selector": "2.8",
"wbraganca/yii2-dynamicform": "2.0.1",
This not work for me. Already change the version but it still the same.
same aing oge,,
I had the same problem today, with a DynamicFormWidget with 'min' => 0 that give me the error:
Call to undefined method Symfony\Component\DomCrawler\Crawler::rewind()
I solved downgrading as you suggest "symfony/dom-crawler": "2.8", "symfony/css-selector": "2.8",
with composer require "symfony/dom-crawler:2.8" composer require "symfony/css-selector:2.8"
So I think it is better to change the dependencies on the extension composer file, specifying the version 2.8 because now is "require": { "yiisoft/yii2": "", "symfony/dom-crawler": "", "symfony/css-selector": "*" },
Hello,
in july 2019 this bug is still here, the workaround found in 2015 (using "dev-master" for dynamic-form and downgrading symphony/dom-crawler and symphony/css-selector to an older version) may not work in a future
Package operations: 0 installs, 3 updates, 0 removals
- Downgrading symfony/dom-crawler (v4.3.2 => v3.4.29): Downloading (100%)
- Downgrading symfony/css-selector (v4.3.2 => v3.4.29): Downloading (100%)
- Removing wbraganca/yii2-dynamicform (v2.0.2)
- Installing wbraganca/yii2-dynamicform (dev-master 75c4271): Cloning 75c4271d85 from cache
A better solution is to make yii2-dynamicform compatible with the last version of symfony/dom-crawler, by solving this error in the source code of yii2-dynamicform :
Call to undefined method Symfony\Component\DomCrawler\Crawler::rewind()
The error is pointing to the line 201 of /vendor/wbraganca/yii2-dynamicform/DynamicFormWidget.php
Hello, I fixed this problem.
@slow-loris you've saved my day
I was using this extension without problems, but today when I run
composer update
i'm receiving the following error:Call to undefined method Symfony\Component\DomCrawler\Crawler::rewind()
The error is pointing to the line 201 of
/vendor/wbraganca/yii2-dynamicform/DynamicFormWidget.php
How to solve this?