Forums / Install & configuration / Installation (ezflow) with sample content reports errors

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

eZ debug

Timing: Jan 17 2025 23:35:58
Script start
Timing: Jan 17 2025 23:35:58
Module start 'content'
Timing: Jan 17 2025 23:35:59
Module end 'content'
Timing: Jan 17 2025 23:35:59
Script end

Main resources:

Total runtime1.1831 sec
Peak memory usage4,096.0000 KB
Database Queries196

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0071 587.9766180.8125
Module start 'content' 0.00710.9734 768.7891588.4609
Module end 'content' 0.98050.2026 1,357.2500337.9844
Script end 1.1831  1,695.2344 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00400.3392210.0002
Check MTime0.00150.1298210.0001
Mysql Total
Database connection0.00100.085210.0010
Mysqli_queries1.098992.87801960.0056
Looping result0.00230.19161940.0000
Template Total1.149797.220.5749
Template load0.00210.180120.0011
Template processing1.147696.995220.5738
Template load and register function0.00020.018310.0002
states
state_id_array0.00130.109710.0013
state_identifier_array0.00270.226220.0013
Override
Cache load0.00180.1498700.0000
Sytem overhead
Fetch class attribute can translate value0.00500.418530.0017
Fetch class attribute name0.00130.107940.0003
XML
Image XML parsing0.00100.088230.0003
class_abstraction
Instantiating content class attribute0.00000.001440.0000
General
dbfile0.00160.1372280.0001
String conversion0.00000.000430.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/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