• Resolved tobanpenner

    (@tobanpenner)


    After updated WordPress to the latest version, the plugin has stopped working. I’ve tried disabling all plugins except the ajax plugin, I’ve changed themes, I’ve uploaded a new version of wordpress. Nothing seems to work. Any idea what’s happening here?

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Darren Cooney

    (@dcooney)

    Hi @tobanpenner,
    Not sure what is happening here… The response from the Ajax requests looks strange. It’s not JSON, but plain HTML.
    https://www.dropbox.com/s/0gvbtc35ph60go3/Screenshot%202018-04-25%2012.02.20.png?dl=0

    Can you confirm that the default repeater is located in uploads/alm_templates and it has the correct content? It was moved in this update from the plugins directory.

    Other than that, I’m not sure without looking at the admin.

    Let me know.

    Thread Starter tobanpenner

    (@tobanpenner)

    There is a file called default.php located in uploades/slm_templates. Here is the contents of that file:

    
    <div class=”clearclass<?php echo esc_attr( ($xyz++%4) ); ?> col-md-3 col-sm-6 “>
    <article id=”post-<?php the_ID(); ?>” <?php post_class(); ?> itemscope=”” itemtype=”https://schema.org/BlogPosting”>
    <div class=”rowtight”>
    <?php if(isset($virtue[‘post_summery_default’]) && ($virtue[‘post_summery_default’] != ‘text’)) {
    if($home_sidebar == true) {
    $textsize = ‘tcol-md-12 tcol-sm-12 tcol-ss-12’;
    $imagesize = ‘tcol-md-12 tcol-sm-12 tcol-ss-12’;
    } else {
    $textsize = ‘tcol-md-12 tcol-sm-12 tcol-ss-12’;
    $imagesize = ‘tcol-md-12 tcol-sm-12 tcol-ss-12’;
    }
    if (has_post_thumbnail( $post->ID ) ) {
    $image_id = get_post_thumbnail_id( $post->ID );
    $image_url = wp_get_attachment_image_src( $image_id, ‘full’ );
    $thumbnailURL = $image_url[0];
    $image = aq_resize($thumbnailURL, $img_width, 300, true);
    if(empty($image)) { $image = $thumbnailURL; }
    $img_srcset = kt_get_srcset_output($img_width, ‘300’, $thumbnailURL, $image_id);
    } else {
    $thumbnailURL = virtue_post_default_placeholder();
    $image = aq_resize($thumbnailURL, $img_width, 300, true);
    if(empty($image)) { $image = $thumbnailURL; }
    $img_srcset = ”;
    } ?>
    <div class=”<?php echo esc_attr($imagesize);?>”>
    <div class=”imghoverclass”>
    ” title=”<?php the_title(); ?>”>
    ”
    width=”<?php echo esc_attr($img_width);?>” height=”230″
    <?php echo $img_srcset; ?>
    alt=”<?php the_title(); ?>”
    class=”iconhover”
    style=”display:block;”>
    
    </div>
    </div>
    <?php $image = null; $thumbnailURL = null; ?>
    <?php } else {
    if (has_post_thumbnail( $post->ID ) ) {
    if($home_sidebar == true) {
    $textsize = ‘tcol-md-12 tcol-sm-12 tcol-ss-12’;
    $imagesize = ‘tcol-md-12 tcol-sm-12 tcol-ss-12’;
    } else {
    $textsize = ‘tcol-md-7 tcol-sm-12 tcol-ss-12’;
    $imagesize = ‘tcol-md-12 tcol-sm-12 tcol-ss-12’;
    }
    $image_id = get_post_thumbnail_id( $post->ID );
    $image_url = wp_get_attachment_image_src( $image_id, ‘full’ );
    $thumbnailURL = $image_url[0];
    $image = aq_resize($thumbnailURL, $img_width, 300, true);
    if(empty($image)) { $image = $thumbnailURL; }
    $img_srcset = kt_get_srcset_output($img_width, ‘300’, $thumbnailURL, $image_id);
    ?>
    <div class=”<?php echo esc_attr($imagesize);?>”>
    <div class=”imghoverclass”>
    ” title=”<?php the_title(); ?>”>
    ”
    width=”<?php echo esc_attr($img_width);?>” height=”230″
    <?php echo $img_srcset; ?>
    alt=”<?php the_title(); ?>”
    class=”iconhover”
    style=”display:block;”>
    
    </div>
    </div>
    <?php $image = null; $thumbnailURL = null; ?>
    <?php } else {
    $textsize = ‘tcol-md-12 tcol-ss-12’;
    }
    }?>
    <div class=”<?php echo esc_attr($textsize);?> postcontent”>
    <?php get_template_part(‘templates/post’, ‘date’); ?>
    <header class=”home_blog_title”>
    “>
    <h4 class=”entry-title”><?php the_title(); ?></h4>
    
    <div class=”subhead color_gray”>
    <span class=”postauthortop author vcard” data-toggle=”tooltip” data-placement=”top” data-original-title=”<?php echo get_the_author() ?>”>
    <span itemprop=”author” class=”kt_hidden”>” class=”fn” rel=”author”><?php echo get_the_author() ?></span>
    <i class=”icon-user”></i>
    </span>
    <span class=”kad-hidepostauthortop”> | </span>
    <?php $post_category = get_the_category($post->ID); if (!empty($post_category)) { ?>
    <span class=”postedintop” data-toggle=”tooltip” data-placement=”top” data-original-title=”<?php
    foreach ($post_category as $category) {
    echo $category->name .’ ‘;
    } ?>”><i class=”icon-folder-open”></i></span>
    <?php }?>
    <?php if(comments_open()) { ?>
    <span class=”kad-hidepostedin”>|</span>
    <span class=”postcommentscount” data-toggle=”tooltip” data-placement=”top” data-original-title=”<?php $num_comments = get_comments_number(); echo esc_attr($num_comments); ?>”>
    <i class=”icon-comments-alt”></i>
    </span>
    <?php } ?>
    </div>
    </header>
    <div class=”entry-content”>
    <p><?php echo virtue_excerpt(34); ?><br />“><?php _e(‘READ MORE’, ‘virtue’);?></p>
    </div>
    <footer>
    </footer>
    </div>
    </div>
    </article></div>
    
    • This reply was modified 6 years, 10 months ago by Marius L. J.. Reason: Added code tags
    Thread Starter tobanpenner

    (@tobanpenner)

    Now that I’ve pasted that in there, I think I remember editing that default template…

    Thread Starter tobanpenner

    (@tobanpenner)

    That was definitely the problem. Thank you for pointing me in the right direction.

    Plugin Author Darren Cooney

    (@dcooney)

    Ok great ??

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Stopped working after update’ is closed to new replies.