Bug: Don't set a page as it's own parent!

God forbid if you do it. You’ll pretty much lose all your conent and have to recreate the site. (Unless you want to dig into the database for the latest version history.)

Yes, somehow the Admin UI allows it to happen. I know…I did it. And once you do that, after you manage to snag your content from the database, you should probably just reinstall the whole site. (Or at least figure out how to purge all the content-related records. I now have orphaned records. And in one case I had to manually replace the “slug” value on that orphaned record via direct SQL so that I could change the permalink (same thing) on another page. An orphaned, lost record has “about”, so everytime I tried to use “about” (on the new page I was having to recreate) it would append five random characters. Nice to avoid the duplicates, but took me ten minutes to solve.

Is there a database cleanup utility? Or a SQL script available? (MySQL in this case.)

WOW, how did you do that?

signature0.jpg

Luis F. Majano
CEO
Ortus Solutions, Corp
www.ortussolutions.com

ColdBox Platform: http://www.coldbox.org
Linked In: http://www.linkedin.com/pub/3/731/483
Blog: http://www.luismajano.com
IECFUG Manager: http://www.iecfug.com

Social: twitter.com/lmajano facebook.com/lmajano

Ok, added a quick fix for that

signature0.jpg

Luis F. Majano
CEO
Ortus Solutions, Corp
www.ortussolutions.com

ColdBox Platform: http://www.coldbox.org
Linked In: http://www.linkedin.com/pub/3/731/483
Blog: http://www.luismajano.com
IECFUG Manager: http://www.iecfug.com

Social: twitter.com/lmajano facebook.com/lmajano

signature0.jpg