Questions around the TYPO3 integration and plugins as well as Flow and NeosCMS
Forum rules: Always add your TYPO3/Flow, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
#4144 by Kai
20 Apr 2017, 16:35
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
#4148 by aimeos
21 Apr 2017, 16:13
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/blob/2017.04/Classes/Scheduler/Base.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.
#4150 by 27bit.ru
23 Apr 2017, 13:54
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/aimeos_16.10.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 allconfig.baseURL = http://new.site.ru
#4151 by aimeos
24 Apr 2017, 10:33
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.
#4153 by 27bit.ru
24 Apr 2017, 14:44
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 allhttp://new.site.ru?id=13&amp;ai%5Bcontroller%5D=catalog&amp;ai%5Baction%5D=detail&amp;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&amp;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 allNo product with ID "" found


to madminlog
Code: Select allNo 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.
#4168 by 27bit.ru
26 Apr 2017, 04:38
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/aimeos_16.10.5-pre4.zip


url
Code: Select allhttp://new.site.ru?id=13&amp;ai%5Bcontroller%5D=catalog&amp;ai%5Baction%5D=detail&amp;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&amp;ai%5Bd_prodid%5D=1


aimeos log
Code: Select allNo 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}