Page 3 of 4

Re: sitemap product url

Posted: 20 Apr 2017, 16:35
by Kai
Hey!

Is there a general problem with the TYPO3-Scheduler-Task?

We are using TYPO3 7.6.15 and aimeos 17.3. If we run a scheduler task by hand (clicking on the button in backend) it works fine. When the sheduler task is started by cli_dispatch.phpsh it doesn't work.

Best regards!
Kai

Re: sitemap product url

Posted: 21 Apr 2017, 16:13
by aimeos
The TYPO3 ObjectManager returns an incomplete UriBuilder object when called from the command line. Therefore, Aimeos has to build the object itself: https://github.com/aimeos/aimeos-typo3/ ... se.php#L93

We will use the same code in the next 16.10.5 version as well to support nice URLs in e-mails too.

Re: sitemap product url

Posted: 23 Apr 2017, 13:54
by 27bit.ru
aimeos wrote:We've backported the whole scheduler/URL stuff from the new 17.4.0 release because it's the only implementation that works with TYPO3 7.6.16, 8.7.x and Realurl from the command line. Can you please test it in your environment?
https://aimeos.org/fileadmin/download/a ... 5-pre2.zip
Yes, I installed pre2. But when I try to start the task of creating a sitemap in the scheduler, I get the error "No domain record in root page"

my typoconfig

Code: Select all

config.baseURL = http://new.site.ru

Re: sitemap product url

Posted: 24 Apr 2017, 10:33
by aimeos
You need a domain record entry in your TYPO3 root page so absolute URLs can be created. The baseURL setting has no effect in this case as it's only used for the <base> tag in the HTML head section.

Re: sitemap product url

Posted: 24 Apr 2017, 14:44
by 27bit.ru
27bit.ru wrote:
aimeos wrote:You can simply extract the previous version in your document root and change the links to "typo3_src"
The planner eliminated the error. When I create a sitemap I get a link (example)

Code: Select all

http://new.site.ru?id=13&ai%5Bcontroller%5D=catalog&ai%5Baction%5D=detail&ai%5Ba-name%5D=%D0%9A%D0%BE%D1%84%D0%B5%D0%B2%D0%B0%D1%80%D0%BA%D0%B0-Vigor-HX-2115&ai%5Bd-product-id%5D=1
But, if you go to the generated link, then the product page does not go over, and writes an error to frontend

Code: Select all

No product with ID "" found
to madminlog

Code: Select all

