Notice: Undefined index: WithUnknownRegion in /piwikinstallataion/core/Translate.php on line 173


#1

Hey got an interesting error after attempting the automatic upgrade to 2.5.0 - undefined index for both WithUnknownRegion and WithUnknownCity. Backtraces pasted below.
Tried overwriting some files with the latest downloadable version eg translate.php but no luck so far. Any suggestions?

Notice: Undefined index: WithUnknownRegion in /piwikinstallation/core/Translate.php on line 173

Backtrace -->

#0 Piwik\Error::errorHandler(…) called at [/piwikinstallation/core/Translate.php:173]
#1 Piwik\Translate::getJavascriptTranslations(…) called at [/piwikinstallation/core/AssetManager.php:121]
#2 Piwik\AssetManager->getJsInclusionDirective(…) called at [/piwikinstallation/core/Twig.php:127]
#3 Piwik{closure}(…) called at [:]
#4 call_user_func_array(…) called at [/piwikinstallation/tmp/templates_c/75/42/782ce9aeec164398e6141feeaacd012aeafc74b3c70b5c1f4149e3cf7439.php:24]
#5 __TwigTemplate_7542782ce9aeec164398e6141feeaacd012aeafc74b3c70b5c1f4149e3cf7439->doDisplay(…) called at [/piwikinstallation/vendor/twig/twig/lib/Twig/Template.php:278]
#6 Twig_Template->displayWithErrorHandling(…) called at [/piwikinstallation/vendor/twig/twig/lib/Twig/Template.php:252]
#7 Twig_Template->display(…) called at [/piwikinstallation/tmp/templates_c/f0/bf/6c94c3473601c3a85893f5f8c6cd5dfda16520f09c7788e17669eb326092.php:121]
#8 __TwigTemplate_f0bf6c94c3473601c3a85893f5f8c6cd5dfda16520f09c7788e17669eb326092->block_head(…) called at [/piwikinstallation/vendor/twig/twig/lib/Twig/Template.php:144]
#9 Twig_Template->displayBlock(…) called at [/piwikinstallation/tmp/templates_c/f0/bf/6c94c3473601c3a85893f5f8c6cd5dfda16520f09c7788e17669eb326092.php:30]
#10 __TwigTemplate_f0bf6c94c3473601c3a85893f5f8c6cd5dfda16520f09c7788e17669eb326092->doDisplay(…) called at [/piwikinstallation/vendor/twig/twig/lib/Twig/Template.php:278]
#11 Twig_Template->displayWithErrorHandling(…) called at [/piwikinstallation/vendor/twig/twig/lib/Twig/Template.php:252]
#12 Twig_Template->display(…) called at [/piwikinstallation/tmp/templates_c/9d/85/feaa3e0bfa8b4e559829a719ded59bddd02d96a686f4d1366efc834397fe.php:25]
#13 __TwigTemplate_9d85feaa3e0bfa8b4e559829a719ded59bddd02d96a686f4d1366efc834397fe->doDisplay(…) called at [/piwikinstallation/vendor/twig/twig/lib/Twig/Template.php:278]
#14 Twig_Template->displayWithErrorHandling(…) called at [/piwikinstallation/vendor/twig/twig/lib/Twig/Template.php:252]
#15 Twig_Template->display(…) called at [/piwikinstallation/vendor/twig/twig/lib/Twig/Template.php:263]
#16 Twig_Template->render(…) called at [/piwikinstallation/vendor/twig/twig/lib/Twig/Environment.php:292]
#17 Twig_Environment->render(…) called at [/piwikinstallation/core/View.php:256]
#18 Piwik\View->renderTwigTemplate(…) called at [/piwikinstallation/core/View.php:251]
#19 Piwik\View->render(…) called at [/piwikinstallation/plugins/CoreHome/Controller.php:168]
#20 Piwik\Plugins\CoreHome\Controller->index(…) called at [:]
#21 call_user_func_array(…) called at [/piwikinstallation/core/FrontController.php:576]
#22 Piwik\FrontController->doDispatch(…) called at [/piwikinstallation/core/FrontController.php:86]
#23 Piwik\FrontController->dispatch(…) called at [/piwikinstallation/core/dispatch.php:34]
#24 require_once(…) called at [/piwikinstallation/index.php:47]

Notice: Undefined index: WithUnknownCity in /piwikinstallation/core/Translate.php on line 173

