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 Warning: Undefined array key 0/1 in page indexer TYPO3 11.5 / PHP 8.1 #158

Closed
KHReinhardt opened this issue May 10, 2023 · 2 comments · Fixed by #161
Closed

PHP Warning: Undefined array key 0/1 in page indexer TYPO3 11.5 / PHP 8.1 #158

KHReinhardt opened this issue May 10, 2023 · 2 comments · Fixed by #161

Comments

@KHReinhardt
Copy link

I get the following PHP warnings at some point if I run indexing with the page indexer in ke_search 4.6.2. Many pages can be indexed though. Any hints as to how to fix this?
PHP Warning: Undefined array key 0 in \ke_search\Classes\Indexer\Types\Page.php line 691
PHP Warning: Undefined array key 1 in \ke_search\Classes\Indexer\Types\Page.php line 691

@KHReinhardt
Copy link
Author

KHReinhardt commented May 11, 2023

As a workaround I changed all content elements with sys_language_uid = -1 to sys_language_uid = 0 in the tt_content table. But that only works for us because there are not so many, since we need to provide them in another language version.

@christianbltr
Copy link
Member

For reference, this has been fixed with

d0a8920

and

5a9ce70

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

Successfully merging a pull request may close this issue.

2 participants