Quantcast

alias conflicts

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

alias conflicts

Dan Wilga-2
We recently ran into yet another case where a newly-added menu entry
conflicted with an existing page alias in mm_tree. As a result, the
page could not be viewed.

So, in r3166, I've added some code to MM to detect this circumstance
during menu rebuild. As a result, you should run the following PHP
code from "Execute PHP", to see if you have any pages that are
currently in this state. Otherwise, you'll get errors the next time
you try to rebuild the menus or clear cache.

$a = variable_get('mm_reserved_alias','');
$r = db_query("SELECT mmtid, name, alias FROM {mm_tree} WHERE alias
IN(" . db_placeholders($a, 'varchar') . ')', $a);
while ($row = db_fetch_object($r))
   print_r($row);

--
Dan Wilga                                 [hidden email]
Web System Administrator/Programmer             http://www.amherst.edu
Amherst College                                      Tel: 413-542-2175
Amherst, MA  01002

---
You are currently subscribed to monster_menus as: [hidden email].
To unsubscribe click here: http://lists.middlebury.edu/u?id=685503.6b071f880fe6a965a128164e6d09ea81&n=T&l=monster_menus&o=449163
or send a blank email to [hidden email]
Loading...