Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Breadcrumb logic loads and executes all parent pages #3115
This is directly related to issue #3105 ; basically just another (arguably much worse) expression of the same fundamental issue.
Whenever a page is loaded with the Pages->_page method, all its direct parents are loaded to build the page's breadcrumbs. The unfortunate thing happens in https://github.com/pyrocms/pyrocms/blob/2.2/master/system/cms/modules/pages/controllers/pages.php on line 162
This fetches the complete page (once for each parent in the page hierarchy) and thereby executes all the WYSIWYG fields causing massive side-effects.
Again, I'll provide a fix shortly, but this is just another symptom of an underlying issue as described in #3105
referenced this issue
Dec 9, 2013
Thanks for the fix. These models grew over time to be rather messy, so it's nice to kill them off in 2.3. Hopefully some of these issues will be avoided.
Please can you combine your issues and pull requests to avoid doubling up the number of emails our watchers are getting? No need to point out a problem then fix, just explain the problem in the fix.