WordPress / twentyseventeen

Twenty Seventeen is a theme now included in all WordPress installs. To report any issues please go here: https://core.trac.wordpress.org/newticket
180 stars 125 forks source link

Theme Options in customizer do not appear when you have too many pages #496

Closed aaronjorbin closed 7 years ago

aaronjorbin commented 7 years ago

To replicate: Create a few hundred thousand pages. The customizer takes a very long time to load and theme options panel is not rendered at all. Front page also fatal errors in the preview (even though it loads fine for me normally.

[Wed Oct 19 15:44:59.308691 2016] [:error] [pid 21322] [client 108.30.103.76:57048] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 48 bytes) in /srv/www/ilovewhite.space/public_html/src/wp-includes/cache.php on line 672, referer: http://ilovewhite.space/wp-admin/customize.php?return=%2Fwp-admin%2Fedit.php%3Fpost_type%3Dpage

celloexpressions commented 7 years ago

This is a core bug. The dropdown-pages control needs to be refactored to use something like Select2, but unfortunately that particular library isn't an option due to its inaccessibility. The Customize Posts plugin has some experiments here.

davidakennedy commented 7 years ago

Maybe an issue with wp_dropdown_pages() as well? I'm not sure this is a theme bug.

karmatosed commented 7 years ago

I'm going to close this potentially as a core bug as moving everything to trac. That said, if I am closing wrongly please open and issue on trac as that's where all Twenty Seventeen tickets are living now.