Skip to content

InvalidArgumentException error when journal does not use site level default locale #157

@ajnyga

Description

@ajnyga

Hi,

It seems that the CitationStyleLanguage plugin does not behave well if a journal is using a locale that is not the default locale of the OJS site.

For example in our case the site level locale is fi and the only locale that the journal is using is en.

This causes a lot of errors like:
[06-Nov-2025 11:40:46 Europe/Helsinki] InvalidArgumentException: Invalid/unsupported locale "fi", default locale restored in lib/pkp/classes/i18n/Locale.php:144

Enabling the fi locale in the journal removes the errors.

This is in 3.4 stable.

ping @asmecher, you maybe handle this plugin?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions