Skip to content
This repository was archived by the owner on Aug 8, 2022. It is now read-only.
This repository was archived by the owner on Aug 8, 2022. It is now read-only.

Sitemap...Task uses wrong path to write sitemap_txt and sitemap_xml #518

Open
@tgaertner

Description

@tgaertner

MetaSEO version: *

TYPO3 version: *

PHP version: *

Don't get it, why could this ever worked...???

The Scheduler/Task/SitemapTxtTask.php and .../SitemapXmlTask.php create pathes like this:

PATH_site . '/' . $this->sitemapDir

PAH_site is by definition "Absolute path of the document root of the instance with trailing slash"
so the path will be always something like

path/to/webroot//uploads/tx_metaseo/sitemap_xml with 2 slashes!

I get axacly this error message in Scheduler Task
Ausführung fehlgeschlagen: 0, DirectoryIterator::__construct(/html/htdocs/web//uploads/tx_metaseo/sitemap_xml): failed to open dir: No such file or directory"

I checked the core back up to 6.2 - it has not changed
I checked metaseo extension coded - it has also not changed since all versions available on github.
So where is the mistake??

Normally I would say the part has to be changed to
PATH_site . $this->sitemapDir

Greetings Tobi

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions