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.