No product with ID "" found
#0 /home/virtwww/w_new-site/http/typo3conf/ext/aimeos/Resources/Private/Extensions/ai-client-html/client/html/src/Client/Html/Catalog/Detail/Standard.php(501): Aimeos\Client\Html\Catalog\Detail\Standard->getProductItem(NULL, Array)
#1 /home/virtwww/w_new-site/http/typo3conf/ext/aimeos/Resources/Private/Extensions/ai-client-html/client/html/src/Client/Html/Catalog/Detail/Standard.php(295): Aimeos\Client\Html\Catalog\Detail\Standard->setViewParams(Object(Aimeos\MW\View\Standard), Array, NULL)
#2 /home/virtwww/w_new-site/http/typo3conf/ext/aimeos/Classes/Controller/AbstractController.php(141): Aimeos\Client\Html\Catalog\Detail\Standard->getHeader()
#3 /home/virtwww/w_new-site/http/typo3conf/ext/aimeos/Classes/Controller/CatalogController.php(112): Aimeos\Aimeos\Controller\AbstractController->getClientOutput(Object(Aimeos\Client\Html\Catalog\Detail\Standard))
#4 [internal function]: Aimeos\Aimeos\Controller\CatalogController->detailAction()
#5 /home/virtwww/w_new-site/http/typo3_src-7.6.16/typo3/sysext/extbase/Classes/Mvc/Controller/ActionController.php(283): call_user_func_array(Array, Array)
#6 /home/virtwww/w_new-site/http/typo3_src-7.6.16/typo3/sysext/extbase/Classes/Mvc/Controller/ActionController.php(176): TYPO3\CMS\Extbase\Mvc\Controller\ActionController->callActionMethod()
#7 /home/virtwww/w_new-site/http/typo3_src-7.6.16/typo3/sysext/extbase/Classes/Mvc/Dispatcher.php(86): TYPO3\CMS\Extbase\Mvc\Controller\ActionController->processRequest(Object(TYPO3\CMS\Extbase\Mvc\Web\Request), Object(TYPO3\CMS\Extbase\Mvc\Web\Response))
#8 /home/virtwww/w_new-site/http/typo3_src-7.6.16/typo3/sysext/extbase/Classes/Mvc/Web/FrontendRequestHandler.php(69): TYPO3\CMS\Extbase\Mvc\Dispatcher->dispatch(Object(TYPO3\CMS\Extbase\Mvc\Web\Request), Object(TYPO3\CMS\Extbase\Mvc\Web\Response))
#9 /home/virtwww/w_new-site/http/typo3_src-7.6.16/typo3/sysext/extbase/Classes/Core/Bootstrap.php(206): TYPO3\CMS\Extbase\Mvc\Web\FrontendRequestHandler->handleRequest()
#10 /home/virtwww/w_new-site/http/typo3_src-7.6.16/typo3/sysext/extbase/Classes/Core/Bootstrap.php(193): TYPO3\CMS\Extbase\Core\Bootstrap->handleRequest()
#11 [internal function]: TYPO3\CMS\Extbase\Core\Bootstrap->run('', Array)
#12 /home/virtwww/w_new-site/http/typo3_src-7.6.16/typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php(7311): call_user_func_array(Array, Array)
#13 /home/virtwww/w_new-site/http/typo3_src-7.6.16/typo3/sysext/frontend/Classes/ContentObject/UserContentObject.php(40): TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer->callUserFunction('TYPO3\\CMS\\Extba...', Array, '')
#14 /home/virtwww/w_new-site/http/typo3_src-7.6.16/typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php(943): TYPO3\CMS\Frontend\ContentObject\UserContentObject->render(Array)
#15 /home/virtwww/w_new-site/http/typo3_src-7.6.16/typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php(859): TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer->render(Object(TYPO3\CMS\Frontend\ContentObject\UserContentObject), Array)
#16 /home/virtwww/w_new-site/http/typo3_src-7.6.16/typo3/sysext/frontend/Classes/Controller/TypoScriptFrontendController.php(3577): TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer->cObjGetSingle('USER', Array)
#17 /home/virtwww/w_new-site/http/typo3_src-7.6.16/typo3/sysext/frontend/Classes/Controller/TypoScriptFrontendController.php(3522): TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController->INTincScript_process(Array)
#18 /home/virtwww/w_new-site/http/typo3_src-7.6.16/typo3/sysext/frontend/Classes/Controller/TypoScriptFrontendController.php(3488): TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController->recursivelyReplaceIntPlaceholdersInContent()
#19 /home/virtwww/w_new-site/http/typo3_src-7.6.16/typo3/sysext/frontend/Classes/Http/RequestHandler.php(232): TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController->INTincScript()
#20 /home/virtwww/w_new-site/http/typo3_src-7.6.16/typo3/sysext/core/Classes/Core/Bootstrap.php(302): TYPO3\CMS\Frontend\Http\RequestHandler->handleRequest(Object(TYPO3\CMS\Core\Http\ServerRequest))
#21 /home/virtwww/w_new-site/http/typo3_src-7.6.16/typo3/sysext/frontend/Classes/Http/Application.php(78): TYPO3\CMS\Core\Core\Bootstrap->handleRequest(Object(TYPO3\CMS\Core\Http\ServerRequest))
#22 /home/virtwww/w_new-site/http/typo3_src-7.6.16/index.php(33): TYPO3\CMS\Frontend\Http\Application->run()
#23 [internal function]: {closure}()
#24 /home/virtwww/w_new-site/http/typo3_src-7.6.16/index.php(34): call_user_func(Object(Closure))
#25 {main}
Nothing has changed, everything has remained the same.

Re: sitemap product url

Posted: 25 Apr 2017, 11:33
by aimeos
For some reason the patch was not included in the package. Please try this one instead:
https://aimeos.org/fileadmin/download/a ... 5-pre3.zip

Re: sitemap product url

Posted: 25 Apr 2017, 14:10
by 27bit.ru
aimeos wrote:For some reason the patch was not included in the package. Please try this one instead:
https://aimeos.org/fileadmin/download/a ... 5-pre3.zip
Nothing has changed, everything has remained the same.

Re: sitemap product url

Posted: 25 Apr 2017, 22:19
by aimeos
We've found out that the code for generating the sitemap was OK but existing sitemap files were not overwritten. This is fixed now:
https://aimeos.org/fileadmin/download/a ... 5-pre4.zip

Re: sitemap product url

Posted: 26 Apr 2017, 04:38
by 27bit.ru
aimeos wrote:We've found out that the code for generating the sitemap was OK but existing sitemap files were not overwritten. This is fixed now:
https://aimeos.org/fileadmin/download/a ... 5-pre4.zip
url

Code: Select all

http://new.site.ru?id=13&ai%5Bcontroller%5D=catalog&ai%5Baction%5D=detail&ai%5Bd_name%5D=%D0%9A%D0%BE%D1%84%D0%B5%D0%B2%D0%B0%D1%80%D0%BA%D0%B0_Vigor_HX-2115&ai%5Bd_prodid%5D=1
aimeos log

Code: Select all

