On March 26, 2019 we launched new MODX Forums. Please join us at the new MODX Community Forums.
Subscribe: RSS
  • Hi there,


    MODx 0.9.6 has been released in May 2007 and nobody seems to have noticed that there was a problem with documents aliases.

    In "manager/processors/save_content.processor.php", in the function "stripAlias()" on line 859 :
    $alias = strtr($alias, $replace_array);

    The problem is that the array "$replace_array" is only declared if the configuration charset is set as UTF-8 :
    if (strtoupper($modx->config['modx_charset']) == 'UTF-8'){

    So, an error occured while saving the alias because the function "strtr()" don’t find any array as second parameter.

    To make the thing work even if the configuration charset is not UTF-8, this should be placed within the "if" statement :
    $alias = strtr($alias, $replace_array);


    I hope this would be helpful (and quickly corrected).


    Thank you,


    Benjamin
    • Already fixed in the SVN ... but thanks for pointing that out! smiley
        Ryan Thrash, MODX Co-Founder
        Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
      • Yeah and you can find a quick and dirty fix for Latin1 here if you can’t wait : here

        (It’s in french tongue)
          .: COO - Commerce Guys - Community Driven Innovation :.


          MODx est l'outil id
        • Thanks - that helped.

          Need to develop new project without waiting for version update
            Как русифировать Modx 0.9.6.1(QuickEdit, TinyMCE)
            QuickEdit под win-1251 без mb_-функций