Lazy load prevents comments from loading at all
-
We are using the Divi theme. All plugins and themes are up-to-date. When lazy loading is enabled on our site, any post with >10 comments won’t load the comments. It just shows a “Load Comments” button. When you click it, it spins for a second and then nothing else happens.
Upon checking the Network tab in the browser’s inspector tool, I can see that there is a 500 error from the server saying the custom comment template is failing to load.
I traced the difference between pages that load correctly and pages that don’t, and saw that the ones with more than 10 comments were making a call to admin-ajax, while the posts with fewer than 10 comments weren’t.
The error is occurring in the
start_el
function in the Walker_Comment class. The error that gets returned is thatet_custom_comments_display
is not a valid function. This function is a custom function found in the Divi theme’s builder.../wp-content/themes/Divi/includes/builder/functions.php
. Specifically it is happening on line 183 it the current version of Divi, where it sayscall_user_func( $args['callback'], $comment, $args, $depth );
When lazy loading is off, this works fine. When lazy loading is on, it can’t find this function.
- You must be logged in to reply to this topic.