0013696: Use of undefined Class #6774

Closed
Gloirin opened this Issue Jun 9, 2018 · 7 comments

Comments

Projects
None yet
1 participant
@Gloirin

Gloirin commented Jun 9, 2018

Reported by mokraemer on 11 Jan 2018 19:11

Version: 2017.08.10 Community Edition

after installation, tine is unuseable:

Fatal error: Class 'Cron\CronExpression' not found in /www/tine/Tinebase/Scheduler/Task.php on line 92

Call Stack:
0.0001 226648 1. {main}() /www/tine/setup.php:0
0.0081 874312 2. Setup_Core::dispatchRequest() /www/tine/setup.php:14
0.0203 1677856 3. Setup_Server_Cli->handle() /www/tine/Setup/Core.php:115
0.4516 6554072 4. Setup_Frontend_Cli->handle() /www/tine/Setup/Server/Cli.php:119
0.5449 13007120 5. Setup_Frontend_Cli->_update() /www/tine/Setup/Frontend/Cli.php:71
0.5449 13007384 6. Setup_Frontend_Cli->_updateApplications() /www/tine/Setup/Frontend/Cli.php:263
0.5646 13533000 7. Setup_Controller->updateApplications() /www/tine/Setup/Frontend/Cli.php:307
0.5750 13565704 8. Setup_Controller->updateApplication() /www/tine/Setup/Controller.php:462
1.9761 21735272 9. Tinebase_Setup_Update_Release11->update_11() /www/tine/Setup/Controller.php:577
1.9874 22118280 10. Tinebase_Scheduler_Task::addAlarmTask() /www/tine/Tinebase/Setup/Update/Release11.php:167
1.9899 22121024 11. Tinebase_Scheduler_Task::_getPreparedTask() /www/tine/Tinebase/Scheduler/Task.php:213
1.9899 22122272 12. Tinebase_Scheduler_Task->__construct() /www/tine/Tinebase/Scheduler/Task.php:190

@Gloirin

This comment has been minimized.

Show comment
Hide comment
@Gloirin

Gloirin Jun 11, 2018

Comment posted by mspahn on 17 Jan 2018 13:49

You are using the all in one package right?

Gloirin commented Jun 11, 2018

Comment posted by mspahn on 17 Jan 2018 13:49

You are using the all in one package right?

@Gloirin

This comment has been minimized.

Show comment
Hide comment
@Gloirin

Gloirin Jun 11, 2018

Comment posted by mokraemer on 17 Jan 2018 14:52

yes. The release 2017.08.9 has the same problem.

Gloirin commented Jun 11, 2018

Comment posted by mokraemer on 17 Jan 2018 14:52

yes. The release 2017.08.9 has the same problem.

@Gloirin

This comment has been minimized.

Show comment
Hide comment
@Gloirin

Gloirin Jun 11, 2018

Comment posted by mspahn on 19 Jan 2018 16:01

That's odd. Whats your PHP version? Did you take our vendor folder?

Gloirin commented Jun 11, 2018

Comment posted by mspahn on 19 Jan 2018 16:01

That's odd. Whats your PHP version? Did you take our vendor folder?

@Gloirin

This comment has been minimized.

Show comment
Hide comment
@Gloirin

Gloirin Jun 11, 2018

Comment posted by mokraemer on 19 Jan 2018 18:10

wget https://github.com/tine20/Tine-2.0-Open-Source-Groupware-and-CRM/archive/2017.08.11.tar.gz

tar -xzf 2017.08.11.tar.gz

grep -R CronExpression Tine-2.0-Open-Source-Groupware-and-CRM-2017.08.11/
Tine-2.0-Open-Source-Groupware-and-CRM-2017.08.11/tine20/Tinebase/Scheduler/Task.php: * @var \Cron\CronExpression
Tine-2.0-Open-Source-Groupware-and-CRM-2017.08.11/tine20/Tinebase/Scheduler/Task.php: $this->_cronObject = Cron\CronExpression::factory($this->_cron);

So, it is used, but never defined.

