ALM broken after update | WordPress.org

[ad_1]

@htwinam Not sure what that error would be about, but can you share an example shortcode and Repeater Template that has the issue?

I’ve mirrored the client site on our staging server, and updated all plugins/theme/WP to the latest versions. I’ve deactivated most plugins on the site (during testing deactivated all – no difference) and have also tested removing all other JS on the site and the error remains. We have ALM successfully installed on a number of other sites without any issues so must be something to do with this setup.

Is there a way of sending the site URL privately?

Here are the shortcodes being used on the FAQs page (filter and listing):

[ajax_load_more_filters id="faq_filters" target="faq_posts"]
[ajax_load_more id="faq_posts" target="faq_filters" filters="true" filters_url="false" filters_paging="false" post_type="faq" posts_per_page="-1" order="ASC" placeholder="true"]

This is the template code:

<?php
$cat_terms = get_the_terms( get_the_ID(), 'faq_category' );
$first_term = $cat_terms[0]->name;
$faqid = get_field('link_to_faq') ? 'id="' . get_field('link_to_faq') . '"' : '';
?>

<div <?php echo $faqid; ?> class="faq-single" data-cat="<?php echo $first_term; ?>">
<div class="faq-question">
<h4><?php echo get_the_title(); ?></h4>
</div>
<div class="faq-answer">
<?php the_content(); ?>
<?php $link = get_field('faq_button'); ?>
<?php if ( $link ) : ?>
<?php $link_url = $link['url'];
$link_title = $link['title'];
$link_target = $link['target'] ? $link['target'] : '_self'; ?>
<a class="et_pb_button" href="https://projectdmc.org/support/topic/alm-broken-after-update/<?php echo $link_url; ?>" target="<?php echo $link_target; ?>"><?php echo $link_title; ?></a>
<?php endif; ?>
</div>
</div>

Yes, via the support tab on the website.

I’ve noticed setting posts_per_page="-1" sometimes causes issues in some environments. I haven’t been able to solve the issue but seems related to the query taking far to long to execute and the JS promise resolving too early.

Try setting it to an actual value and see if that helps.

Such an easy fix!

Yes, that’s sorted it. It’s also resolved a slow loading issue we had that we couldn’t work out.

Thanks for your help!

Excellent, thanks for the follow up!

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer