[TYPO3-Solr] Solr and Gridelement
Davor Ilic
webfacer at gmail.com
Fri Nov 24 15:50:04 CET 2017
Hi,
may be this issue comes again. I am using now:
- typo3 8.7.8 LTS
- 7.1.11-1+ubuntu16.04.1+deb.sury.org+1
- Linux 4.4.0-101-generic
its a virtual machine typo3 is on own IP address x.x.x.111 and solr on its own x.x.x.112 and using Vagrant with VirtualBox.
So from the solr PageIndexerRequest the file_get_contents faild. But when i reconstruct same request on a "test.php"-file, on same vm as typo3. When run the test.php file it works, i am getting a page shown when i echo file_get_content.
This seems wierd since its the same method i am using as typo3 solr.
<?php
// had to write it like this, because its my first message on this forum and to write links i need 3 messages xD
$scheme = 'htps://'
$path = 'index.php?id=39&L=0';
$url = $scheme.'localhost/'.$path;
$options = [
'http' => [
#'header' => 'User-Agent: TYPO3/7.6.19 X-Tx-Solr-Iq: {"requestId":"595387e25580e","item":"168997","page":"29323","actions":"findUserGroups","hash":"d1a3659e59cf68f6ae111eb81c5207a6","loggingEnabled":"0"}',
#'User-Agent: TYPO3 X-Tx-Solr-Iq: {"requestId":"5a18226837c35","item":"2035","page":"394","actions":"findUserGroups","hash":"96320d4083a0d428b42747d366a9bf9e","loggingEnabled":"0"}"',
'header' => 'User-Agent: TYPO3 X-Tx-Solr-Iq: {"requestId":"5a1823033bf88","item":"1024","page":"0","actions":"findUserGroups","hash":"b852d97132b367b6dc2aead9a33d4523","loggingEnabled":"0"}',
'timeout' => 60
],
'ssl' => [
'verify_peer' => false,
'allow_self_signed' => true
]
];
$context = stream_context_create($options);
$content = file_get_contents($url, false, $context);
if ($content === false) {
throw new Exception('file_get_content ...');
}
echo $content;
More information about the TYPO3-project-solr
mailing list