- Issue created by @ayush.pandey
- 🇬🇧United Kingdom aaron.ferris
Don't think this is the right module issue queue?
- Status changed to Needs review
8 months ago 1:25pm 7 August 2024 - 🇮🇳India sarwan_verma
Hi,
I have fixed this issue "Error: Cannot use object of type Drupal\Core\StringTranslation\TranslatableMarkup as array" and also attached patch,
please review and verify. - 🇳🇱Netherlands jeroen dost
Hi @sarwan_verma,
This does not seem to fix the problem. I still get the error. `$row['status']['data']` is of type TranslatableMarkup and should be handled like that. I don't know if it always is an object of that type, so we could check for it, but I could not get it to work. Problem starts probably because the status is not one of the statuses inSubscriptionManager getStatusLabel().
I can probably try to patch this next week.
- Status changed to Needs work
7 months ago 10:43am 13 September 2024 - 🇺🇸United States fathershawn New York
Moving back to "needs work" based on the review in #5
- 🇳🇱Netherlands jeroen dost
I cannot reproduce the error anymore. Maybe a setting was wrong before. If I come across it again, I will update this issue.
- Status changed to Postponed: needs info
7 months ago 3:13pm 19 September 2024 - Status changed to Closed: cannot reproduce
4 months ago 12:59pm 19 December 2024 - 🇳🇱Netherlands jeroen dost
The problem turned up again. I think it is related to the fact that the status column shows somehing different than
```
Subscriber::SUBSCRIPTION_CANCELLED => 'Cancelled',
Subscriber::SUBSCRIPTION_VERIFIED => 'Subscribed',
Subscriber::SUBSCRIPTION_NOT_VERIFIED => 'Not verified',
```
when the subscription is cancelled and the content is not synchronized (or when it is synchronized and status shows that).
Maybe `$row['status']['data']` or `$row['status']` is previously already set to a translatable markup and cannot be changed at this point?