Piwik 2.6.1 - Undefined index: Dashboard piwik/core/Translate.php on line 173


#1

#0 Piwik\Error::errorHandler(…) called at [/home/u588188030/public_html/piwik/core/Translate.php:173]
#1 Piwik\Translate::getJavascriptTranslations(…) called at [/home/u588188030/public_html/piwik/core/AssetManager.php:121]
#2 Piwik\AssetManager->getJsInclusionDirective(…) called at [/home/u588188030/public_html/piwik/core/Twig.php:127]
#3 Piwik\Twig->Piwik{closure}(…) called at [:]
#4 call_user_func_array(…) called at [/home/u588188030/public_html/piwik/tmp/templates_c/c3/48/49fa8adb460903f7e608c5d60f9201869ece40ac46f0dabfc6fa8386ace2.php:24]
#5 __TwigTemplate_c34849fa8adb460903f7e608c5d60f9201869ece40ac46f0dabfc6fa8386ace2->doDisplay(…) called at [/home/u588188030/public_html/piwik/vendor/twig/twig/lib/Twig/Template.php:279]
#6 Twig_Template->displayWithErrorHandling(…) called at [/home/u588188030/public_html/piwik/vendor/twig/twig/lib/Twig/Template.php:253]
#7 Twig_Template->display(…) called at [/home/u588188030/public_html/piwik/tmp/templates_c/a9/f4/7c9612217323225a32369870b53633820fa9a6ec1165e40bce5a87466eae.php:121]
#8 __TwigTemplate_a9f47c9612217323225a32369870b53633820fa9a6ec1165e40bce5a87466eae->block_head(…) called at [/home/u588188030/public_html/piwik/vendor/twig/twig/lib/Twig/Template.php:144]
#9 Twig_Template->displayBlock(…) called at [/home/u588188030/public_html/piwik/tmp/templates_c/a9/f4/7c9612217323225a32369870b53633820fa9a6ec1165e40bce5a87466eae.php:30]
#10 __TwigTemplate_a9f47c9612217323225a32369870b53633820fa9a6ec1165e40bce5a87466eae->doDisplay(…) called at [/home/u588188030/public_html/piwik/vendor/twig/twig/lib/Twig/Template.php:279]
#11 Twig_Template->displayWithErrorHandling(…) called at [/home/u588188030/public_html/piwik/vendor/twig/twig/lib/Twig/Template.php:253]
#12 Twig_Template->display(…) called at [/home/u588188030/public_html/piwik/tmp/templates_c/11/7b/cdcd35a47bdcd3d1672849799c8d2f087191a2283a245905104a25ce0be0.php:25]
#13 __TwigTemplate_117bcdcd35a47bdcd3d1672849799c8d2f087191a2283a245905104a25ce0be0->doDisplay(…) called at [/home/u588188030/public_html/piwik/vendor/twig/twig/lib/Twig/Template.php:279]
#14 Twig_Template->displayWithErrorHandling(…) called at [/home/u588188030/public_html/piwik/vendor/twig/twig/lib/Twig/Template.php:253]
#15 Twig_Template->display(…) called at [/home/u588188030/public_html/piwik/vendor/twig/twig/lib/Twig/Template.php:264]
#16 Twig_Template->render(…) called at [/home/u588188030/public_html/piwik/vendor/twig/twig/lib/Twig/Environment.php:292]
#17 Twig_Environment->render(…) called at [/home/u588188030/public_html/piwik/core/View.php:256]
#18 Piwik\View->renderTwigTemplate(…) called at [/home/u588188030/public_html/piwik/core/View.php:251]
#19 Piwik\View->render(…) called at [/home/u588188030/public_html/piwik/plugins/CoreHome/Controller.php:168]
#20 Piwik\Plugins\CoreHome\Controller->index(…) called at [:]
#21 call_user_func_array(…) called at [/home/u588188030/public_html/piwik/core/FrontController.php:577]
#22 Piwik\FrontController->doDispatch(…) called at [/home/u588188030/public_html/piwik/core/FrontController.php:86]
#23 Piwik\FrontController->dispatch(…) called at [/home/u588188030/public_html/piwik/core/dispatch.php:34]
#24 require_once(…) called at [/home/u588188030/public_html/piwik/index.php:46]

last beta had same error …


#2

I have the same problem.

Notice: Undefined index: Clear in /storage/content/72/184072/wfv.se/public_html/analytics/core/Translate.php on line 173

Backtrace -->

