Installation (ezflow) with sample content reports errors

Author Message

Falkmar Fischer

Wednesday 25 May 2011 8:27:34 pm

 I have installed 4.4 with eZ ezflow and sample content. The main language is German. All content and all "translation.ts" are translated. When I run the setup in the admin interface, I get the following debug message.

Debug: ezpI18n::translateText  May 26 2011 07:52:00
Missing translation for message in context: 'design/admin/setup/cache'. The untranslated message is: ''

translation.ts
...
    <message>
         <source></source>
         <translation></translation>
    </message>
...

The main file (ts) contains an empty translation. Deleting the "message" does not help.
When I call the homepage, I get the following debug message. This message is also used in the English side access.

Warning: PHP: E_WARNING  May 26 2011 08:30:30
strpos() expects parameter 1 to be string, array given in E:\proj\www\ez44\htdocs\lib\eztemplate\classes\eztemplate.php on line 1746

eztemplate.php on line 1746
 if ( isset( $root[1][0][2] ) && strpos( $root[1][0][2], '<!DOCTYPE' ) === 0 )
     return;

If I do not delete the cache, I have no wrongs.
Does anyone know a way to a solution.

Grateful for any help
Falkmar

webshop - extension searched

André R.

Thursday 26 May 2011 12:34:44 am

It's been fixed, you can always check things like this by first checking blame/history of the file in question on github, then secondly if there is a issue for it with more information.

Steps:
1. Browse to the file: https://github.com/ezsystems/ezpublish/blob/master/lib/eztemplate/classes/eztemplate.php
2. Check blame on the line in question or history and you'll find this: https://github.com/ezsystems/ezpublish/commit/a26164584337c69036aa9b4c3916aae74cdbe584 

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

Falkmar Fischer

Moderated by: Nicolas Pastorino

Thursday 26 May 2011 4:33:32 pm

Big thanks for your help and the fix. Unfortunately, the search in Github was not very helpful. But the "blame"key is a great help. The best entry is probably https://github.com/ezsystems/ezpublish/ and then click to the finish. The two errors had no connection and are easy to eliminate.
Debugging
... eztemplate.php on line 1746
way 1
https://github.com/ezsystems/ezpublish/blame/master/lib/eztemplate/classes/eztemplate.php

e088332c »andrerom
2010-08-24 Fix # 011 317: appendDebugNodes breaks IE by trigger

The line in 1746 against the following exchange

if ( isset( $root[1][0][2] ) && is_string( $root[1][0][2] ) && strpos( $root[1][0][2], '<!DOCTYPE' ) === 0 )

way 2
https://github.com/ezsystem/ezpublish/blob/MasterCard/lib/eztemplate/classes/eztemplate.php
The complete contents of eztemplate.php exchange

.../extension/ezie/settings/site.ini.append.php
After replacing the entire file, I get another error message.

Warning: Mai 26 2011 18:39:22
Path 'extension/ezie/autoloads/' does not have the file 'eztemplateautoload.php' allthough it reported it had one.
Looked for file 'extension/ezie/autoloads/eztemplateautoload.php'
Check the setting [TemplateSettings]/ExtensionAutoloadPath or AutoloadPathList in your site.ini settings.

The image editor does not contain any autoloads. https://github.com/ezsystems/ezie

Comment the [template settings]

#---Edit Start ---
# [TemplateSettings]
# ExtensionAutoloadPath[]=ezie
#--- Edit End ---

.../design/admin2/templates/setup/cache.tpl
For the last error, there is already an unresolved bug report.
http://issues.ez.no/IssueView.php?Id=17787&activeItem=602

I am not a developer and can not PHP. Therefore, this solution is only temporary. Probably is missing a complete phrase. I hope a developer solves the problem.

Debug: ezpI18n::translateText  May 26 2011 03:17:28
Missing translation for message in context: 'design/admin/setup/cache'. The untranslated message is: ''

The errors are in the lines 66 and 172. The phrase does not contain characters. Expand both entries with a space.

<th width="39%">{''|i18n( ...
<th width="39%">{' '|i18n( ...

Then the translation file must are edited.

.../share/translations/ger-DE/translation.ts

<context>
<name>design/admin/setup/cache</name>
...
<message>
<source>Categories</source>
<translation>Kategorien</translation>
</message>
<message>
<source> </source>
<translation> </translation>
</message>
</context>

webshop - extension searched

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 02:06:12
Script start
Timing: Jan 18 2025 02:06:12
Module start 'layout'
Timing: Jan 18 2025 02:06:12
Module start 'content'
Timing: Jan 18 2025 02:06:13
Module end 'content'
Timing: Jan 18 2025 02:06:13
Script end

Main resources:

Total runtime0.7347 sec
Peak memory usage4,096.0000 KB
Database Queries59

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0054 588.1641152.6563
Module start 'layout' 0.00540.0034 740.820339.5313
Module start 'content' 0.00880.7242 780.3516583.3516
Module end 'content' 0.73300.0016 1,363.703117.3438
Script end 0.7346  1,381.0469 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.4544160.0002
Check MTime0.00130.1835160.0001
Mysql Total
Database connection0.00070.090810.0007
Mysqli_queries0.672691.5509590.0114
Looping result0.00070.0958570.0000
Template Total0.703595.820.3517
Template load0.00210.282620.0010
Template processing0.701495.467820.3507
Template load and register function0.00020.025410.0002
states
state_id_array0.00190.256610.0019
state_identifier_array0.00190.263520.0010
Override
Cache load0.00180.2408700.0000
Sytem overhead
Fetch class attribute can translate value0.00070.096420.0004
Fetch class attribute name0.00110.149140.0003
XML
Image XML parsing0.00060.087320.0003
class_abstraction
Instantiating content class attribute0.00000.001240.0000
General
dbfile0.00080.1070170.0000
String conversion0.00000.001440.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
18content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
8content/datatype/view/ezxmltags/sub.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/sub.tplEdit templateOverride template
13content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
9content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
6content/datatype/view/ezxmltags/strong.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/strong.tplEdit templateOverride template
5content/datatype/view/ezxmltags/emphasize.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/emphasize.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 65
 Number of unique templates used: 10

Time used to render debug report: 0.0002 secs