Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Upgrading SilverStripe /

Ask questions about upgrading SilverStripe to the latest version.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

SilverStripe 3.0.2-rc1 Update - i18nTextCollectorTask Error


Reply


2 Posts   630 Views

Avatar
gaspra

Community Member, 8 Posts

7 September 2012 at 9:52am

Hi,

I just upgraded to the 3.0.2-rc1 Release Candidate for testing and found that i18nTextCollectorTask does not run anymore. It did and still does with 3.0.1 but not the current rc.

Im not sure if it's an error on my side or if I have to add some additional modules to my PHP installation but fact is, it did work in 3.0.1 and does not in the 3.0.2 release candidate. I am thankful for any suggestion that helps me getting it to run again. Maybe it even helps to fix an upgrade bug.

Here is the Error msg I get when trying to run the TextCollector:

[Warning] require_once(PHPUnit/Framework/TestResult.php): failed to open stream: No such file or directory
GET /somu/dev/tasks/i18nTextCollectorTask

Line 2 in /srv/http/somu/framework/dev/SapphireTestReporter.php

Source

308    }
309    
310    protected function testNameToPhrase($name) {
311       return ucfirst(preg_replace("/([a-z])([A-Z])/", "$1 $2", $name));
312    }
313    
314 }
315

Trace

require_once
SapphireTestReporter.php:2
require_once(/srv/http/somu/framework/dev/SapphireTestReporter.php)
ClassLoader.php:82
SS_ClassLoader->loadClass(SapphireTestReporter)
spl_autoload_call(SapphireTestReporter)
CliTestReporter.php:8
require_once(/srv/http/somu/framework/dev/CliTestReporter.php)
ClassLoader.php:82
SS_ClassLoader->loadClass(clitestreporter)
spl_autoload_call(clitestreporter)
class_exists(clitestreporter)
i18nTextCollector.php:345
i18nTextCollector->collectFromEntityProviders(/srv/http/somu/framework/dev/CliTestReporter.php,framework)
i18nTextCollector.php:176
i18nTextCollector->processModule(framework)
i18nTextCollector.php:119
i18nTextCollector->run()
i18nTextCollectorTask.php:35
i18nTextCollectorTask->run(SS_HTTPRequest)
TaskRunner.php:70
TaskRunner->runTask(SS_HTTPRequest)
RequestHandler.php:168
RequestHandler->handleRequest(SS_HTTPRequest,DataModel)
Controller.php:149
Controller->handleRequest(SS_HTTPRequest,DataModel)
RequestHandler.php:186
RequestHandler->handleRequest(SS_HTTPRequest,DataModel)
Controller.php:149
Controller->handleRequest(SS_HTTPRequest,DataModel)
Director.php:283
Director::handleRequest(SS_HTTPRequest,Session,DataModel)
Director.php:112
Director::direct(/dev/tasks/i18nTextCollectorTask,DataModel)
main.php:126

Fatal error: require_once(): Failed opening required 'PHPUnit/Framework/TestResult.php' (include_path='/srv/http/somu/framework:/srv/http/somu/framework/parsers:/srv/http/somu/framework/thirdparty:.:/usr/share/pear') in /srv/http/somu/framework/dev/SapphireTestReporter.php on line 2

Avatar
gaspra

Community Member, 8 Posts

9 September 2012 at 7:08am

Well, I have got it running again by installing PHPUnit. Seems that this was not a requirement before the 3.0.2rc tough. Is this by purpose or are there still some testing bits in the rc that should be removed before the 3.0.2 release?

just fyi
gaspra