#0 Piwik\Error::errorHandler(…) called at [/storage/content/72/184072/wfv.se/public_html/analytics/core/Translate.php:173]
#1 Piwik\Translate::getJavascriptTranslations(…) called at [/storage/content/72/184072/wfv.se/public_html/analytics/core/AssetManager.php:121]
#2 Piwik\AssetManager->getJsInclusionDirective(…) called at [/storage/content/72/184072/wfv.se/public_html/analytics/core/Twig.php:127]
#3 Piwik{closure}(…) called at [:]
#4 call_user_func_array(…) called at [/storage/content/72/184072/wfv.se/public_html/analytics/tmp/templates_c/03/5c/599fe322b8c39889730ecad04e7437f27fda6286b603c99d2e6b7546d0f9.php:24]
#5 __TwigTemplate_035c599fe322b8c39889730ecad04e7437f27fda6286b603c99d2e6b7546d0f9->doDisplay(…) called at [/storage/content/72/184072/wfv.se/public_html/analytics/vendor/twig/twig/lib/Twig/Template.php:278]
#6 Twig_Template->displayWithErrorHandling(…) called at [/storage/content/72/184072/wfv.se/public_html/analytics/vendor/twig/twig/lib/Twig/Template.php:252]
#7 Twig_Template->display(…) called at [/storage/content/72/184072/wfv.se/public_html/analytics/tmp/templates_c/2e/89/f9f34189726d0939b02c329b69f3d7f80e269d72673f5734d733802305fd.php:55]
#8 __TwigTemplate_2e89f9f34189726d0939b02c329b69f3d7f80e269d72673f5734d733802305fd->doDisplay(…) called at [/storage/content/72/184072/wfv.se/public_html/analytics/vendor/twig/twig/lib/Twig/Template.php:278]
#9 Twig_Template->displayWithErrorHandling(…) called at [/storage/content/72/184072/wfv.se/public_html/analytics/vendor/twig/twig/lib/Twig/Template.php:252]
#10 Twig_Template->display(…) called at [/storage/content/72/184072/wfv.se/public_html/analytics/vendor/twig/twig/lib/Twig/Template.php:263]
#11 Twig_Template->render(…) called at [/storage/content/72/184072/wfv.se/public_html/analytics/vendor/twig/twig/lib/Twig/Environment.php:292]
#12 Twig_Environment->render(…) called at [/storage/content/72/184072/wfv.se/public_html/analytics/core/View.php:256]
#13 Piwik\View->renderTwigTemplate(…) called at [/storage/content/72/184072/wfv.se/public_html/analytics/core/View.php:251]
#14 Piwik\View->render(…) called at [/storage/content/72/184072/wfv.se/public_html/analytics/plugins/Login/Controller.php:99]
#15 Piwik\Plugins\Login\Controller->login(…) called at [/storage/content/72/184072/wfv.se/public_html/analytics/plugins/Login/Controller.php:61]
#16 Piwik\Plugins\Login\Controller->index(…) called at [:]
#17 call_user_func_array(…) called at [/storage/content/72/184072/wfv.se/public_html/analytics/core/FrontController.php:577]
#18 Piwik\FrontController->doDispatch(…) called at [/storage/content/72/184072/wfv.se/public_html/analytics/core/FrontController.php:86]
#19 Piwik\FrontController->dispatch(…) called at [/storage/content/72/184072/wfv.se/public_html/analytics/core/Plugin/Controller.php:870]
#20 Piwik\Plugin\Controller->redirectToIndex(…) called at [/storage/content/72/184072/wfv.se/public_html/analytics/plugins/CoreHome/Controller.php:110]
#21 Piwik\Plugins\CoreHome\Controller->redirectToCoreHomeIndex(…) called at [:]
#22 call_user_func_array(…) called at [/storage/content/72/184072/wfv.se/public_html/analytics/core/FrontController.php:577]
#23 Piwik\FrontController->doDispatch(…) called at [/storage/content/72/184072/wfv.se/public_html/analytics/core/FrontController.php:86]
#24 Piwik\FrontController->dispatch(…) called at [/storage/content/72/184072/wfv.se/public_html/analytics/core/dispatch.php:34]
#25 require_once(…) called at [/storage/content/72/184072/wfv.se/public_html/analytics/index.php:47]


(Stefan Giehl) #3

Maybe it would help if you clean the folder tmp/templates_c


#4

Hallo SteveG ,
I have the same problem.
What do you mean with clean, empty the folder tmp/templates_c?