No product with ID "" found
#0 /home/virtwww/w_new-site/http/typo3conf/ext/aimeos/Resources/Private/Extensions/ai-client-html/client/html/src/Client/Html/Catalog/Detail/Standard.php(501): Aimeos\Client\Html\Catalog\Detail\Standard->getProductItem(NULL, Array)
#1 /home/virtwww/w_new-site/http/typo3conf/ext/aimeos/Resources/Private/Extensions/ai-client-html/client/html/src/Client/Html/Catalog/Detail/Standard.php(295): Aimeos\Client\Html\Catalog\Detail\Standard->setViewParams(Object(Aimeos\MW\View\Standard), Array, NULL)
#2 /home/virtwww/w_new-site/http/typo3conf/ext/aimeos/Classes/Controller/AbstractController.php(141): Aimeos\Client\Html\Catalog\Detail\Standard->getHeader()
#3 /home/virtwww/w_new-site/http/typo3conf/ext/aimeos/Classes/Controller/CatalogController.php(112): Aimeos\Aimeos\Controller\AbstractController->getClientOutput(Object(Aimeos\Client\Html\Catalog\Detail\Standard))
#4 [internal function]: Aimeos\Aimeos\Controller\CatalogController->detailAction()
#5 /home/virtwww/w_new-site/http/typo3_src-7.6.16/typo3/sysext/extbase/Classes/Mvc/Controller/ActionController.php(283): call_user_func_array(Array, Array)
#6 /home/virtwww/w_new-site/http/typo3_src-7.6.16/typo3/sysext/extbase/Classes/Mvc/Controller/ActionController.php(176): TYPO3\CMS\Extbase\Mvc\Controller\ActionController->callActionMethod()
#7 /home/virtwww/w_new-site/http/typo3_src-7.6.16/typo3/sysext/extbase/Classes/Mvc/Dispatcher.php(86): TYPO3\CMS\Extbase\Mvc\Controller\ActionController->processRequest(Object(TYPO3\CMS\Extbase\Mvc\Web\Request), Object(TYPO3\CMS\Extbase\Mvc\Web\Response))
#8 /home/virtwww/w_new-site/http/typo3_src-7.6.16/typo3/sysext/extbase/Classes/Mvc/Web/FrontendRequestHandler.php(69): TYPO3\CMS\Extbase\Mvc\Dispatcher->dispatch(Object(TYPO3\CMS\Extbase\Mvc\Web\Request), Object(TYPO3\CMS\Extbase\Mvc\Web\Response))
#9 /home/virtwww/w_new-site/http/typo3_src-7.6.16/typo3/sysext/extbase/Classes/Core/Bootstrap.php(206): TYPO3\CMS\Extbase\Mvc\Web\FrontendRequestHandler->handleRequest()
#10 /home/virtwww/w_new-site/http/typo3_src-7.6.16/typo3/sysext/extbase/Classes/Core/Bootstrap.php(193): TYPO3\CMS\Extbase\Core\Bootstrap->handleRequest()
#11 [internal function]: TYPO3\CMS\Extbase\Core\Bootstrap->run('', Array)
#12 /home/virtwww/w_new-site/http/typo3_src-7.6.16/typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php(7311): call_user_func_array(Array, Array)
#13 /home/virtwww/w_new-site/http/typo3_src-7.6.16/typo3/sysext/frontend/Classes/ContentObject/UserContentObject.php(40): TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer->callUserFunction('TYPO3\\CMS\\Extba...', Array, '')
#14 /home/virtwww/w_new-site/http/typo3_src-7.6.16/typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php(943): TYPO3\CMS\Frontend\ContentObject\UserContentObject->render(Array)
#15 /home/virtwww/w_new-site/http/typo3_src-7.6.16/typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php(859): TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer->render(Object(TYPO3\CMS\Frontend\ContentObject\UserContentObject), Array)
#16 /home/virtwww/w_new-site/http/typo3_src-7.6.16/typo3/sysext/frontend/Classes/Controller/TypoScriptFrontendController.php(3577): TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer->cObjGetSingle('USER', Array)
#17 /home/virtwww/w_new-site/http/typo3_src-7.6.16/typo3/sysext/frontend/Classes/Controller/TypoScriptFrontendController.php(3522): TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController->INTincScript_process(Array)
#18 /home/virtwww/w_new-site/http/typo3_src-7.6.16/typo3/sysext/frontend/Classes/Controller/TypoScriptFrontendController.php(3488): TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController->recursivelyReplaceIntPlaceholdersInContent()
#19 /home/virtwww/w_new-site/http/typo3_src-7.6.16/typo3/sysext/frontend/Classes/Http/RequestHandler.php(232): TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController->INTincScript()
#20 /home/virtwww/w_new-site/http/typo3_src-7.6.16/typo3/sysext/core/Classes/Core/Bootstrap.php(302): TYPO3\CMS\Frontend\Http\RequestHandler->handleRequest(Object(TYPO3\CMS\Core\Http\ServerRequest))
#21 /home/virtwww/w_new-site/http/typo3_src-7.6.16/typo3/sysext/frontend/Classes/Http/Application.php(78): TYPO3\CMS\Core\Core\Bootstrap->handleRequest(Object(TYPO3\CMS\Core\Http\ServerRequest))
#22 /home/virtwww/w_new-site/http/typo3_src-7.6.16/index.php(33): TYPO3\CMS\Frontend\Http\Application->run()
#23 [internal function]: {closure}()
#24 /home/virtwww/w_new-site/http/typo3_src-7.6.16/index.php(34): call_user_func(Object(Closure))
#25 {main}

Re: sitemap product url

Posted: 26 Apr 2017, 08:18
by aimeos
URLs in sitemaps are escaped (& -> &) which you have to revert first before you can open the URL in your browser:

http://new.site.ru?id=13&ai%5Bcontrolle ... rodid%5D=1