Ticket #2580 (closed defect: fixed)

Opened 7 months ago

Last modified 2 months ago

Problem running textcollector (Warning! Redeclaring entity)

Reported by: Henk_Poley Owned by: ischommer
Priority: medium Milestone:
Component: i18n Version: 2.2.2
Severity: medium effort / impact Keywords:
Cc: Hours:

Description

Tried building a new base translation file for to submit to translate.silverstripe.com:

http://development.tsap.nl/tsap-ss/i18n/textcollector/?module=cms

Got this error:

Collecting text...

Warning! Redeclaring entity NEWFOLDER in file /var/www/tsap-ss/cms/code/AssetAdmin.php (previously declared in /var/www/tsap-ss/cms/code/AssetAdmin.php)
Warning! Redeclaring entity NOWBROKEN in file /var/www/tsap-ss/cms/code/AssetAdmin.php (previously declared in /var/www/tsap-ss/cms/code/AssetAdmin.php)
Warning! Redeclaring entity MAIN in file /var/www/tsap-ss/cms/code/AssetTableField.php (previously declared in /var/www/tsap-ss/cms/code/AssetTableField.php)
Warning! Redeclaring entity FN in file /var/www/tsap-ss/cms/code/MemberList.php (previously declared in /var/www/tsap-ss/cms/code/MemberList.php)
Warning! Redeclaring entity FIRSTNAME in file /var/www/tsap-ss/cms/code/MemberTableField.php (previously declared in /var/www/tsap-ss/cms/code/MemberTableField.php)
Warning! Redeclaring entity ERROR in file /var/www/tsap-ss/cms/code/Newsletter/BatchProcess.php (previously declared in /var/www/tsap-ss/cms/code/Newsletter/BatchProcess.php)
Warning! Redeclaring entity SAVE in file /var/www/tsap-ss/cms/code/NewsletterAdmin.php (previously declared in /var/www/tsap-ss/cms/code/NewsletterAdmin.php)
Warning! Redeclaring entity PERMDEFAULT in file /var/www/tsap-ss/cms/code/StaticExporter.php (previously declared in /var/www/tsap-ss/cms/code/LeftAndMain.php)
Warning! Redeclaring entity PERMALREADY in file /var/www/tsap-ss/cms/code/StaticExporter.php (previously declared in /var/www/tsap-ss/cms/code/LeftAndMain.php)
Warning! Redeclaring entity PERMAGAIN in file /var/www/tsap-ss/cms/code/StaticExporter.php (previously declared in /var/www/tsap-ss/cms/code/LeftAndMain.php)
Warning! Redeclaring entity DELFILE in file /var/www/tsap-ss/cms/templates/Includes/AssetTableField.ss (previously declared in )

Warning: Cannot modify header information - headers already sent by (output started at /var/www/tsap-ss/sapphire/core/i18n.php:1302) in /var/www/tsap-ss/sapphire/core/Debug.php on line 151
Error

The website server has not been able to respond to your request.

Change History

Changed 7 months ago by Henk_Poley

Seems like it continues when it has write access to the lang directory. Probably how it is supposed to be collected?

Changed 2 months ago by ischommer

  • owner changed from aoneil to ischommer
  • component changed from (Unknown) to i18n

Changed 2 months ago by ischommer

  • status changed from new to closed
  • resolution set to fixed

We've refactored the text collector, which means those warnings won't appear any longer - although the fact that you can redeclare entities and cause overwrites still exists.

Note: See TracTickets for help on using tickets.