php -v
PHP 5.6.33 (cli) (built: Jan 5 2018 14:10:55)
Copyright (c) 1997-2016 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies
with Xdebug v2.4.0, Copyright (c) 2002-2016, by Derick Rethans

Gloirin commented Jun 11, 2018

Comment posted by mokraemer on 19 Jan 2018 18:10

wget https://github.com/tine20/Tine-2.0-Open-Source-Groupware-and-CRM/archive/2017.08.11.tar.gz

tar -xzf 2017.08.11.tar.gz

grep -R CronExpression Tine-2.0-Open-Source-Groupware-and-CRM-2017.08.11/
Tine-2.0-Open-Source-Groupware-and-CRM-2017.08.11/tine20/Tinebase/Scheduler/Task.php: * @var \Cron\CronExpression
Tine-2.0-Open-Source-Groupware-and-CRM-2017.08.11/tine20/Tinebase/Scheduler/Task.php: $this->_cronObject = Cron\CronExpression::factory($this->_cron);

So, it is used, but never defined.

php -v
PHP 5.6.33 (cli) (built: Jan 5 2018 14:10:55)
Copyright (c) 1997-2016 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies
with Xdebug v2.4.0, Copyright (c) 2002-2016, by Derick Rethans

@Gloirin

This comment has been minimized.

Show comment
Hide comment
@Gloirin

Gloirin Jun 11, 2018

Comment posted by pschuele on 1 Mar 2018 16:37

does this problem still exist with the current release?

the cron-expression classes should be here:

vendor/mtdowling/cron-expression/src

Gloirin commented Jun 11, 2018

Comment posted by pschuele on 1 Mar 2018 16:37

does this problem still exist with the current release?

the cron-expression classes should be here:

vendor/mtdowling/cron-expression/src

@Gloirin

This comment has been minimized.

Show comment
Hide comment
@Gloirin

Gloirin Jun 11, 2018

Comment posted by mokraemer on 1 Mar 2018 18:09

nope. It is not. In the release there is no directory "vendor".

$ wget https://github.com/tine20/Tine-2.0-Open-Source-Groupware-and-CRM/archive/2018.02.1.tar.gz
$ tar -xzf 2018.02.1.tar.gz
$ grep -R CronExpression Tine-2.0-Open-Source-Groupware-and-CRM-2018.02.1/

Tine-2.0-Open-Source-Groupware-and-CRM-2018.02.1/tine20/Tinebase/Scheduler/Task.php: * @var \Cron\CronExpression
Tine-2.0-Open-Source-Groupware-and-CRM-2018.02.1/tine20/Tinebase/Scheduler/Task.php: $this->_cronObject = Cron\CronExpression::factory($this->_cron);

Gloirin commented Jun 11, 2018

Comment posted by mokraemer on 1 Mar 2018 18:09

nope. It is not. In the release there is no directory "vendor".

$ wget https://github.com/tine20/Tine-2.0-Open-Source-Groupware-and-CRM/archive/2018.02.1.tar.gz
$ tar -xzf 2018.02.1.tar.gz
$ grep -R CronExpression Tine-2.0-Open-Source-Groupware-and-CRM-2018.02.1/

Tine-2.0-Open-Source-Groupware-and-CRM-2018.02.1/tine20/Tinebase/Scheduler/Task.php: * @var \Cron\CronExpression
Tine-2.0-Open-Source-Groupware-and-CRM-2018.02.1/tine20/Tinebase/Scheduler/Task.php: $this->_cronObject = Cron\CronExpression::factory($this->_cron);

@Gloirin

This comment has been minimized.

Show comment
Hide comment
@Gloirin

Gloirin Jun 11, 2018

Comment posted by mspahn on 2 Mar 2018 10:58

You using the wrong package! Don't download the git repository. Go to releases and download the all in one package.

Gloirin commented Jun 11, 2018

Comment posted by mspahn on 2 Mar 2018 10:58

You using the wrong package! Don't download the git repository. Go to releases and download the all in one package.

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