(Stefan Giehl) #5

Piwik saves generated template files in the folder /tmp/templates_c. Try to remove all files and folders within this directory.


#6

Get the same problem, everything was fine until the upgrade to 2.6.1.
Have deleted all folders in /tmp/templates_c still same.

Notice: Undefined index: Clear in /websites/123reg/LinuxPackage22/ro/ck/cl/rockcliffehotel.com/public_html/stats/core/Translate.php on line 173

Backtrace -->

#0 Piwik\Error::errorHandler(…) called at [/websites/123reg/LinuxPackage22/ro/ck/cl/rockcliffehotel.com/public_html/stats/core/Translate.php:173]
#1 Piwik\Translate::getJavascriptTranslations(…) called at [/websites/123reg/LinuxPackage22/ro/ck/cl/rockcliffehotel.com/public_html/stats/core/AssetManager.php:121]
#2 Piwik\AssetManager->getJsInclusionDirective(…) called at [/websites/123reg/LinuxPackage22/ro/ck/cl/rockcliffehotel.com/public_html/stats/core/Twig.php:127]
#3 Piwik\Twig->Piwik{closure}(…) called at [:]
#4 call_user_func_array(…) called at [/websites/123reg/LinuxPackage22/ro/ck/cl/rockcliffehotel.com/public_html/stats/tmp/templates_c/8d/fa/19f67dc49a04ac2ab881ed354479a382a7b7cfe4e7a33a83eab4c7c73362.php:24]
#5 __TwigTemplate_8dfa19f67dc49a04ac2ab881ed354479a382a7b7cfe4e7a33a83eab4c7c73362->doDisplay(…) called at [/websites/123reg/LinuxPackage22/ro/ck/cl/rockcliffehotel.com/public_html/stats/vendor/twig/twig/lib/Twig/Template.php:278]
#6 Twig_Template->displayWithErrorHandling(…) called at [/websites/123reg/LinuxPackage22/ro/ck/cl/rockcliffehotel.com/public_html/stats/vendor/twig/twig/lib/Twig/Template.php:252]
#7 Twig_Template->display(…) called at [/websites/123reg/LinuxPackage22/ro/ck/cl/rockcliffehotel.com/public_html/stats/tmp/templates_c/82/b2/adcd8489011ba238503a792030276004dcc117586514fde7400384d233d0.php:55]
#8 __TwigTemplate_82b2adcd8489011ba238503a792030276004dcc117586514fde7400384d233d0->doDisplay(…) called at [/websites/123reg/LinuxPackage22/ro/ck/cl/rockcliffehotel.com/public_html/stats/vendor/twig/twig/lib/Twig/Template.php:278]
#9 Twig_Template->displayWithErrorHandling(…) called at [/websites/123reg/LinuxPackage22/ro/ck/cl/rockcliffehotel.com/public_html/stats/vendor/twig/twig/lib/Twig/Template.php:252]
#10 Twig_Template->display(…) called at [/websites/123reg/LinuxPackage22/ro/ck/cl/rockcliffehotel.com/public_html/stats/vendor/twig/twig/lib/Twig/Template.php:263]
#11 Twig_Template->render(…) called at [/websites/123reg/LinuxPackage22/ro/ck/cl/rockcliffehotel.com/public_html/stats/vendor/twig/twig/lib/Twig/Environment.php:292]
#12 Twig_Environment->render(…) called at [/websites/123reg/LinuxPackage22/ro/ck/cl/rockcliffehotel.com/public_html/stats/core/View.php:256]
#13 Piwik\View->renderTwigTemplate(…) called at [/websites/123reg/LinuxPackage22/ro/ck/cl/rockcliffehotel.com/public_html/stats/core/View.php:251]
#14 Piwik\View->render(…) called at [/websites/123reg/LinuxPackage22/ro/ck/cl/rockcliffehotel.com/public_html/stats/plugins/Login/Controller.php:99]
#15 Piwik\Plugins\Login\Controller->login(…) called at [/websites/123reg/LinuxPackage22/ro/ck/cl/rockcliffehotel.com/public_html/stats/plugins/Login/Controller.php:61]
#16 Piwik\Plugins\Login\Controller->index(…) called at [:]
#17 call_user_func_array(…) called at [/websites/123reg/LinuxPackage22/ro/ck/cl/rockcliffehotel.com/public_html/stats/core/FrontController.php:577]
#18 Piwik\FrontController->doDispatch(…) called at [/websites/123reg/LinuxPackage22/ro/ck/cl/rockcliffehotel.com/public_html/stats/core/FrontController.php:86]
#19 Piwik\FrontController->dispatch(…) called at [/websites/123reg/LinuxPackage22/ro/ck/cl/rockcliffehotel.com/public_html/stats/core/Plugin/Controller.php:870]
#20 Piwik\Plugin\Controller->redirectToIndex(…) called at [/websites/123reg/LinuxPackage22/ro/ck/cl/rockcliffehotel.com/public_html/stats/plugins/CoreHome/Controller.php:110]
#21 Piwik\Plugins\CoreHome\Controller->redirectToCoreHomeIndex(…) called at [:]
#22 call_user_func_array(…) called at [/websites/123reg/LinuxPackage22/ro/ck/cl/rockcliffehotel.com/public_html/stats/core/FrontController.php:577]
#23 Piwik\FrontController->doDispatch(…) called at [/websites/123reg/LinuxPackage22/ro/ck/cl/rockcliffehotel.com/public_html/stats/core/FrontController.php:86]
#24 Piwik\FrontController->dispatch(…) called at [/websites/123reg/LinuxPackage22/ro/ck/cl/rockcliffehotel.com/public_html/stats/core/dispatch.php:34]
#25 require_once(…) called at [/websites/123reg/LinuxPackage22/ro/ck/cl/rockcliffehotel.com/public_html/stats/index.php:47]


