[TYPO3-Solr] Difference in link creation between pages and other records

Stephan Schuler Stephan.Schuler at netlogix.de
Wed Apr 23 12:55:58 CEST 2014


Hey there.

I guess the problem isn't directly related to Solr creating environment data wrong. I think it's about frontend environment objects being created when CLI is already present.

If I remember correctly, at some point I had to "cd" into the typo3 directory and call "./cli_dispatcher.php" there instead of directly calling /var/www/myhost/Web/typo3/cli_dispatcher.php, because the later one made some path constants being initialized wrong. So my current crontab link looks like this:
> * * * * * cd /var/www/myhost/Web/typo3 && ./cli_dispatcher.php

I don't remember if that is related to Solr indexing, but I remember having such wired things make difference between CLI, BE and FE calls. Just give it a try, can't hurt.

Regards,


Stephan Schuler
Web-Entwickler

Telefon: +49 (911) 539909 - 0
E-Mail: Stephan.Schuler at netlogix.de
Website: media.netlogix.de



-----------------------------
Citrix Netscaler: Schneller, besser, weiter
Erfahren Sie, wie Sie Applikationen für den mobilen Gebrauch sicher und einfach bereitstellen. Jetzt anmelden zum netlogix-Event am 29.04.2014:
http://it-training.netlogix.de/angebote/events/citrix-netscaler
------------------------------------



--
netlogix GmbH & Co. KG
IT-Services | IT-Training | Media
Neuwieder Straße 10 | 90411 Nürnberg
Telefon: +49 (911) 539909 - 0 | Fax: +49 (911) 539909 - 99
E-Mail: info at netlogix.de | Internet: http://www.netlogix.de

netlogix GmbH & Co. KG ist eingetragen am Amtsgericht Nürnberg (HRA 13338)
Persönlich haftende Gesellschafterin: netlogix Verwaltungs GmbH (HRB 20634)
Umsatzsteuer-Identifikationsnummer: DE 233472254
Geschäftsführer: Stefan Buchta, Matthias Schmidt



-----Ursprüngliche Nachricht-----
Von: typo3-project-solr-bounces at lists.typo3.org [mailto:typo3-project-solr-bounces at lists.typo3.org] Im Auftrag von Jigal van Hemert
Gesendet: Mittwoch, 23. April 2014 12:29
An: typo3-project-solr at lists.typo3.org
Betreff: Re: [TYPO3-Solr] Difference in link creation between pages and other records

Hi,

On 23-4-2014 10:25, Stephan Schuler wrote:
> Pages and records do render differently. The described behavior
> clearly is a bug in either the server configuration (which might
> include TypoScript) or Solr itself. But it is definitively related to
> pages and records initializing the FE environment differently.
>
> Both, pages and records are fetched in the indexing queue mechanism by
> scheduler tasks.
>
> If the record to be indexed is a page, the related frontend page gets
> called by curl (or file_get_contents, depending on server

EXT:solr uses non-speaking URLs here, which is fine, because the page content is retrieved correctly.

The problem seems to be more related to the processing needed for other fields.

> If the record to be indexed is not a page, the scheduler task itself
> creates a TSFE object and some other objects that usually indicate
> frontend behavior.

Maybe the environment created for indexing records is a better representation of the actual frontend environment.

> I suggest you to debug either typolink or RealURL. I cannot tell you
> why this happens because my setups do run fine. But I'm quite sure
> it's related to some str_replace with environment data inside of
> typolink.

I think that RealURL can be ruled out. I disabled it and the URLs had the same file system path prefixed, just with index.php instead of a speaking path.

I'll dig some more in the frontend environment which is created in both cases.

Thanks for thinking about this issue!

--
Jigal van Hemert
TYPO3 CMS Active Contributor

TYPO3 .... inspiring people to share!
Get involved: typo3.org
_______________________________________________
TYPO3-project-solr mailing list
TYPO3-project-solr at lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-solr


More information about the TYPO3-project-solr mailing list