TYPO3 v7.6.19:solr PHP警告:无法打开流:达到重定向限制

问题描述:

我有问题,我想使用TYPO3扩展apache“solr”来索引网站,但得到solr错误的页面许多重定向。如果我“现在指数”按下按钮,我得到以下的Solr日志:TYPO3 v7.6.19:solr PHP警告:无法打开流:达到重定向限制

  1. TYPO3 \ CMS \核心\错误\异常:PHP的警告:的file_get_contents(https://example.com/index.php?id=29323&L=0):未能打开流:重定向达到上限,中止in /var/www/html/typo3conf/ext/solr/Classes/IndexQueue/PageIndexerRequest.php 404行/var/www/vendor/typo3/cms/typo3/sysext/core/Classes/Error/ErrorHandler.php:111
  2. 日志从nginx的HTTPS访问日志: 2001:67C:2090 :: 1:BBD - - [22 /月/ 2017:18:59:34 0200]“GET

    的index.php? id = 29323 & L = 0 HTTP/1.0 “200 87” - “”TYPO3/7.6.19“

    2001:67c:2090 :: 1:bbd - - [22/Jun/2017:18:59:35 +0200]”GET /index.php ?id = 29323 & L = 0 HTTP/1.0“303 0” - “”TYPO3/7.6.19“

    2001:67c:2090 :: 1:bbd - - [22/Jun/2017:18:59 :35 +0200]“GET /index.php?id=29323 & L = 0 HTTP/1.0”303 0“ - ”“TYPO3/7.6.19”

    2001:67c:2090 :: 1:bbd - - [22/Jun/2017:18:59:35 +0200]“GET /index.php?id=29323 & L = 0 HTTP/1.0”303 0“ - ”“TYPO3/7.6.19”

    2001:67c:2090 :: 1:bbd - - [22/Ju 2017/18:59:36 +0200]“GET /index.php?id=29323 & L = 0 HTTP/1.0”303 0“ - ”“TYPO3/7.6.19”

    2001:67c: 2090 :: 1:bbd - - [22/Jun/2017:18:59:36 +0200]“GET /index.php?id=29323 & L = 0 HTTP/1.0”303 0“ - ”“TYPO3/7.6 .19“

    2001:67c:2090 :: 1:bbd - - [22/Jun/2017:18:59:36 +0200]”GET /index.php?id=29323 & L = 0 HTTP/1.0“303 0” - “”TYPO3/7.6.19“

    2001:67c:2090 :: 1:bbd - - [22/Jun/2017:18:59:37 +0200]”GET/index。 php?id = 29323 & L = 0 HTTP/1.0“303 0” - “”TYPO3/7.6.19“

    2001:67c:2090 :: 1:bbd - - [22/Jun/2017:18:59:37 +0200]“GET /index.php?id=29323 & L = 0 HTTP/1.0”303 0 “ - ”“TYPO3/7.6.19”

    2001:67c:2090 :: 1:bbd - - [22/Jun/2017:18:59:37 +0200]“GET /index.php?id= 29323 & L = 0 HTTP/1.0“303 0” - “”TYPO3/7.6.19“

    2001:67c:2090 :: 1:bbd - - [22/Jun/2017:18:59:37 + 0200] “GET /index.php?id=29323 & L = 0 HTTP/1.0” 303 0 “ - ” “TYPO3/19年7月6日”

由于对重定向的solr canno t为页面编制索引。我想知道为什么会发生这种情况。这是来自solr-extension,TYPO3还是服务器上的问题,或者我该如何调试这个问题?

解决它。这是一个连接到OAuth2的内容元素。出于某种原因,Ext:solr会调用Custom Content Element来解析它。所以每次尝试调用它时,都会在循环中重定向。所以为了解决这个问题,我使用了Headers。如果Typo3头被调用,而不是浏览器,它不应该解析这个内容元素。 所以我只是从解析它中删除了这个元素。

任何WAF? HTACCESS未修改?漆?

+0

没有htaccess我们正在使用nginx。对于WAF我不得不问。我会告诉你。 – webfacer

如果您使用的是PHP重定向这是因为他们不能在任何时间被发送,但你可以用JavaScript重定向切换他们,这工作没有任何问题