#7

Same issue here. I cleared the tmp/template_c folder, to no avail.
the trace:


Notice: Undefined index: Clear in /home/ngaleoss/stats.getnightingale.com/core/Translate.php on line 173

Backtrace -->

#0 Piwik\Error::errorHandler(...) called at [/home/ngaleoss/stats.getnightingale.com/core/Translate.php:173]
#1 Piwik\Translate::getJavascriptTranslations(...) called at [/home/ngaleoss/stats.getnightingale.com/core/AssetManager.php:121]
#2 Piwik\AssetManager->getJsInclusionDirective(...) called at [/home/ngaleoss/stats.getnightingale.com/core/Twig.php:127]
#3 Piwik\Twig->Piwik\{closure}(...) called at [:]
#4 call_user_func_array(...) called at [/home/ngaleoss/stats.getnightingale.com/tmp/templates_c/f6/ff/527e106df74fbfadcc4decb79bbc564e3089e4d80a3b6a2c5712c381702a.php:24]
#5 __TwigTemplate_f6ff527e106df74fbfadcc4decb79bbc564e3089e4d80a3b6a2c5712c381702a->doDisplay(...) called at [/home/ngaleoss/stats.getnightingale.com/vendor/twig/twig/lib/Twig/Template.php:278]
#6 Twig_Template->displayWithErrorHandling(...) called at [/home/ngaleoss/stats.getnightingale.com/vendor/twig/twig/lib/Twig/Template.php:252]
#7 Twig_Template->display(...) called at [/home/ngaleoss/stats.getnightingale.com/tmp/templates_c/f5/f0/7286dd67ba058efc3edbabbab4cf0a87babe5b2b6827b3d599892514919c.php:121]
#8 __TwigTemplate_f5f07286dd67ba058efc3edbabbab4cf0a87babe5b2b6827b3d599892514919c->block_head(...) called at [/home/ngaleoss/stats.getnightingale.com/vendor/twig/twig/lib/Twig/Template.php:144]
#9 Twig_Template->displayBlock(...) called at [/home/ngaleoss/stats.getnightingale.com/tmp/templates_c/f5/f0/7286dd67ba058efc3edbabbab4cf0a87babe5b2b6827b3d599892514919c.php:30]
#10 __TwigTemplate_f5f07286dd67ba058efc3edbabbab4cf0a87babe5b2b6827b3d599892514919c->doDisplay(...) called at [/home/ngaleoss/stats.getnightingale.com/vendor/twig/twig/lib/Twig/Template.php:278]
#11 Twig_Template->displayWithErrorHandling(...) called at [/home/ngaleoss/stats.getnightingale.com/vendor/twig/twig/lib/Twig/Template.php:252]
#12 Twig_Template->display(...) called at [/home/ngaleoss/stats.getnightingale.com/tmp/templates_c/ec/b0/50249621e37bbe46f900ca6ad79cb0c1a488402df17517e04968bdf3ee2a.php:25]
#13 __TwigTemplate_ecb050249621e37bbe46f900ca6ad79cb0c1a488402df17517e04968bdf3ee2a->doDisplay(...) called at [/home/ngaleoss/stats.getnightingale.com/vendor/twig/twig/lib/Twig/Template.php:278]
#14 Twig_Template->displayWithErrorHandling(...) called at [/home/ngaleoss/stats.getnightingale.com/vendor/twig/twig/lib/Twig/Template.php:252]
#15 Twig_Template->display(...) called at [/home/ngaleoss/stats.getnightingale.com/vendor/twig/twig/lib/Twig/Template.php:263]
#16 Twig_Template->render(...) called at [/home/ngaleoss/stats.getnightingale.com/vendor/twig/twig/lib/Twig/Environment.php:292]
#17 Twig_Environment->render(...) called at [/home/ngaleoss/stats.getnightingale.com/core/View.php:256]
#18 Piwik\View->renderTwigTemplate(...) called at [/home/ngaleoss/stats.getnightingale.com/core/View.php:251]
#19 Piwik\View->render(...) called at [/home/ngaleoss/stats.getnightingale.com/plugins/CoreHome/Controller.php:169]
#20 Piwik\Plugins\CoreHome\Controller->index(...) called at [:]
#21 call_user_func_array(...) called at [/home/ngaleoss/stats.getnightingale.com/core/FrontController.php:577]
#22 Piwik\FrontController->doDispatch(...) called at [/home/ngaleoss/stats.getnightingale.com/core/FrontController.php:86]
#23 Piwik\FrontController->dispatch(...) called at [/home/ngaleoss/stats.getnightingale.com/core/dispatch.php:34]
#24 require_once(...) called at [/home/ngaleoss/stats.getnightingale.com/index.php:47]


