backdrop-ops / localize.backdropcms.org

Host translation files for Backdrop CMS.
2 stars 4 forks source link

PHP error: implode(): Argument #2 ($array) must be of type ?array, string given #48

Open lourdas opened 6 months ago

lourdas commented 6 months ago

While translating Backdrop for the Greek language, I got this error:

Screenshot_20240211_093954

I got this error, while using the filter conditions:

Screenshot_20240211_094331

There are a couple of terms that have singular and plural in this page, in case this helps.

argiepiano commented 6 months ago

@lourdas thanks for reporting. For the record, the full error is:

Screen Shot 2024-02-11 at 7 39 18 AM
argiepiano commented 6 months ago

@lourdas I"m trying to reproduce. I can't set the filter "Release". For me there is no 1.27 option there. Can you provide more details about how you got to that page?

Screen Shot 2024-02-11 at 7 47 07 AM
lourdas commented 6 months ago

You have to select the Greek language, then click on Translate, Reveal more filters, Project -> Backdrop CMS, Release -> 1.27, Status -> Untranslated and click on Filter.

argiepiano commented 6 months ago

OK, I was able to get the 1.27 filter. I'm looking at the Greek translations. I see only 413 pages - your screenshot shows you are on page 439 - are you looking at Greek translations?

Screen Shot 2024-02-11 at 7 51 46 AM
lourdas commented 6 months ago

Yeah, I'm in the process on translating right now, so, I guess the page is not valid anymore, the untranslated pages are less now. Let me check if I can find this specific page.

argiepiano commented 6 months ago

I'm looking at the code that produced the error. It's called only twice, from the submit handler for the translation form (l10n_community_translate_form_submit()), and from a function that creates a form segment for translated strings (_l10n_community_translate_translation()) So, I suspect this is happening in the second one, when the site tries to build the form for a specific string.

lourdas commented 6 months ago

I don't seem to find the page, sorry. I've translated a lot of strings since this morning and it happened only at that specific page when I created the issue. If it happens again, I will let you know here, so at the moment please leave this open.

argiepiano commented 6 months ago

Sounds good. Thanks