View Issue Details

IDProjectCategoryView StatusLast Update
0013696Tine 2.0Tinebasepublic2018-03-02 11:58
ReportermokraemerAssigned Topschuele 
PrioritynormalSeverityblockReproducibilityalways
Status closedResolutionno change required 
Product Version2017.08.10 Community Edition 
Target VersionFixed in Version 
Summary0013696: Use of undefined Class
Descriptionafter 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
TagsNo tags attached.
mwticket

Activities

mspahn

mspahn

2018-01-17 14:49

administrator   ~0021330

You are using the all in one package right?
mokraemer

mokraemer

2018-01-17 15:52

reporter   ~0021332

yes. The release 2017.08.9 has the same problem.
mspahn

mspahn

2018-01-19 17:01

administrator   ~0021340

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

mokraemer

2018-01-19 19:10

reporter   ~0021342

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
pschuele

pschuele

2018-03-01 17:37

administrator   ~0021474

does this problem still exist with the current release?

the cron-expression classes should be here:

vendor/mtdowling/cron-expression/src
mokraemer

mokraemer

2018-03-01 19:09

reporter   ~0021480

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);
mspahn

mspahn

2018-03-02 11:58

administrator   ~0021482

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

Issue History

Date Modified Username Field Change
2018-01-11 20:11 mokraemer New Issue
2018-01-17 14:49 mspahn Note Added: 0021330
2018-01-17 15:52 mokraemer Note Added: 0021332
2018-01-19 17:01 mspahn Note Added: 0021340
2018-01-19 19:10 mokraemer Note Added: 0021342
2018-03-01 17:37 pschuele Note Added: 0021474
2018-03-01 17:37 pschuele Assigned To => pschuele
2018-03-01 17:37 pschuele Status new => feedback
2018-03-01 17:37 pschuele Priority immediate => normal
2018-03-01 19:09 mokraemer Note Added: 0021480
2018-03-01 19:09 mokraemer Status feedback => assigned
2018-03-02 11:58 mspahn Note Added: 0021482
2018-03-02 11:58 mspahn Status assigned => closed
2018-03-02 11:58 mspahn Resolution open => no change required