Backtrace -->

#0 Piwik\Error::errorHandler(…) called at [/piwikinstallation/core/Translate.php:173]
#1 Piwik\Translate::getJavascriptTranslations(…) called at [/piwikinstallation/core/AssetManager.php:121]
#2 Piwik\AssetManager->getJsInclusionDirective(…) called at [/piwikinstallation/core/Twig.php:127]
#3 Piwik{closure}(…) called at [:]
#4 call_user_func_array(…) called at [/piwikinstallation/tmp/templates_c/75/42/782ce9aeec164398e6141feeaacd012aeafc74b3c70b5c1f4149e3cf7439.php:24]
#5 __TwigTemplate_7542782ce9aeec164398e6141feeaacd012aeafc74b3c70b5c1f4149e3cf7439->doDisplay(…) called at [/piwikinstallation/vendor/twig/twig/lib/Twig/Template.php:278]
#6 Twig_Template->displayWithErrorHandling(…) called at [/piwikinstallation/vendor/twig/twig/lib/Twig/Template.php:252]
#7 Twig_Template->display(…) called at [/piwikinstallation/tmp/templates_c/f0/bf/6c94c3473601c3a85893f5f8c6cd5dfda16520f09c7788e17669eb326092.php:121]
#8 __TwigTemplate_f0bf6c94c3473601c3a85893f5f8c6cd5dfda16520f09c7788e17669eb326092->block_head(…) called at [/piwikinstallation/vendor/twig/twig/lib/Twig/Template.php:144]
#9 Twig_Template->displayBlock(…) called at [/piwikinstallation/tmp/templates_c/f0/bf/6c94c3473601c3a85893f5f8c6cd5dfda16520f09c7788e17669eb326092.php:30]
#10 __TwigTemplate_f0bf6c94c3473601c3a85893f5f8c6cd5dfda16520f09c7788e17669eb326092->doDisplay(…) called at [/piwikinstallation/vendor/twig/twig/lib/Twig/Template.php:278]
#11 Twig_Template->displayWithErrorHandling(…) called at [/piwikinstallation/vendor/twig/twig/lib/Twig/Template.php:252]
#12 Twig_Template->display(…) called at [/piwikinstallation/tmp/templates_c/9d/85/feaa3e0bfa8b4e559829a719ded59bddd02d96a686f4d1366efc834397fe.php:25]
#13 __TwigTemplate_9d85feaa3e0bfa8b4e559829a719ded59bddd02d96a686f4d1366efc834397fe->doDisplay(…) called at [/piwikinstallation/vendor/twig/twig/lib/Twig/Template.php:278]
#14 Twig_Template->displayWithErrorHandling(…) called at [/piwikinstallation/vendor/twig/twig/lib/Twig/Template.php:252]
#15 Twig_Template->display(…) called at [/piwikinstallation/vendor/twig/twig/lib/Twig/Template.php:263]
#16 Twig_Template->render(…) called at [/piwikinstallation/vendor/twig/twig/lib/Twig/Environment.php:292]
#17 Twig_Environment->render(…) called at [/piwikinstallation/core/View.php:256]
#18 Piwik\View->renderTwigTemplate(…) called at [/piwikinstallation/core/View.php:251]
#19 Piwik\View->render(…) called at [/piwikinstallation/plugins/CoreHome/Controller.php:168]
#20 Piwik\Plugins\CoreHome\Controller->index(…) called at [:]
#21 call_user_func_array(…) called at [/piwikinstallation/core/FrontController.php:576]
#22 Piwik\FrontController->doDispatch(…) called at [/piwikinstallation/core/FrontController.php:86]
#23 Piwik\FrontController->dispatch(…) called at [/piwikinstallation/core/dispatch.php:34]
#24 require_once(…) called at [/piwikinstallation/index.php:47]


#2

Same here! Any ideas to solve it?


(Matthieu Aubry) #3

Re-upload the files in piwik/lang/ directory as some of them may not be uploaded properly


#4

That resolved the undefined index but now I’ve got no data and only receiving this error.
“Oops… there was a problem during the request. Maybe the server had a temporary issue, or maybe you requested a report with too much data. Please try again. If this error occurs repeatedly please contact your Piwik administrator for assistance.”

I am getting no errors in the server logs.
Running PHP Version 5.3.27

Thanks for the assistance Matt


(Matthieu Aubry) #5

Do you see any error in your web server error log ?