We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 40131
    • 40 Posts
    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.]
      • 36722
      • 101 Posts
      Yup, seeing the same.
        Shawn Himmelberger
        Himmelberger Design
        https://himmdesign.com/services/website-development/modx"" target="_blank" rel="nofollow"> MODx Web Design | https://himmdesign.com/services/website-development/modx"" target="_blank" rel="nofollow"> MODx Web Development
        • 42046
        • 436 Posts
        Getting the same as well when 'Enable Context Alias Map Cache - cache_alias_map' is set to "No".