Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
lourdas opened this issue Feb 11, 2024 · 8 comments

Comments

@lourdas
Copy link

lourdas commented Feb 11, 2024

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
Copy link
Contributor

argiepiano commented Feb 11, 2024

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

Screen Shot 2024-02-11 at 7 39 18 AM

@argiepiano
Copy link
Contributor

@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
Copy link
Author

lourdas commented Feb 11, 2024

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
Copy link
Contributor

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
Copy link
Author

lourdas commented Feb 11, 2024

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
Copy link
Contributor

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
Copy link
Author

lourdas commented Feb 11, 2024

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
Copy link
Contributor

Sounds good. Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants