Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error message #4426

Closed
anonymous-matomo-user opened this issue Dec 22, 2013 · 1 comment
Closed

error message #4426

anonymous-matomo-user opened this issue Dec 22, 2013 · 1 comment
Labels
Bug For errors / faults / flaws / inconsistencies etc. worksforme The issue cannot be reproduced and things work as intended.

Comments

@anonymous-matomo-user
Copy link

Hi, I got this error message :

Notice: Undefined index: log_writers in /home/www/piwik/core/Log.php on line 272

Warning: array_map(): Argument #2 should be an array in /home/www/piwik/core/Log.php on line 274

Warning: Invalid argument supplied for foreach() in /home/www/piwik/core/Log.php on line 275
There is an error. Please report the message (Piwik 2.0.2) and full backtrace in the Piwik forums (please do a Search first as it might have been reported already!).

Notice: Undefined index: log_writers in /home/www/piwik/core/Log.php on line 272

Backtrace -->
#0 Piwik\Error::errorHandler(...) called at [/home/www/piwik/core/Log.php:272]
#1 Piwik\Log->setLogWritersFromConfig(...) called at [/home/www/piwik/core/Log.php:174]
#2 Piwik\Log->__construct(...) called at [/home/www/piwik/core/Singleton.php:40]
#3 Piwik\Singleton::getInstance(...) called at [/home/www/piwik/core/Log.php:542]
#4 Piwik\Log::logMessage(...) called at [/home/www/piwik/core/Log.php:240]
#5 Piwik\Log::verbose(...) called at [/home/www/piwik/core/ArchiveProcessor/Parameters.php:188]
#6 Piwik\ArchiveProcessor\Parameters->logStatusDebug(...) called at [/home/www/piwik/core/ArchiveProcessor/PluginsArchiver.php:105]
#7 Piwik\ArchiveProcessor\PluginsArchiver->finalizeArchive(...) called at [/home/www/piwik/core/ArchiveProcessor/Loader.php:122]
#8 Piwik\ArchiveProcessor\Loader->prepareAllPluginsArchive(...) called at [/home/www/piwik/core/ArchiveProcessor/Loader.php:74]
#9 Piwik\ArchiveProcessor\Loader->prepareArchive(...) called at [/home/www/piwik/core/Archive.php:793]
#10 Piwik\Archive->prepareArchive(...) called at [/home/www/piwik/core/Archive.php:612]
#11 Piwik\Archive->cacheArchiveIdsAfterLaunching(...) called at [/home/www/piwik/core/Archive.php:554]
#12 Piwik\Archive->getArchiveIds(...) called at [/home/www/piwik/core/Archive.php:494]
#13 Piwik\Archive->get(...) called at [/home/www/piwik/core/Archive.php:343]
#14 Piwik\Archive->getDataTableFromNumeric(...) called at [/home/www/piwik/plugins/MultiSites/API.php:207]
#15 Piwik\Plugins\MultiSites\API->buildDataTable(...) called at [/home/www/piwik/plugins/MultiSites/API.php:107]
#16 Piwik\Plugins\MultiSites\API->getAll(...) called at [/home/www/piwik/plugins/MultiSites/Controller.php:74]
#17 Piwik\Plugins\MultiSites\Controller->getSitesInfo(...) called at [/home/www/piwik/plugins/MultiSites/Controller.php:47]
#18 Piwik\Plugins\MultiSites\Controller->index(...) called at [:]
#19 call_user_func_array(...) called at [/home/www/piwik/core/FrontController.php:117]
#20 Piwik\FrontController->dispatch(...) called at [/home/www/piwik/index.php:71]

I temporarily fixed it by replacing

// set the log writers
        $logWriters = $logConfig[self::LOG_WRITERS_CONFIG_OPTION];```

with

// set the log writers
$logConfig['log_writers'] = array('screen');
$logWriters = $logConfig[self::LOG_WRITERS_CONFIG_OPTION];```

in file : core/Log.php
It seems $logConfig['log_writers'] is not set anywhere

Chag

@mattab
Copy link
Member

mattab commented Dec 25, 2013

reupload the file global.ini.php as it was not uploaded properly

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug For errors / faults / flaws / inconsistencies etc. worksforme The issue cannot be reproduced and things work as intended.
Projects
None yet
Development

No branches or pull requests

2 participants