ext-solr icon indicating copy to clipboard operation
ext-solr copied to clipboard

[BUG] SiteRepository::getSiteByRootPageId() will raise PHP error instead of "No site could be found." when site config is missing

Open abderrazakTgtLevio opened this issue 1 year ago • 2 comments
trafficstars

Describe the bug In typo3 V12, with solr v12.0.2, an error message occurs when we try to open the "Index Queue" module, with a missing Solr configuration or by selecting the page with UID = 0.

To Reproduce Steps to reproduce the behavior:

  1. Go to "Index Queue" module
  2. Select Page with UID = 0 or a page without Solr configuration
  3. See error

solrError

Expected behavior An alert message displays the message : "No site could be found. Please choose other page in the page tree, which has solr configured."

Used versions

  • TYPO3 Version: 12.4.13
  • Browser: chrome
  • EXT:solr Version: 12.0.2
  • PHP Version: 8.2
  • MySQL Version: 8.0.23

abderrazakTgtLevio avatar May 10 '24 13:05 abderrazakTgtLevio

Fixed with 817b77d in v12.0.3.

spoonerWeb avatar May 16 '24 15:05 spoonerWeb

i'll try it, Thank you for your help.

abderrazakTgtLevio avatar May 16 '24 15:05 abderrazakTgtLevio

Fixed with 817b77d in v12.0.3.

dkd-kaehm avatar May 21 '24 07:05 dkd-kaehm