View Issue Details

IDProjectCategoryView StatusLast Update
0001846OXID eShop (all versions)5. ------ UpdateApp / Update ------public2016-09-06 09:05
Reporteravenger Assigned To 
PrioritynormalSeveritytweakReproducibilityalways
Status closedResolutionno change required 
Product Version4.3.1 revision 27257 
Summary0001846: If the update app is run from another directory then "UpdateApp", the update terminates with an error.
DescriptionIf you run the update app from directories like "updateApp_3.0", "updateApp_3.1" aso. (for better structuring the various updates), the update app terminates with an error, as the directory of the update app can not be deleted.

Reason is, that in "protected function _delUpdateApp()" in "updateAppp/core/updateProcess.php" the deletion is started with

return $this->_removeDir( dirname(__FILE__)."/../../updateApp", true );

I.e., the directory is assumed to be "updateApp".

Using

return $this->_removeDir( realpath(dirname($_SERVER['SCRIPT_FILENAME']).'/../../'), true );

will allow any "updateApp_xxx"-directory to be used.
Additional InformationTried to update 4.3.1 to 4.3.2 from dir updateApp_432, and got such errors:
Warning: dir(/.../ee431/updateApp_432/core/../../updateApp) [function.dir]: failed to open dir: No such file or directory in /.../ee431/updateApp_432/core/updateProcess.php on line 174

Notice: Trying to get property of non-object in /.../ee431/updateApp_432/core/updateProcess.php on line 175

Fatal error: Call to a member function read() on a non-object in /.../ee431/updateApp_432/core/updateProcess.php on line 176
TagsNo tags attached.
ThemeNot defined
BrowserAll
PHP VersionNot defined
Database VersionNot defined

Activities

QA

2016-09-06 09:05

administrator   ~0011764

Last edited: 2016-09-06 09:05

The directory updateApp needs to be named like that, as the update documentation points out:


3.1. By command line
Go to the /updateApp directory and execute php run_cli.php in the command line.

3.2 By Browser

Open www.youreshopurl.de/updateApp in your browser. Replace www.youreshopurl.de with the URL of your shop.

Please note that the update may take some time for larger databases. The database update may last several hours. Delete the /updateApp directory once your database update is complete.

https://www.oxid-esales.com/en/support-services/documentation-and-help/oxid-eshop/installation/oxid-eshop-update-installation/running-update.html