RealURL in scheduler tasks

Questions around the TYPO3 integration and plugins
Forum rules
Always add your TYPO3, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
nvindice
Posts: 27
Joined: 16 May 2019, 16:20

RealURL in scheduler tasks

Post by nvindice » 16 May 2019, 16:24

Hi Aimeos team,

when using the scheduler task to create a sitemap or export products, the generated links are not rewritten by RealURL, meaning they have lots of parameters etc. How can I use the RealURL generated links?

Platform: Typo3 v8.7.26
Aimeos: 2018.10 (latest)
RealURL: 2.5.0
Set scheduler configuration: plugin.tx_aimeos.settings.client.html.catalog.detail.url.target = X

Regards,
Nils

EDIT: Some additional information - i activated RealURL logging and found the following entries for each product when manually starting an export job:

Code: Select all

Fri, 17 May 2019 09:48:11 +0200 [DEBUG] request="b25b11c11a109" component="DmitryDulepov.Realurl.Encoder.UrlEncoder": URL "?id=15&ai%5Bd_name%5D=Productname&ai%5Bd_prodid%5D=49&ai%5Bcontroller%5D=Catalog&ai%5Baction%5D=detail" cannot be encoded by realurl 
The url looks good, the regular logs look like this:

Code: Select all

Fri, 17 May 2019 10:28:32 +0200 [DEBUG] request="b5cb32e667890" component="DmitryDulepov.Realurl.Encoder.UrlEncoder": Found speaking url "produkt/d/49/Productname/" for original url "ai%5Baction%5D=detail&ai%5Bcontroller%5D=Catalog&ai%5Bd_name%5D=Productname&ai%5Bd_prodid%5D=49&id=15" and root page id 2 in cache 
There seems to be no difference but the parameter order and the ? at the beginning of the url.

Any ideas?

nvindice
Posts: 27
Joined: 16 May 2019, 16:20

Re: RealURL in scheduler tasks

Post by nvindice » 17 May 2019, 14:27

If anybody ever encounters the same problem: Use the "Aimeos shop advanced scheduler" instead of the regular scheduler task template.

Background: RealURL needs the TSFE to be initialized. In the standard scheduler task, Aimeos won't do that, in "advanced mode" (alias Email6-task) it will.

It might be a good idea to add this information here: https://aimeos.org/docs/TYPO3/Install_A ... uler_tasks - I installed Aimeos by this tutorial a few months ago and then added the sitemap task later, of course to the nightly job...

User avatar
aimeos
Administrator
Posts: 7836
Joined: 01 Jan 1970, 00:00

Re: RealURL in scheduler tasks

Post by aimeos » 20 May 2019, 22:06

Added to the documentation
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply