Page 1 of 1

Update script does not longer work after update from 16.7

Posted: 18 Nov 2016, 10:49
by gilbertsoft
Hi there

Yesterday I did an update of T3 from 7.6.11 to 7.6.12 and aimeos from 16.7 to 16.10.1 but now the extension update script does not longer work. Seems the autoloader does not find a file:

PHP Warning: file_exists(): open_basedir restriction in effect. File(/usr/share/pear/MW/Setup/Task/TablesCreateMShop.php) is not within the allowed path(s): (/var/www/clients/client15/web7/web:/var/www/clients/client15/web7/private:/var/www/clients/client15/web7/tmp:/var/www/zwergenfabrik.ch/web:/srv/www/zwergenfabrik.ch/web:/usr/share/php5:/usr/share/php:/tmp:/usr/share/phpmyadmin:/etc/phpmyadmin:/var/lib/phpmyadmin:/usr/bin/gm:/usr/lib/x86_64-linux-gnu/ImageMagick-6.8.9/bin-Q16) in /var/www/clients/client15/web7/web/typo3conf/ext/aimeos/Resources/Libraries/aimeos/aimeos-core/Bootstrap.php line 80
#0 [internal function]: TYPO3\CMS\Core\Error\ErrorHandler->handleError(2, 'file_exists(): ...', '/var/www/client...', 80, Array)
#1 /var/www/clients/client15/web7/web/typo3conf/ext/aimeos/Resources/Libraries/aimeos/aimeos-core/Bootstrap.php(80): file_exists('/usr/share/pear...')
#2 [internal function]: Aimeos\Bootstrap::autoload('Aimeos\\MW\\Setup...')
#3 /var/www/clients/client15/web7/web/typo3conf/ext/aimeos/Resources/Libraries/aimeos/aimeos-core/lib/mshoplib/setup/TablesCreatePlatform.php(16): spl_autoload_call('Aimeos\\MW\\Setup...')
#4 /var/www/clients/client15/web7/web/typo3conf/ext/aimeos/Resources/Libraries/aimeos/aimeos-core/lib/mwlib/src/MW/Setup/Manager/Base.php(54): include_once('/var/www/client...')
#5 /var/www/clients/client15/web7/web/typo3conf/ext/aimeos/Resources/Libraries/aimeos/aimeos-core/lib/mwlib/src/MW/Setup/Manager/Base.php(79): Aimeos\MW\Setup\Manager\Base->includeFile('/var/www/client...')
#6 /var/www/clients/client15/web7/web/typo3conf/ext/aimeos/Resources/Libraries/aimeos/aimeos-core/lib/mwlib/src/MW/Setup/Manager/Multiple.php(258): Aimeos\MW\Setup\Manager\Base->createTasks(Array, Object(Aimeos\MW\Setup\DBSchema\Mysql), Object(Aimeos\MW\DB\Connection\DBAL), Object(Aimeos\MShop\Context\Item\Standard))
#7 /var/www/clients/client15/web7/web/typo3conf/ext/aimeos/Resources/Libraries/aimeos/aimeos-core/lib/mwlib/src/MW/Setup/Manager/Multiple.php(69): Aimeos\MW\Setup\Manager\Multiple->setupTasks(Array, Array, Array)
#8 /var/www/clients/client15/web7/web/typo3conf/ext/aimeos/Classes/Setup.php(111): Aimeos\MW\Setup\Manager\Multiple->__construct(Object(Aimeos\MW\DB\Manager\DBAL), Array, Array, Object(Aimeos\MShop\Context\Item\Standard))
#9 /var/www/clients/client15/web7/web/typo3temp/ExtensionManager/UpdateScripts/ext_update9db0a92204a53e69894c4bc712cd3591.php(47): Aimeos\Aimeos\Setup::execute()
#10 /var/www/clients/client15/web7/private/typo3_src-7.6.12/typo3/sysext/extensionmanager/Classes/Utility/UpdateScriptUtility.php(39): ext_update9db0a92204a53e69894c4bc712cd3591->main()
#11 /var/www/clients/client15/web7/private/typo3_src-7.6.12/typo3/sysext/extensionmanager/Classes/Controller/UpdateScriptController.php(55): TYPO3\CMS\Extensionmanager\Utility\UpdateScriptUtility->executeUpdateIfNeeded('aimeos')
#12 [internal function]: TYPO3\CMS\Extensionmanager\Controller\UpdateScriptController->showAction('aimeos')
#13 /var/www/clients/client15/web7/private/typo3_src-7.6.12/typo3/sysext/extbase/Classes/Mvc/Controller/ActionController.php(283): call_user_func_array(Array, Array)
#14 /var/www/clients/client15/web7/private/typo3_src-7.6.12/typo3/sysext/extbase/Classes/Mvc/Controller/ActionController.php(176): TYPO3\CMS\Extbase\Mvc\Controller\ActionController->callActionMethod()
#15 /var/www/clients/client15/web7/private/typo3_src-7.6.12/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))
#16 /var/www/clients/client15/web7/private/typo3_src-7.6.12/typo3/sysext/extbase/Classes/Mvc/Web/BackendRequestHandler.php(32): TYPO3\CMS\Extbase\Mvc\Dispatcher->dispatch(Object(TYPO3\CMS\Extbase\Mvc\Web\Request), Object(TYPO3\CMS\Extbase\Mvc\Web\Response))
#17 /var/www/clients/client15/web7/private/typo3_src-7.6.12/typo3/sysext/extbase/Classes/Core/Bootstrap.php(206): TYPO3\CMS\Extbase\Mvc\Web\BackendRequestHandler->handleRequest()
#18 /var/www/clients/client15/web7/private/typo3_src-7.6.12/typo3/sysext/extbase/Classes/Core/Bootstrap.php(193): TYPO3\CMS\Extbase\Core\Bootstrap->handleRequest()
#19 /var/www/clients/client15/web7/private/typo3_src-7.6.12/typo3/sysext/backend/Classes/Http/BackendModuleRequestHandler.php(214): TYPO3\CMS\Extbase\Core\Bootstrap->run('', Array)
#20 /var/www/clients/client15/web7/private/typo3_src-7.6.12/typo3/sysext/backend/Classes/Http/BackendModuleRequestHandler.php(92): TYPO3\CMS\Backend\Http\BackendModuleRequestHandler->dispatchModule('tools_Extension...')
#21 /var/www/clients/client15/web7/private/typo3_src-7.6.12/typo3/sysext/core/Classes/Core/Bootstrap.php(302): TYPO3\CMS\Backend\Http\BackendModuleRequestHandler->handleRequest(Object(TYPO3\CMS\Core\Http\ServerRequest))
#22 /var/www/clients/client15/web7/private/typo3_src-7.6.12/typo3/sysext/backend/Classes/Http/Application.php(94): TYPO3\CMS\Core\Core\Bootstrap->handleRequest(Object(TYPO3\CMS\Core\Http\ServerRequest))
#23 /var/www/clients/client15/web7/private/typo3_src-7.6.12/typo3/index.php(20): TYPO3\CMS\Backend\Http\Application->run()
#24 [internal function]: {closure}()
#25 /var/www/clients/client15/web7/private/typo3_src-7.6.12/typo3/index.php(21): call_user_func(Object(Closure))
#26 {main}

Thanks
Simon

Re: Update script does not longer work after update from 16.

Posted: 19 Nov 2016, 05:01
by aimeos
This might be caused by a misconfiguration of your server: "/usr/share/pear" is in your include path but it's not in the allowed list of paths for open_basedir. If you add "/usr/share/pear", it should work again.

Re: Update script does not longer work after update from 16.

Posted: 19 Nov 2016, 09:14
by gilbertsoft
You're right. The path /usr/share/pear was in the include path, but was not existing. I corrected the include path and now it works again! Seems to be a wrong default value in PHP.

Thx