#8

Same problem, also cleared out templates_c to no avail. Problem appeared just after 2.6.1 update.


#9

I have same problem after auto update piwik 2.6.1.

tryed to clear templates_c folder , didnt work.
tryed to download piwik , and update all file(beside config) didnt work.

i am wondering if it is a server problem :

Version PHP 5.4.32
Version Apache 2.4.10 LiteSpeed


#10

When does this error occur? Meaning which site are you opening? Do you have any custom plugins / additional plugins installed or deactivated?


#11

@thomas-piwik:
This error appears on the dashboard. See for example stats.getnightingale.com. Note that the widgets load, but their content does not. This particular instance has the default set plus the Geolocation plugins, if I recall correctly. Of the installed ones (there are no custom installed plugins from the marketplace or elsewhere) the following are enabled: Actions (Core), Active, Annotations (Core), CustomVariables (Core), Dashboard (Core), DevicesDetection (Core), Events (Core), ExampleAPI (Core), ExamplePlugin (Core), ExampleRssWidget (Core), Feedback (Core), Goals (Core), ImageGraph (Core), LeftMenu (Core), Live (Core), Login (Core), MobileMessaging (Core), MultiSites (Core), Overlay (Core), PrivacyManager (Core), Provider (Core), Referrers (Core), ScheduledReports (Core), SegmentEditor (Core), SEO (Core), Transitions (Core), UserCountry (Core), UserCountryMap (Core), UserSettings (Core), VisitFrequency (Core), VisitorInterest (Core), VisitsSummary (Core), VisitTime (Core), Widgetize (Core), ZenMode (Core). So it’s only core plugins.


#12

It appears on the dashboard, before you even login to piwik


#13

Its fixed for me now…
i dont know exactly what did fix it, but this is what i did.

in piwik , setting , website ( nothing load , its bugged) , so i did click on add website… and i cancel that , and now the website page load…

i did change the version of my PHP ( my host alow me to set what php i want)… after some messing around with PHP version , i did go back to what i had , so php 5.5(but maybe some module of PHP dont load now , as i took my host default setting.

i did delete cache of website , cloudflare , and brother…

hope it help to understand problem , or someone to fix his piwik…


#14

Can you all try to replace the file lang/en.json with the content of this file: https://raw.githubusercontent.com/piwik/piwik/2.6.1/lang/en.json ? Just in case it wasn’t copied correct. And test it again afterwards?

You might have to reset a possible used opcache before. If it does not fix your issue please let me know which PHP version and operating system you are using. I think one has already mentioned 5.4.32. I only wanna see if there is a pattern in case you are all using the same PHP version.


#15

@thomas-piwik: Replacing the en.json did in fact fix it for me.


#16

Same here, the en.json fixed it for me too.


#17

Same here, the en.json fixed it for me too.


#18

Copying over en.json worked for me as well.