After playing with structure, the navigation tree was broken.
Unforchently we don't have a DB backup. Any advice how to fix it?
Thx!
ExpressionEngine® Answers is a question and answer site for administrators, end users, developers and designers for ExpressionEngine® CMS. It only takes a minute to sign up.
Sign up to join this communityMost probable that some entries were deleted from the system, but still they still in structure exp_structure table.
One-step solution:
DELETE FROM exp_structure WHERE entry_id not IN ( Select entry_id from exp_channel_titles )
Two-step solution (if u want to validate results):
Find missed records:
SELECT GROUP_CONCAT(entry_id) as entry_ids FROM exp_structure WHERE entry_id NOT IN (Select entry_id from exp_channel_titles)
Delete missed records, using results of the first query in next query (instead of XXXXXXXX)
DELETE FROM exp_structure WHERE entry_id IN ( XXXXXXXX )
This is from duplicate ordering values. Run our debug mode: http://buildwithstructure.com/documentation/debug_mode_for_page_data/