0013166: Fatal error: Uncaught exception 'Setup_Exception_NotFound' with message 'Projects/Setup/setup.xml not found. #6515

Open
Gloirin opened this Issue Jun 9, 2018 · 8 comments

Comments

3 participants
@Gloirin

Gloirin commented Jun 9, 2018

Reported by estradis on 1 Jun 2017 11:45

Version: 2017.02.3 Community Edition

As already described in the community, we had some issues with the Projects application when using setup.php --backup.
See full report and details at https://www.tine20.org/forum/viewtopic.php?f=8&t=18434

Steps to reproduce: As the Projects Application was deinstalled, this issue cannot be reproduced any more.


(Projects is installed but files are no longer in tine20 dir)

/usr/bin/php /usr/share/tine20/setup.php --config /etc/tine/config.inc.php --backup -- config=1 db=1 files=1 backupDir=/home/estradis/backup/ noTimestamp=0

-> Fatal error: Uncaught exception 'Setup_Exception_NotFound' with message 'Projects/Setup/setup.xml not found. If application got renamed or deleted, re-run setup.php.' in /usr/share/tine20/Setup/Controller.php:476
Stack trace:
#0 /usr/share/tine20/Setup/Controller.php(2077): Setup_Controller->getSetupXml('Projects')
#1 /usr/share/tine20/Setup/Controller.php(2048): Setup_Controller->_getBackupStructureOnlyTables()
#2 /usr/share/tine20/Setup/Frontend/Cli.php(721): Setup_Controller->backup(Array)
#3 /usr/share/tine20/Setup/Frontend/Cli.php(82): Setup_Frontend_Cli->_backup(Object(Zend_Console_Getopt))
#4 /usr/share/tine20/Setup/Server/Cli.php(114): Setup_Frontend_Cli->handle(Object(Zend_Console_Getopt))
#5 /usr/share/tine20/Setup/Core.php(115): Setup_Server_Cli->handle()
#6 /usr/share/tine20/setup.php(14): Setup_Core::dispatchRequest()

Additional information: As we aren't using Projects application in Tine, the quick and dirty workaround is acceptable for me. I opened this issue because I was adviced to do it.

@Gloirin

This comment has been minimized.

Show comment
Hide comment
@Gloirin

Gloirin Jun 11, 2018

Comment posted by tob on 11 Mar 2018 06:47

Hello, I ran into this problem too and followed the steps from the forum to "fix" it. But I'm pretty sure the Projects application was not installed (or disabled in the admin settings, not sure where this is the same..) before the upgrade

Gloirin commented Jun 11, 2018

Comment posted by tob on 11 Mar 2018 06:47

Hello, I ran into this problem too and followed the steps from the forum to "fix" it. But I'm pretty sure the Projects application was not installed (or disabled in the admin settings, not sure where this is the same..) before the upgrade

@Gloirin

This comment has been minimized.

Show comment
Hide comment
@Gloirin

Gloirin Jun 11, 2018

Comment posted by estradis on 12 Mar 2018 09:04

Meanwhile it also affected these modules:

  • HumanResources
  • Inventory

As we don't use them on tine, we also uninstalled them.

Gloirin commented Jun 11, 2018

Comment posted by estradis on 12 Mar 2018 09:04

Meanwhile it also affected these modules:

  • HumanResources
  • Inventory

As we don't use them on tine, we also uninstalled them.

@Gloirin

This comment has been minimized.

Show comment
Hide comment
@Gloirin

Gloirin Jun 11, 2018

Comment posted by mspahn on 13 Mar 2018 13:45

Well, we just removed them from the all-in-one package. You download them from github. Does that fix your problem?

Gloirin commented Jun 11, 2018

Comment posted by mspahn on 13 Mar 2018 13:45

Well, we just removed them from the all-in-one package. You download them from github. Does that fix your problem?

@Gloirin

This comment has been minimized.

Show comment
Hide comment
@Gloirin

Gloirin Jun 11, 2018

Comment posted by estradis on 14 Mar 2018 08:48

We were never focused on them any more, so we can't say. I will observe it on our next update and report the result then.

Gloirin commented Jun 11, 2018

Comment posted by estradis on 14 Mar 2018 08:48

We were never focused on them any more, so we can't say. I will observe it on our next update and report the result then.

@Gloirin

This comment has been minimized.

Show comment
Hide comment
@Gloirin

Gloirin Jun 11, 2018

Comment posted by estradis on 19 Mar 2018 08:14

I updated tine with the latest available all-in-one package from github yesterday. There were no Projects, HumanResources or Inventory Modules included. These directories are missing as well.

As I already wrote above, we don't use them, so it's ok for us.

Gloirin commented Jun 11, 2018

Comment posted by estradis on 19 Mar 2018 08:14

I updated tine with the latest available all-in-one package from github yesterday. There were no Projects, HumanResources or Inventory Modules included. These directories are missing as well.

As I already wrote above, we don't use them, so it's ok for us.

@Gloirin

This comment has been minimized.

Show comment
Hide comment
@Gloirin

Gloirin Jun 11, 2018

Comment posted by pschuele on 22 Mar 2018 16:42

I'll have a look into this. maybe there is a way to make this more robust.

Gloirin commented Jun 11, 2018

Comment posted by pschuele on 22 Mar 2018 16:42

I'll have a look into this. maybe there is a way to make this more robust.

@hernot

This comment has been minimized.

Show comment
Hide comment
@hernot

hernot Jun 20, 2018

I ran into this today, and temporarily bypassed it by adding the following lines at top of Setup_Controller.updateApplications function
if ( $_application->name == "projects" or $_application->name == "Projects" ) {
$this->_clearCache();
return array();
}

As i did not figure, possibly in the database, where the Projects application is still listed as installed eventhough the tine20 installation does not have any Projects Application directory any more. where the Projects/Setup/setup.xml could be located.

If Projects is not included any more in tine or only in commercial version please not only check for installed, updateable, installable applications but also at first for removed and applications excluded from install packages. The latter caused in my case after todays update the above error.

hernot commented Jun 20, 2018

I ran into this today, and temporarily bypassed it by adding the following lines at top of Setup_Controller.updateApplications function
if ( $_application->name == "projects" or $_application->name == "Projects" ) {
$this->_clearCache();
return array();
}

As i did not figure, possibly in the database, where the Projects application is still listed as installed eventhough the tine20 installation does not have any Projects Application directory any more. where the Projects/Setup/setup.xml could be located.

If Projects is not included any more in tine or only in commercial version please not only check for installed, updateable, installable applications but also at first for removed and applications excluded from install packages. The latter caused in my case after todays update the above error.

@pschuele

This comment has been minimized.

Show comment
Hide comment
@pschuele

pschuele Jun 20, 2018

Member

yep, we will fix that!

Member

pschuele commented Jun 20, 2018

yep, we will fix that!

@pschuele pschuele assigned pschuele and unassigned Gloirin Jun 20, 2018

@pschuele pschuele added this to To do in Tine 2.0 Development via automation Jun 20, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment