MantisBT

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0012956Tine 2.0Otherpublic2017-04-13 12:302017-04-28 19:33
Reporteringoratsdorf 
Assigned Topschuele 
PrioritynormalSeveritycrashReproducibilityalways
StatusfeedbackResolutionopen 
Platformi386OSlinuxOS Version3.2.0-24
Product Versiongit master 
Target VersionFixed in Version 
Summary0012956: Build fails on translation
Descriptiontrying phing on git master results in fatal as cache cannot be created.

Steps To Reproducepull latest tine20
composer install
./vendor/bin/phing

looks like it cannot create any cache and cannot get backend of it since null
Additional Informationingo@server:/var/wwwroot/tine20-git/tine20$ ./vendor/bin/phing build
Buildfile: /var/wwwroot/tine20-git/tine20/build.xml

tine20 > prepare:

     [echo] basedir: /var/wwwroot/tine20-git/tine20
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Warning: The lock file is not up to date with the latest changes in composer.json. You may be getting outdated dependencies. Run update to update them.
Nothing to install or update
Generating autoload files
      [php] Evaluating PHP expression: Tinebase_Helper::getDevelopmentRevision();
     [echo] $buildRevision: master: 60faa9a95cf0e15070534d34876c625baf7cdcb8 (2017-04-05 06:00:56)
      [php] Evaluating PHP expression: date_create('now', new DateTimeZone('UTC'))->format('Y-m-d H:i:s');
     [echo] $buildDate: 2017-04-13 10:19:40
     [echo] Making build directory

tine20 > build:


tine20 > prepared-build-module:

     [echo] Building Voipmanager
     [echo] Replace buildstuff...
[reflexive] Applying reflexive processing to 0 files.
     [echo] Apply debug mode for debug files...
[reflexive] Applying reflexive processing to 0 files.
     [echo] [Translations] Checking js dir /var/wwwroot/tine20-git/tine20/Voipmanager/js ...
     [echo] [Translations] Building translations...
PHP Fatal error: Uncaught Error: Call to a member function getBackend() on null in /var/wwwroot/tine20-git/tine20/Tinebase/Translation.php:72
Stack trace:
#0 /var/wwwroot/tine20-git/tine20/vendor/phing/phing/classes/phing/tasks/system/AdhocTask.php(80) : eval()'d code(11): Tinebase_Translation::getAvailableTranslations()
#1 /var/wwwroot/tine20-git/tine20/vendor/phing/phing/classes/phing/UnknownElement.php(100): translationTask->main()
0000002 /var/wwwroot/tine20-git/tine20/vendor/phing/phing/classes/phing/Task.php(283): UnknownElement->main()
#3 /var/wwwroot/tine20-git/tine20/vendor/phing/phing/classes/phing/tasks/system/SequentialTask.php(58): Task->perform()
0000004 /var/wwwroot/tine20-git/tine20/vendor/phing/phing/classes/phing/tasks/system/IfTask.php(172): SequentialTask->main()
#5 /var/wwwroot/tine20-git/tine20/vendor/phing/phing/classes/phing/TaskAdapter.php(61): IfTask->main(Object(Project))
#6 /var/wwwroot/tine20-git/tine20/vendor/phing/phing/classes/phing/UnknownElement.php(100): TaskAdapter->main()
#7 /var/wwwroot/tine20-git/ in /var/wwwroot/tine20-git/tine20/Tinebase/Translation.php on line 72
TagsNo tags attached.
mwticket
Attached Files

- Relationships
has duplicate 0012970feedbackpschuele Crash on execution of phing 

-  Notes
User avatar (0019918)
ingoratsdorf (developer)
2017-04-23 21:46

Not sure how exactly the build process works, however it would appear to me that the config file is not being parsed at all, as I am not getting any logs and I can write whatever I want into the config file (config.inc.php).
If it's not to do with the config file, then I do not know where values for logger and cache would come from.
User avatar (0019956)
SOWIWAS (reporter)
2017-04-28 12:53

On my development machine (without config.inc.php)the build process worked fine. But I have not been able to find the reason for this error. But I didn't had much time to investigate either. A message on why/what went wrong (more precise reason) woud be great in this case.
User avatar (0019968)
pschuele (administrator)
2017-04-28 17:38

it looks like there is a problem with the cache. you don't need the cache for the build.

please try this (git diff format):

diff --git a/tine20/Tinebase/Translation.php b/tine20/Tinebase/Translation.php
index bb53c51..f92b0eb 100644
--- a/tine20/Tinebase/Translation.php
+++ b/tine20/Tinebase/Translation.php
@@ -70,7 +70,7 @@ class Tinebase_Translation
                 'master_files' => $filesToWatch
             ));
             $tineCache = Tinebase_Core::get(Tinebase_Core::CACHE);
- if ($tineCache) {
+ if ($cache && $tineCache) {
                 $cache->setBackend($tineCache->getBackend());
             } else {
                 $cache = null;
User avatar (0019976)
pschuele (administrator)
2017-04-28 19:33

i think, the problem should be already fixed since yesterdays release (also in master). the fix above should not be necessary. could you please verify that?

- Issue History
Date Modified Username Field Change
2017-04-13 12:30 ingoratsdorf New Issue
2017-04-21 22:51 ingoratsdorf Relationship added has duplicate 0012970
2017-04-23 21:46 ingoratsdorf Note Added: 0019918
2017-04-28 12:53 SOWIWAS Note Added: 0019956
2017-04-28 17:38 pschuele Note Added: 0019968
2017-04-28 17:38 pschuele Assigned To => pschuele
2017-04-28 17:38 pschuele Status new => feedback
2017-04-28 19:33 pschuele Note Added: 0019976


Copyright © 2000 - 2017 MantisBT Team
Powered by Mantis Bugtracker