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 8 compatibility -> "Warning: Undefined array key "en" in /lib/plugins/datatables/action.php on line 101 #59

Open
mikeploeger opened this issue May 2, 2021 · 3 comments

Comments

@mikeploeger
Copy link

mikeploeger commented May 2, 2021

If the plugin operates under PHP8, it generates the following error on every DokuWiki Page:

PHP 8 compatibility -> "Warning: Undefined array key "en" in /lib/plugins/datatables/action.php on line 101

Are any fixes available?

@mikeploeger
Copy link
Author

Edit action.php:

Old:

        'sq'          => 'Albanian',
    );

New:

        'sq'          => 'Albanian',
        'en'          => 'English',
    );

@mikeploeger
Copy link
Author

If you want a PR @giterlizzi ?

@demiankatz
Copy link

demiankatz commented Nov 11, 2022

I encountered the same problem, and came up with the same workaround. But I'm not entirely clear on what the purpose of the i18n property is. It looks like it's being used to load files that match the pattern /assets/datatables.net-plugins/i18n/en/English.lang but there are no files at all in /assets/datatables.net-plugins/i18n. Is all of this logic pointless, or am I misunderstanding something?

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