( ! ) Fatal error: Cannot redeclare showSimilar() (previously declared in /data/www/lumovoima.fi/wp-content/plugins/w3-total-cache/PgCache_ContentGrabber.php(1760) : eval()'d code:96) in /data/www/lumovoima.fi/wp-content/plugins/w3-total-cache/PgCache_ContentGrabber.php(1760) : eval()'d code on line 96
Call Stack
#TimeMemoryFunctionLocation
10.982912946688W3TC\PgCache_ContentGrabber->shutdown( ).../PgCache_ContentGrabber.php:0
20.982912946728W3TC\PgCache_ContentGrabber->_parse_dynamic( ).../PgCache_ContentGrabber.php:456
30.982912947368preg_replace_callback ( ).../PgCache_ContentGrabber.php:1734
41.452114497688W3TC\PgCache_ContentGrabber->_parse_dynamic_mfunc( ).../PgCache_ContentGrabber.php:1734
51.452314540000eval( 'if(isset($_SERVER['HTTP_X_REQUESTED_WITH']) && strtolower($_SERVER['HTTP_X_REQUESTED_WITH']) == 'xmlhttprequest') { echo "
"; echo wp_get_attachment_image( get_post_thumbnail_id( $post->ID ), 'medium' ); echo "
"; echo "
"; echo wp_get_attachment_image( get_post_thumbnail_id( $post->ID ), 'full' ); echo "
"; } else { // nää skeidat vois latautuu ajaxilla sitten kun muuten sivu on ladattununna. Tässä kun kestää kuitenkin kauan. $tags = array(); $pahikset = array( // objektiivit ja vuodet pois 3072, 2664, 3590, 5472, 722, 5473, 3693, 4321, 4415, 4269, 3537, 4883, 4690, 1201, 5285, 5312, 5134, 4777, 3635, 4419, 5443, 4391, 2290, 36, 51, 12, 787, 704, 723, 1807, 3794, 3801, 4209, 3685, 4925, 4742, 721, 3829, 3821, 3814, 3154, 5447, 5267, 3867, 4636, 1806, 3469, 3550, 3940, 3372, 4468, 3634, 4208, 4352, 2482, 3684, 2830, 4936, 2633, 2749, 2286, 2570, 3123, 2893, 18, 11 ); $posttags = get_the_tags(); if ($posttags) { foreach($posttags as $tag) { if(in_array($tag->term_id, $pahikset)){ } else { array_push($tags, $tag->term_id); } } } shuffle($tags); $tags = array_slice($tags, 0, 3); function showSimilar($tags){ wp_reset_query(); $args = array( 'orderby' => 'rand', 'posts_per_page' => 11, 'tag__in' => $tags ); $query = new WP_Query( $args ); // query_posts( $args ); if( $query->post_count < 11 ){ shuffle($tags); unset($tags[0]); $tags = array_values($tags); showSimilar($tags); } else { $photos = get_posts($args); if ($photos) { foreach ($photos as $photo) { $thumbTitle = get_the_title($photo->ID); $thumbLink = get_permalink($photo->ID); echo ''; echo get_the_post_thumbnail($photo->ID, 'thumbnail'); echo $thumbTitle.''; } } } } showSimilar($tags); };'
)
.../PgCache_ContentGrabber.php:1760