Alias problem

Talk about writing modules and plugins for CMS Made Simple, or about specific core functionality. This board is for PHP programmers that are contributing to CMSMS not for site developers
Post Reply
BamaRob

Alias problem

Post by BamaRob »

Since upgrading to 0.7.2, whenever I go to edit an existing content page that has an alias name with a hyphen/dash/minus ( - ) in it, I get
  • * Alias must be all letters and numbers[/list:u]

    Before 0.7.2, if the page title had a space in it, the space was replaced by a ( - ) in the alias. If I remove the the dash from the alias name, the page saves fine. I have a lot of pages that have a dash in their alias. Do I need to change them all, or can this be corrected in the code?

    Thanks,

    BR
Ted
Power Poster
Power Poster
Posts: 3329
Joined: Fri Jun 11, 2004 6:58 pm
Location: Fairless Hills, Pa USA

Alias problem

Post by Ted »

Shoot. That is most definatly a bug. I changed the code for detecting correct letters. Forgot to account for dashes and underscores. It'll be fixed in 0.7.3.
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm
Location: Fernie British Columbia, Canada

Alias problem

Post by calguy1000 »

Yeah, this bit me too.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
iNSiPiD

Alias problem

Post by iNSiPiD »

wishy, can u tell me where the alias code hides in the DB?

I'm being told that "a page with that alias already exists" but the page was deleted long ago. It seems maybe the alias relationship to the page still exists?
Ted
Power Poster
Power Poster
Posts: 3329
Joined: Fri Jun 11, 2004 6:58 pm
Location: Fairless Hills, Pa USA

Alias problem

Post by Ted »

The check for alias is in lib/classes/class.content.inc.php starting about about line 1300. The function is CheckAliasError($alias).
Post Reply

Return to “Developers Discussion”