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

"Only variables should be assigned by reference" in IndexQueue\Indexer::preAddModifyDocuments() #1183

Closed
LeoniePhiline opened this issue Mar 22, 2017 · 0 comments

Comments

@LeoniePhiline
Copy link

Depending on your settings, this fails loudly or silently:

https://github.com/TYPO3-Solr/ext-solr/blob/master/Classes/IndexQueue/Indexer.php#L474

$documentsModifier = &GeneralUtility::getUserObj($classReference);

Fails with:

"PHP Runtime Notice: Only variables should be assigned by reference in /srv/ext/system/www/trefwoord76.development.netcreators.info/typo3conf/ext/solr/Classes/IndexQueue/Indexer.php line 468"

(Line 468 in solr 6.0.0 - in the current master this is line 474.)

Please remove the ampersand sign. :)

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

No branches or pull requests

2 participants