Sites management, error in the template #877

Closed
anonymous-piwik-user opened this Issue Jul 24, 2009 · 5 comments

2 participants

@anonymous-piwik-user

A problem has been found on this page : http://forum.piwik.org/index.php?showtopic=1261

A non initialized var causes a minor error, it's located in the template file : plugins/CoreHome/templates/piwik_tag.tpl

You can patch the template this way :

Delete the first line :

{if $piwikUrl == 'http://piwik.org/demo/' || $debugTrackVisitsInsidePiwikUI}

Replace by :

{if $piwikUrl == 'http://piwik.org/demo/' || (isset($debugTrackVisitsInsidePiwikUI) && $debugTrackVisitsInsidePiwikUI)}
@anonymous-piwik-user

Attachment: plugins/CoreHome/templates/piwik_tag.tpl
piwik_tag.tpl

@robocoder

That just masks the error. Here's the right fix:

@robocoder

(In [1331]) fixes #877 - error in template

@robocoder

(In [1334]) refs #877 - apply changes across all admin plugins

@robocoder

(In [1337]) refs #877 - refactored

@anonymous-piwik-user anonymous-piwik-user added this to the Piwik 0.4.2 milestone Jul 8, 2014
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment