Archive.sh - Error


#1

If I want to run the archive.sh on my linux server I get this error message:

There is an error. Please report the message and full backtrace in the Piwik forums.

        Notice: Undefined index:  Segments in /dirs/httpdocs/core/Config.php on line 336

Backtrace -->#0 Piwik_ErrorHandler(8, Undefined index: Segments, /dirs/httpdocs/core/Config.php, 336, Array ([name] => Segments)) called at [/dirs/httpdocs/core/Config.php:336]#1 Piwik_Config->__get(Segments) called at [/dirs/httpdocs/plugins/CoreAdminHome/API.php:42]#2 Piwik_CoreAdminHome_API->getKnownSegmentsToArchive()#3 call_user_func_array(Array ([0] => Piwik_CoreAdminHome_API Object (),[1] => getKnownSegmentsToArchive), Array ()) called at [/dirs/httpdocs/core/API/Proxy.php:156]#4 Piwik_API_Proxy->call(Piwik_CoreAdminHome_API, getKnownSegmentsToArchive, Array ([token_auth] => 7fb537571171f2b45c8fd07221849c9d,[–] => ,[module] => API,[method] => CoreAdminHome.getKnownSegmentsToArchive,[format] => csv,[convertToUnicode] => 0,[filter_limit] => 50)) called at [/dirs/httpdocs/core/API/Request.php:121]#5 Piwik_API_Request->process() called at [/dirs/httpdocs/plugins/API/Controller.php:27]#6 Piwik_API_Controller->index()#7 call_user_func_array(Array ([0] => Piwik_API_Controller Object ([] => API,[] => ,[] => ,[] => 0,[] => Piwik_Site Object ([] => 0)),[1] => index), Array ()) called at [/dirs/httpdocs/core/FrontController.php:125]#8 Piwik_FrontController->dispatch() called at [/dirs/httpdocs/index.php:57]


(vipsoft) #2

It looks like your config/global.ini.php wasn’t writeable, so the file wasn’t updated to the new version from 1.2.


#3

The file has chmod 777 so it was/is writeable :S :
http://img822.imageshack.us/img822/2302/piwik.png


(Matthieu Aubry) #4

it wasn’t written anyway… replace it with the new file: http://dev.piwik.org/svn/trunk/config/global.ini.php


#5

Okay, this works now but after a while I get this error (when the scripts tries to archive a site with much traffic/visitors):

Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 8208 bytes) in /dirs/piwik/httpdocs/core/DataTable.php on line 953


(vipsoft) #6

That’s because php.ini has memory_limit = 32M.

Try increasing it to 128M. If you can’t change php.ini, try creating a file in your piwik folder called “bootstrap.php” containing:


<?php
ini_set('memory_limit', '128M');