Skip to content
General Revolution Evolution Add-ons International
Login | Register | MODX.com
MODX Open Source Content Management System, Framework, Platform and More.
Find a Partner | Hosts + SaaS | Jobs | Donate
  • RegisterSign Up with the MODX Community
  • LoginUse Your MODX.com Account
  • MODX Community Forums
  • Evolution
  • Legacy Release Archive
  • 0.9.6
  •  
  • Aliases not saved in 0.9.6 when MODx charset not set as UTF-8#

  • 34162
    0

    Zombie Reply #1, 4 years, 10 months ago

    Reply
    • Link to this post#1
    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


  • 25663
    12,071


    Ryan Thrash

    MODX Co-Founder & Leader of Awesomeness




    MODX Revolution

    Your Content, Your Way.


    Issues | Documentation | Git the Source


    Need help? Help us help you.


    rthrash Reply #2, 4 years, 10 months ago

    Reply
    • Link to this post#2
    Already fixed in the SVN ... but thanks for pointing that out!


  • 6726
    7,075
    - Former MODx evangelist
    .: COO - Commerce Guys - Community Driven Innovation :.


    MODx est l'outil id

    davidm Reply #3, 4 years, 10 months ago

    Reply
    • Link to this post#3
    Yeah and you can find a quick and dirty fix for Latin1 here if you can't wait : here
    (It's in french )


  • 1978
    131
    Как русифировать Modx 0.9.6.1(QuickEdit, TinyMCE)
    QuickEdit под win-1251 без mb_-функций

    Aramaki Reply #4, 4 years, 7 months ago

    Reply
    • Link to this post#4
    Thanks - that helped.

    Need to develop new project without waiting for version update





Actions

Login to Post

Other Support Options

To file a bug or make a feature request visit our issue tracker, or you can also purchase commercial support.

Love MODX?

If you build sites for a living with MODX or just love using it, why not give back?

Information

Posted in this thread:
Aramaki, davidm, rethrash, zombiemx

 
Back to Top

MODX Global HQ

1333 N Stemmons Fwy, Ste 110
Dallas, TX 75207
United States

+1 (469) 777-MODX (6639)

The MODX Company

  • Contact
  • Media Center
  • Careers at MODX
  • Wall of Fame
  • The MODX Blog

Sponsors

SoftLayer Firehost: Secure Cloud Hosting

Stay Connected

Read our previous email newsletters.

Twitter Facebook Google+ LinkedIn github Feeds

Privacy Policy | Terms of Service | Pixels by AKTA Web Studio© 2005-2012 MODX. All rights reserved. Trademark Policy