Closed markus7777777 closed 2 weeks ago
Just update des Custom Fields Plugin to the latest version and the error will go away.
I bought the new version of the plugin but that didn't solve the issue.
The Auto Tag Column inside activities responds : "A string is necessary"
If i want to disable the custom field - the error from my initial issue pops up.
[2024-06-02 15:13:45] [request] CRITICAL: Uncaught PHP Exception Error: "Call to a member function getValues() on array" at MetaFieldRuleForm.php line 161 {"exception":"[object] (Error(code: 0): Call to a member function getValues() on array at /var/www/kimai/var/plugins/MetaFieldsBundle/Form/MetaFieldRuleForm.php:161)"} []
[2024-06-02 15:13:44] [request] INFO: Matched route "custom_meta_fields_edit". {"route":"custom_meta_fields_edit","route_parameters":{"_route":"custom_meta_fields_edit","_controller":"KimaiPlugin\\MetaFieldsBundle\\Controller\\MetaFieldsController::editAction","_locale":"de","id":"45"},"request_uri":"http://kimai.local/de/admin/custom-meta-fields/45/edit","method":"POST"} []
You don't need to buy a new version for an update, if you have an active subscription.
If i want to disable the custom field - the error from my initial issue pops up.
What does that mean? How do you try to disable the field? Do you mean if you remove all tags from the field?
You need at least the plugin version 2.6. better 2.7.0.
Can you show me the output:
bin/console kimai:version
bin/console kimai:plugins
I had to purchase a new version because it was no longer available in my Lemonsqueezy account. I dont know why?
What does that mean? How do you try to disable the field? Do you mean if you remove all tags from the field?
My aim is to edit activities -> rename them -> add further tags -> disable visibility of some activites... All of these scenarios dont work.
bin/console kimai:version -> Kimai 2.17.0 by Kevin Papst.
You need at least the plugin version 2.6. better 2.7.0.
Can you show me the output:
bin/console kimai:version bin/console kimai:plugins
The latest Plugin Version available is 2.5.0 (LemonSqueezy)
Please login at https://license.kimai.org/ and fetch the latest version
I updated the Bundle but the error is still here.
[2024-06-05 16:31:15] [request] CRITICAL: Uncaught PHP Exception Error: "Call to a member function getValues() on array" at MetaFieldRuleForm.php line 161 {"exception":"[object] (Error(code: 0): Call to a member function getValues() on array at /var/www/kimai/var/plugins/MetaFieldsBundle/Form/MetaFieldRuleForm.php:161)"} [] [2024-06-05 16:31:15] [request] INFO: Matched route "custom_meta_fields_edit". {"route":"custom_meta_fields_edit","route_parameters":{"_route":"custom_meta_fields_edit","_controller":"KimaiPlugin\\MetaFieldsBundle\\Controller\\MetaFieldsController::editAction","_locale":"de_AT","id":"45"},"request_uri":"http://kimai.local/de_AT/admin/custom-meta-fields/45/edit","method":"POST"} []
I am not able to reproduce it. Sorry, but can you try to reproduce it in the demo: https://www.kimai.org/en/demo.html If it fails there as well, what is it that you are doing exactly? Like step-by-step.
Thank you very much for your help. I tried to reproduce the problem on the demo version. In the demo it works fine and without any problems.
Please have a look into the attached pdf where I tried to reproduce the error.
Ok, I think found the problem. If you have a lot of tags (more than 500) another dropdown type is used. And one of them fails.
For this tag there are 7087 Timesheet entries. In sum, we have 3 different Tags.
Can you please update to plugin version 2.8.0 and retry?
Can you please update to plugin version 2.8.0 and retry?
Thanks a lot! That solved the issue!
Discussed in https://github.com/kimai/Paid-plugins/discussions/163