andyhuntdesigns
Forum Replies Created
-
Yep, turns out it was the code I was using to display post thumbnails as background image the whole time. get_attachment_image_src should be wp_get_attachment_image_src and somehow I was missing that until now. Womp womp. Thanks so much for your time though!!! Sorry I had you jumping through hoops for problem that was unrelated. Ajax Load More is an awesome awesome plugin.
Actually, you know what, I think I can fix it if I keep tinkering with it. I replaced my repeater template with the default one and it loaded fine, so something in my repeater must have gotten changed around or malformed when the site was getting transferred or updated. I’ll work it out. Thanks for all of your help, though. You’re awesome.
Could I shoot you an email with login info? I know this is way above and beyond any amount of customer support you owe me, I’m just totally stumped on this one.
Ok, I added that line. No changes that I can see. The repeater template now reads:
<?php global $post; $src = get_attachment_image_src( get_post_thumbnail_id($post->ID), array( 5600,1000 ), false, '' ); ?> <div class="row blogArchive"> <article id="post-<?php the_ID(); ?>" <?php post_class(''); ?> role="article"> <div class="medium-4 columns"> <a class="articleThumb" href="<?php the_permalink() ?>" style="background-image:url(<?php echo $src[0]; ?>);"></a> </div> <div class="medium-8 columns"> <header class="article-header"> <h2><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2> <time><?php the_time(get_option('date_format')) ?></time> </header> <!-- end article header --> <section class="entry-content" itemprop="articleBody"> <?php the_excerpt('<strong>' . __( 'more', 'jointswp' ) . '</button>'); ?> </section> <!-- end article section --> </div> </article> <!-- end article --> </div>I’ve also tried disabling all other plugins. No change there either.
Sure, here it is.
<?php $src = wp_u4cbq7_get_attachment_image_src( get_post_thumbnail_id($post->ID), array( 5600,1000 ), false, '' ); ?> <div class="row blogArchive"> <article id="post-<?php the_ID(); ?>" <?php post_class(''); ?> role="article"> <div class="medium-4 columns"> <a class="articleThumb" href="<?php the_permalink() ?>" style="background-image:url(<?php echo $src[0]; ?>);"></a> </div> <div class="medium-8 columns"> <header class="article-header"> <h2><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2> <time><?php the_time(get_option('date_format')) ?></time> </header> <!-- end article header --> <section class="entry-content" itemprop="articleBody"> <?php the_excerpt('<strong>' . __( 'more', 'jointswp' ) . '</button>'); ?> </section> <!-- end article section --> </div> </article> <!-- end article --> </div>And here’s my archive.php:
<?php get_header(); ?> <div id="content"> <section id="blogHeader" class="text-center"> <h2>News</h2> </section> <div id="inner-content" class="row"> <main id="main" class="large-8 medium-8 columns" role="main"> <?php echo do_shortcode('[ajax_load_more post_type="post" max_pages="0"]'); ?> </main> <!-- end #main --> <?php get_sidebar(); ?> </div> <!-- end #inner-content --> </div> <!-- end #content --> <?php get_footer(); ?>I just had wordpress rebuild the htaccess file in case another plugin had broken anything in there to cause to 500 error, but that didn’t seem to change anything.
There are a few entries in the error log, but they look unrelated (mostly carousel and webform plugins that I was testing out). And there are no recorded errors for yesterday, when I noticed the issue.
I did see a few mentions of 500 errors in the access log though, such as:
107.15.16.119 – – [14/Aug/2016:10:34:57 -0700] “GET /wp-admin/admin-ajax.php?action=alm_query_posts&query_type=standard&nonce=d013e4fa5b&repeater=default&theme_repeater=null&cta=&comments=&post_type%5B%5D=post&post_format=&category=&category__not_in=&tag=&tag__not_in=&taxonomy=&taxonomy_terms=&taxonomy_operator=&taxonomy_relation=&meta_key=&meta_value=&meta_compare=&meta_relation=&meta_type=&author=&year=&month=&day=&post_status=&order=DESC&orderby=date&post__in=&post__not_in=&exclude=&search=&custom_args=&posts_per_page=5&page=0&offset=0&preloaded=false&seo_start_page=1&paging=false&previous_post=false&previous_post_id=&previous_post_taxonomy=&lang=&slug=home&canonical_url=http%3A%2F%2Fwww.miraclefeet.dreamhosters.com%2Fnews%2F HTTP/1.1” 500 433 “http://www.miraclefeet.dreamhosters.com/news/” “Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36”
Not sure if that helps at all…