When the new setting
Enable Context Alias Map Cache - cache_alias_map is set to "No"
Archivist generate huge error log overhead with this repeating to infinity:
[2013-04-12 22:00:46] (ERROR @ /index.php) [OnPageNotFound]<br />
<b>Warning</b>: array_search() expects parameter 2 to be array, null given in <b>/...path.../root/core/cache/includes/elements/modplugin/6.include.cache.php</b> on line <b>55</b>
line 55:
/* get resource to redirect to */
$resourceId = false;
$prefix = 'arc_';
foreach ($archiveIds as $archive) {
$archive = explode(':',$archive);
$archiveId = $archive[0];
[b]$alias = array_search($archiveId,$modx->aliasMap);[/b]
if ($alias && strpos($search,$alias) !== false) {
$search = str_replace($alias,'',$search);
$resourceId = $archiveId;
if (isset($archive[1])) $prefix = $archive[1];
}
}
The erros doesn't cause any problems in the frontend but the system error logs raise so fast - several megabytes per day.
[ed. note: nickyz last edited this post 13 years, 5 months ago.]