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

[BUG] Error when indexing pages with field processing instruction categoryUidToHierarchy #3445

Closed
Oktopuce opened this issue Jan 3, 2023 · 0 comments · Fixed by #3446
Closed

Comments

@Oktopuce
Copy link

Oktopuce commented Jan 3, 2023

Describe the bug
When indexing solr queue with a field processing instruction configured as defined bellow, there is an error :

0: TypeError: ApacheSolrForTypo3\Solr\FieldProcessor\CategoryUidToHierarchy::getSolrRootlineForCategoryId(): Argument #1 ($categoryId) must be of type int, string given, called in /var/www/html/web/typo3conf/ext/solr/Classes/FieldProcessor/CategoryUidToHierarchy.php on line 83 and defined in /var/www/html/web/typo3conf/ext/solr/Classes/FieldProcessor/CategoryUidToHierarchy.php:98
Stack trace:

To Reproduce

  1. Set this configuration for the domain hierarchy
plugin.tx_solr {
    index {
        fieldProcessingInstructions {
            domaineHierarchy_stringM = categoryUidToHierarchy
        }
        queue {
            avis = 1
            avis {
                table = tx_myext_domain_model_avis
                fields {
                    domaineHierarchy_stringM = SOLR_RELATION
                    domaineHierarchy_stringM {
                        localField = domaine
                        foreignLabelField = uid
                        multiValue = 1
                      }
                }
            }
        }
    }
}
  1. Set the task "Index Queue Worker (solr)" in the BE scheduler
  2. Add data to index
  3. Run the scheduler indexation task

Expected behavior
Queue should be indexed without error.

Used versions (please complete the following information):

  • TYPO3 Version: 11.5.21
  • Browser: Chromium
  • EXT:solr Version: 11.5.1
  • Used Apache Solr Version: 8.11.2
  • PHP Version: 8.0.26
  • MySQL Version: [e.g. 8.0.0]
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.

1 participant