- Issue created by @rolandoscott
- First commit to issue fork.
- @shubham_jain opened merge request.
- Status changed to Needs work
about 1 year ago 7:13am 14 September 2023 - 🇩🇪Germany jurgenhaas Gottmadingen
That error message sounds as if the classic modeller is providing a form element that's not an array, but a string.
So, in line 67 or the Tamper plugin, we should first verify if
is_array($value)
. - 🇮🇳India shubham_jain
@jurgenhaas, I have added the is_array($form[$key]) so that it checks whether the variable is array or not.
@keshavv, why it does not solves the error. Can you please explain it.
- 🇩🇪Germany jurgenhaas Gottmadingen
@jurgenhaas, I have added the is_array($form[$key]) so that it checks whether the variable is array or not.
Right, I missed that. But you can remove the
isset($form[$key]) &&
check as that is always set within that foreach loop. - 🇮🇳India shubham_jain
Hi @jurgenhaas, can you explain me why because I used so that it checks that it contains value or not.
Right, I missed that. But you can remove the isset($form[$key]) && check as that is always set within that foreach loop.
- 🇩🇪Germany jurgenhaas Gottmadingen
In this loop:
foreach ($form as $key => $value) { if (isset($form[$key])) { // THIS IS ALWAYS TRUE. } }
the
$form[$key]
is always set, it doesn't need to be tested. - Status changed to Needs review
about 1 year ago 11:19am 14 September 2023 - 🇩🇪Germany jurgenhaas Gottmadingen
Looks good to me. Now waiting for feedback from @keshavv
- 🇩🇪Germany jurgenhaas Gottmadingen
@shubham_jain see my comment in #12: it looks good to me, now we need a review from @keshavv
- 🇩🇪Germany jurgenhaas Gottmadingen
@keshavv any chance for getting a review from you since you've set this to "Needs work" before we addressed that?
-
jurgenhaas →
committed 832d7963 on 1.0.x authored by
shubham_jain →
Issue #3387153: TypeError: Cannot access offset of type string on string...
-
jurgenhaas →
committed 832d7963 on 1.0.x authored by
shubham_jain →
-
jurgenhaas →
committed d6f37d8e on 2.0.x authored by
shubham_jain →
Issue #3387153: TypeError: Cannot access offset of type string on string...
-
jurgenhaas →
committed d6f37d8e on 2.0.x authored by
shubham_jain →
- Status changed to Fixed
about 1 year ago 9:52am 13 October 2023 - 🇩🇪Germany jurgenhaas Gottmadingen
This is so disappointing when people are contributing or just leaving seemingly valuable comments, but then never get back to it, even when pinged or even approached directly. I have now merged this into 1.0.x and 2.0.x, not waiting for any of that never landing feedback.
Thanks @shubham_jain for your help on this.
Automatically closed - issue fixed for 2 weeks with no activity.
- Status changed to Fixed
9 months ago 9:47am 25 February 2024 - 🇵🇹Portugal jrochate
I had this exact problem, after updating to Drupal 10.2 and ECA 1.1.5 and ECA Tamper 1.0.5
After moving to ECA Tamper 1.0.x, with this commit, it worked again. Thanks all.