Auto-Archiving Problem

Hi,

First of all thanks a lot for this great piece of software. I think Piwik is a great alternative to Google Analytics.

The installation works without any problems and I’m collected some data. Then I wanted to set up auto-archiving, edited the .sh file and manualy executed it. It seems to be that it works in generall, but when I execute it over the shell I get a lot of (translation errors?) warnings:

Warning: Invalid argument supplied for foreach() in /var/www/vhosts/mydomainname.com/httpdocs/piwik/plugins/LanguagesManager/API.php on line 34


Backtrace -->#0  Piwik_ErrorHandler(2, Invalid argument supplied for foreach(), /var/www/vhosts/mydomainname.com/httpdocs/piwik/plugins/LanguagesManager/API.php, 34, Array ([languages] => ,[languageNames] => Array ())) called at [/var/www/vhosts/mydomainname.com/httpdocs/piwik/plugins/LanguagesManager/API.php:34]

#1  Piwik_LanguagesManager_API::getAvailableLanguages() called at [/var/www/vhosts/mydomainname.com/httpdocs/piwik/plugins/LanguagesManager/LanguagesManager.php:100]

#2  Piwik_LanguagesManager::getLanguageCodeForCurrentUser() called at [/var/www/vhosts/mydomainname.com/httpdocs/piwik/plugins/LanguagesManager/LanguagesManager.php:52]

#3  Piwik_LanguagesManager->getLanguageToLoad(Event_Notification Object ([_notificationName] => Translate.getLanguageToLoad,[_notificationObject] => ,[_notificationInfo] => Array (),[_notificationState] => 0,[_notificationCount] => 0)) called at [(null):0]

#4  call_user_func_array(Array ([0] => Piwik_LanguagesManager Object (),[1] => getLanguageToLoad), Array ([0] => Event_Notification Object ([_notificationName] => Translate.getLanguageToLoad,[_notificationObject] => ,[_notificationInfo] => Array (),[_notificationState] => 0,[_notificationCount] => 0))) called at [/var/www/vhosts/mydomainname.com/httpdocs/piwik/libs/Event/Dispatcher.php:280]

#5  Event_Dispatcher->postNotification(Event_Notification Object ([_notificationName] => Translate.getLanguageToLoad,[_notificationObject] => ,[_notificationInfo] => Array (),[_notificationState] => 0,[_notificationCount] => 0), 1, ) called at [/var/www/vhosts/mydomainname.com/httpdocs/piwik/libs/Event/Dispatcher.php:250]

#6  Event_Dispatcher->post(, Translate.getLanguageToLoad, Array (), 1, ) called at [/var/www/vhosts/mydomainname.com/httpdocs/piwik/core/PluginsManager.php:487]

#7  Piwik_PostEvent(Translate.getLanguageToLoad, ) called at [/var/www/vhosts/mydomainname.com/httpdocs/piwik/core/Translate.php:72]

#8  Piwik_Translate->getLanguageToLoad() called at [/var/www/vhosts/mydomainname.com/httpdocs/piwik/core/Translate.php:43]

#9  Piwik_Translate->loadUserTranslation() called at [/var/www/vhosts/mydomainname.com/httpdocs/piwik/core/FrontController.php:236]

#10 Piwik_FrontController->init() called at [/var/www/vhosts/mydomainname.com/httpdocs/piwik/index.php:51]

Does anyone know how to fix this? Or is this normal because I don’t have colected enough data (as I said this is my first day)?

Any help would be nice style_emoticons/<#EMO_DIR#>/smile.gif

Best regards,
Andy

can you replace your existing plugins/langagesmanager/api.php with the following file: http://dev.piwik.org/trac/browser/trunk/pl…php?format=raw

is it working better? do you still get the error?
thanks

Thanks for your feedback. I’ve tried it with the API.php you linked. Now it seems to be working without any problems: The output seems to be ok and there are no error messages.

Best regards and thanks for the fix,
Andy