Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormattab <matthieu.aubry@gmail.com>2014-06-07 07:34:20 +0400
committermattab <matthieu.aubry@gmail.com>2014-06-07 07:34:20 +0400
commit9ac745e231173d28abc31678eda850341cfee5e0 (patch)
treea94e8fddafae77f9f3b4aa8bd1715aaa2beb7445
parentf268adea8e14c75305afdbb2b43d565e81c96632 (diff)
Tweaking safe mode to give some ideas to user how to solve issue.
in particular adding instruction to restart web server after having updated piwik. This should help limit number of email reporting errors, as many of these errors are caused by OPcache being not updated.
-rw-r--r--plugins/CorePluginsAdmin/templates/safemode.twig35
1 files changed, 26 insertions, 9 deletions
diff --git a/plugins/CorePluginsAdmin/templates/safemode.twig b/plugins/CorePluginsAdmin/templates/safemode.twig
index 7fc5e138cf..cc80df2d3e 100644
--- a/plugins/CorePluginsAdmin/templates/safemode.twig
+++ b/plugins/CorePluginsAdmin/templates/safemode.twig
@@ -34,11 +34,35 @@
in
<pre>{{ lastError.file }} line {{ lastError.line }}</pre>
</p>
+
+ <hr>
+ <h3>Troubleshooting</h3>
+
+ Follow these steps to solve the issue or report it to the team:
+ <ul>
+ <li>
+ If you have just updated Piwik to the latest version, please try to restart your web server.
+ This will clear the PHP opcache which may solve the problem.
+ </li>
+ <li>
+ If this is the first time you see this error, please try refresh the page.
+ </li>
+ <li>
+ <strong>If this error continues to happen</strong>, we appreciate if you send the
+ <a href="mailto:hello@piwik.org?subject={{ 'Fatal error in Piwik ' ~ piwikVersion|e('url') }}&body={{ lastError.message|e('url') }}%20in%20{{ lastError.file|e('url') }}%20{{ lastError.line|e('url') }}%20using%20PHP%20{{ constant('PHP_VERSION') }}">error report</a>
+ to the Piwik team.
+ </li>
+ </ul>
+ <hr/>
+
+
{% endif %}
{% if isSuperUser %}
+
+ <h3>Further troubleshooting</h3>
<p>
- If this error continues to happen, there is a good chance to fix this issue by disabling one or more of
+ If this error continues to happen, you may be able to fix this issue by disabling one or more of
the Third-Party plugins. You can enable them again in the
<a target="_blank" href="index.php?module=CorePluginsAdmin&action=plugins">Plugins</a> or <a target="_blank" href="index.php?module=CorePluginsAdmin&action=themes">Themes</a> page under
settings at any time.
@@ -47,7 +71,6 @@
Based on the error message, the issue is probably caused by the plugin <strong>{{ pluginCausesIssue }}</strong>.
{% endif %}
</p>
-
<table>
{% for pluginName, plugin in plugins if plugin.uninstallable and plugin.activated %}
<tr {% if loop.index is divisibleby(2) %}style="background-color: #eeeeee"{% endif %}>
@@ -89,16 +112,10 @@
</table>
{% endif %}
- <p>
- <br />
- We appreciate if you send the
- <a href="mailto:hello@piwik.org?subject={{ 'Fatal error in Piwik ' ~ piwikVersion|e('url') }}&body={{ lastError.message|e('url') }}%20in%20{{ lastError.file|e('url') }}%20{{ lastError.line|e('url') }}%20using%20PHP%20{{ constant('PHP_VERSION') }}">error report</a>
- to the Piwik team.
- </p>
{% elseif isAnonymousUser %}
- <p>Please contact the system administrator.</p>
+ <p>Please contact the system administrator, or login to Piwik to learn more.</p>
{% else %}
<p>