Forums / Install & configuration / errors in admin view after upgrade from 3.6.2 to 3.7

errors in admin view after upgrade from 3.6.2 to 3.7

Author Message

Roberto Frascarelli

Monday 24 October 2005 3:25:45 am

Hi all,
after an upgrade from 3.6.2 to 3.7 I get an error
in the admin siteaccess view.
It happens in Content structure page, when I disable Relations block.
No override for templates of this page were made.

This is the error message:

Error: eZTemplate design/admin/templates/windows.tpl:17[0]

No such attribute for array(4): show_relations
Choose one of following: offset, year, month, day

My system info:

Apache/1.3.33 (Debian GNU/Linux)
PHP Version: 4.3.10-2

Łukasz Serwatka

Monday 24 October 2005 3:30:37 am

Roberto, eZ publish versions 3.7.x and newer will run only on PHP 4.4, your PHP version is 4.3.10-2. More info you can find here

http://ez.no/company/news/ez_publish_3_7_0

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Roberto Frascarelli

Monday 24 October 2005 5:25:56 am

upgraded to 4.4.0-4 version; the error still exists...

Łukasz Serwatka

Monday 24 October 2005 5:30:44 am

Did you remove all old cache files after upgrade? Try to clear var/cache and var/(site)/cache dirs.

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Roberto Frascarelli

Monday 24 October 2005 5:50:12 am

all cache cleaned . The problem is in the new template file design/admin/templates/windows.tpl

From the previous version the code changed in rows 17-18

<b>(ver 3.6.2)</b>

{* Relations window. *}
{section show=ezpreference('admin_navigation_relations')}
    {include uri='design:relations.tpl'}
{/section}

<b>(ver 3.7)</b>

{* Relations window. *}
{section show=or( ezpreference( 'admin_navigation_relations' ),
                  $view_parameters.show_relations)}
    {include uri='design:relations.tpl'}
{/section}

...so when $view_parameters.show_relations has non value it returns an error.
But I don't know why $view_parameters.show_relations has non value...

Łukasz Serwatka

Monday 24 October 2005 6:28:23 am

Roberto, this bug was fixed by Valentin in revision 13758.

 
3.5.6 rev. 13757
3.6.3 rev. 13755
3.7.1 rev. 13758
3.8.0alpha1 rev. 13759

You can fetch fixed version from SVN.

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog