After upgrade doctrine/deprecations from 1.1.3 to 1.1.4 my drupal site crash with this error : Uncaught PHP Exception Drupal\\Component\\Plugin\\Exception\\PluginNotFoundException: "The "broken" plugin does not exist. Valid plugin IDs for Drupal\\views\\Plugin\\ViewsHandlerManager are: datetime, groupby_numeric, date, random" at myrootsite/web/core/lib/Drupal/Component/Plugin/Discovery/DiscoveryTrait.php line 53
Hi, I'm agree with you. I think it's the same issue that mine :
https://www.drupal.org/project/workflow/issues/3458984
🐛
TypeError: 'WidgetBase::errorElement(): Argument #1 ($element) must be of type array, null given, called in WidgetBase.php'
Active
But it seems that nobody works on it...
It seems that IEF with workflow is not the problem since I used dev version of v.1.8.
First when I upgraded from v.1.7 to dev version of v.1.8, Some fields like language, to state, timestamp and log message was activated in the manage form display menu of my workflow. So I desactivated them as I don't want to display them in my node form.
In my case I used actions button in my node form to change state to an other state status field of my node base on a workflow.
Node creation works perfectly when I use an administrator right. But when I try with a basic right, node creation crashes with the error message :
TypeError : Drupal\Core\Field\WidgetBase::errorElement(): Argument #1 ($element) must be of type array, null given, called in web/core/lib/Drupal/Core/Field/WidgetBase.php on line 580
Why did it work with an administrator right and crash with a basic right ?
With v.1.7 It works fine. Could you help me resolve this issue as I can't upgrade my all core drupal since this issue...
Regards,
@tidunz : thanks for your reply.
You are right ! It seems that adding the language field to @language.current_language_context:language_interface in email configuration works fine now !
Thanks a lot for your help !
Regards
Hi,
I have same error of @aitala by using token annotation in my email actions rules after update to version 4.
Thanks for help.
Thanks for your reply.
I was trying to put a default value like you said and the error is still the same. (in all my test the fields was not NULL)
I tried with dev version of module but the result is still the same.
I found a related issue
https://www.drupal.org/project/rules/issues/2849810 →
where aitala post the same issue the last 3 weeks.
I'm thinking that there is an issue to process token annotation by rules conditions.
Thanks for your help.
Regards
I still have this issue even with the dev version of workflow module. If it can help I use a node form including a IEF field referencing an other type node.
This error appears when I click from the original form to had a referencing IEF field and when the form of referencing IEF field appears in my original form I press IEF field cancel button to close it but errors appears and the IEF field form doesn't close.
There is other warning link to this error if it can help :
Undefined array key "original_deltas" in Drupal\Core\Field\WidgetBase->flagErrors() (...web/core/lib/Drupal/Core/Field/WidgetBase.php ligne 576)
Trying to access array offset on value of type null in Drupal\Core\Field\WidgetBase->flagErrors() (...web/core/lib/Drupal/Core/Field/WidgetBase.php ligne 576)
Undefined array key "" in Drupal\Core\Field\WidgetBase->flagErrors() (...web/core/lib/Drupal/Core/Field/WidgetBase.php ligne 577)
There is no issue with version 1.7 of workflow module.
Thanks for your help to resolve this issue.
Regards
I tried the new 10.3.1 core release and this issue still exist.
I have same issue than @iaacristobal.
It seems to work when I am creating my node with admin rights but when it is a simple user the fields displayed in form are those added from v.1.7 to v.1.8 in 'Manage form display'.
I don't know if it helps.
I saw in 'Manage form display' that three field added between v. 1.7 and 1.8 : To state, Timestamp and Log message that was activating.
I don't know if there is a link with the error...
Unfortunately, I have the same issue as @rfmarcelino :
TypeError : Drupal\Core\Field\WidgetBase::errorElement(): Argument #1 ($element) must be of type array, null given, called in /var/www/html/web/core/lib/Drupal/Core/Field/WidgetBase.php on line 580 dans Drupal\Core\Field\WidgetBase->errorElement() (ligne 646 de /var/www/drupalextranet/web/core/lib/Drupal/Core/Field/WidgetBase.php)
I check in 'Manage form display' of the workflow. I thank I was change nothing in this part but I saw in field "To state" that the value is set to "Inline Entity Form - Simple".
Let me know if you need more information to help.
Regards,
An issue was creating in rule module as it seems to be the problem : https://www.drupal.org/project/rules/issues/3456150 🐛 Upgrade to Drupal 10.3 - "plugin does not exist" Closed: duplicate
Same issue for me !
Hi @johnv,
I just install and test your last commit and the two problems I had seems to be correct now !
Thanks a lot !
Hi,
I use actions button in my workflow. And my field file is attached directly to my entity/node.
Let me know if you need more informations.
Thanks for your help.
Regards
Hi @johnv,
Thanks for your post.
I was intalled your patch but I have the same result.
1- Loading file : An error displayed after file load (Error: content has no workflow attached. The data is not saved.), this error is just up to file field but the file is loading fine.
2- I can submit the form for a new node but I can't submit the form when modifying the node : general form error message appears : This value can't be null.
Thanks for your help.
Hi @IGhosh,
Thanks to help us !
You can try to create a node type with a file field and a field type of workflow state.
Then you can create an other node type with only two text fields.
Then after installed IEF module, you can add in the first node type a field that refer to the the second node type (to add the fsecond form in the first one).
Then try to add a node base on first node type to see if it works.
Thanks for your help.
Regards
I have IEF fields too in my form like you Jaswinsingh !
dcoppel → created an issue.
Thanks for your reply.
I solved my issue by doing that was described on this page : https://drupal.stackexchange.com/questions/230156/how-can-you-completely...
After this action, removing computer_field and the issue when deleted a field was both solved !
Thanks for your help.
I tried to downgrade to version 3. If I delete a field, error is :
Drupal\Core\Database\DatabaseExceptionWrapper : SQLSTATE[42S02]: Base table or view not found: 1146 Table 'bdd.drupal_field_deleted_data_877caea112' doesn't exist: SELECT DISTINCT "t"."entity_id" AS "entity_id" FROM "drupal_field_deleted_data_877caea112" "t" WHERE "bundle" = :db_condition_placeholder_0 LIMIT 10 OFFSET 0; Array ( [:db_condition_placeholder_0] => bdd ) dans Drupal\Core\Entity\Sql\SqlContentEntityStorage->readFieldItemsToPurge() (ligne 1665 de core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php).
Hi,
I copied modules/contrib/computed_field/src/Plugin/Field/FieldFormatter/ComputedStringFormatter.php from version 3 to version 4 of computed_field then I made a drush cr. After trying to delete a field I have the same issue. Is there something more to do ?
Thanks for your help.