Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/245.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
解析错误:语法错误,第17行的/home2/cgobr/public_html/wp content/themes/coin/page-home.php中出现意外的T_LNUMBER_Php_Parsing_Syntax - Fatal编程技术网

解析错误:语法错误,第17行的/home2/cgobr/public_html/wp content/themes/coin/page-home.php中出现意外的T_LNUMBER

解析错误:语法错误,第17行的/home2/cgobr/public_html/wp content/themes/coin/page-home.php中出现意外的T_LNUMBER,php,parsing,syntax,Php,Parsing,Syntax,首先,我要说的是,我对PHP几乎一无所知,只是试图在我的主页上交换图像滑块,因为其中一个与所需的插件冲突。我得到了这个错误: 解析错误:语法错误,第17行的/home2/cgobr/public_html/wp content/themes/coin/page-home.php中出现意外的T_LNUMBER 谁能告诉我编码哪里错了吗。我的意思是,我不是弱智,我知道css,我知道html,只是不知道php的东西。请帮忙!!!代码如下: <?php /** * Template name: H

首先,我要说的是,我对PHP几乎一无所知,只是试图在我的主页上交换图像滑块,因为其中一个与所需的插件冲突。我得到了这个错误:

解析错误:语法错误,第17行的/home2/cgobr/public_html/wp content/themes/coin/page-home.php中出现意外的T_LNUMBER

谁能告诉我编码哪里错了吗。我的意思是,我不是弱智,我知道css,我知道html,只是不知道php的东西。请帮忙!!!代码如下:

<?php
/**
* Template name: Home
*/
?>

<?php get_header() ?>

<script type="text/javascript">
jQuery(document).ready(function() {
jQuery('#mycarousel').jcarousel();
});
</script>
<div id="home_top">
<div id="home_rare"><ul><?=do_shortcode("[home_rare]") ?></ul></div>
<?php echo do_shortcode("[soliloquy id="79129"]"); ?>
<div class="clear"></div>
</div>
<center>
<object width="980" height="30">
<param name="movie" value="http://www.monex.com/tickers/ticker_980.swf" />
<embed src="http://www.monex.com/tickers/ticker_980.swf" width="980" height="30">
</embed></object>
<br><Br><a href="http://stores.ebay.com/coingalleryofbocaraton" target="_blank"><img src="http://cgobr.com/wp-content/uploads/2013/04/EbayStoreBanner1.jpg"></a></center><br>
<div id="home_content">
<div id="home_content_left">
<?php the_post() ?>
<h2 class="entry-title"><?php the_title() ?></h2>
<div class="entry-content">
<?php the_content() ?>
<?php wp_link_pages('before=<div class="page-link">' . __( 'Pages:', 'kameleon' ) . '&after=</div>') ?>
<?php edit_post_link( __( 'Edit', 'kameleon' ), '<span class="edit-link">', '</span>' ) ?>
</div>
</div>
<div id="home_content_right">
<h2 class="entry-title">Featured Video</h2>
<iframe width="300" height="169" src="//www.youtube.com/embed/YQ2UIEZMCAE" frameborder="0" allowfullscreen></iframe>
<br><br>
<h2 class="entry-title">Like Us on Facebook</h2>
<iframe src="//www.facebook.com/plugins/likebox.php?href=https%3A%2F%2Fwww.facebook.com%2FCoinGalleryofSouthFlorida&amp;width=292&amp;height=500&amp;show_faces=true&amp;colorscheme=light&amp;stream=true&amp;border_color&amp;header=true&amp;appId=277341438944784" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:292px; height:500px;" allowTransparency="true"></iframe>
<?=get_post_meta($post->ID, 'featured_video', true)?>
</div>
<div class="clear"></div>
</div>
<?php
global $woocommerce;

$query_args = array('posts_per_page' => $number, 'no_found_rows' => 1, 'post_status' => 'publish', 'post_type' => 'product' );

$query_args['meta_query'] = array();

$query_args['meta_query'][] = array(
'key' => '_featured',
'value' => 'yes'
);
$query_args['meta_query'][] = $woocommerce->query->stock_status_meta_query();
$query_args['meta_query'][] = $woocommerce->query->visibility_meta_query();

$r = new WP_Query($query_args);

if ($r->have_posts()) : ?>

<div id="home_featured">
<h2>Featured</h2>
<ul id="mycarousel" class="jcarousel-skin-tango">
<?php while ($r->have_posts()) : $r->the_post(); global $product; ?>
<li><a href="<?php echo esc_url( get_permalink( $r->post->ID ) ); ?>" title="<?php echo esc_attr($r->post->post_title ? $r->post->post_title : $r->post->ID); ?>">
<?php echo $product->get_image("shop_catalog"); ?>
<h3><span><?php if ( $r->post->post_title ) echo get_the_title( $r->post->ID ); else echo $r->post->ID; ?></span></h3>
</a> <span class="price"><?php echo $product->get_price_html(); ?></span></li>
<?php endwhile; ?>
</ul>
</div>
<?php endif; ?>
<?php /*
<div id="home_bottom">
<div id="home_bottom_left" class="bottom_box">
<a class="button" href="<?=home_url()?>/product-category/rare-coins/" title="View all">View all</a>
<h2><span>Rare coin inventory</span></h2>
<?php
global $post;
$tmp_post = $post;
$args = array(
'numberposts' => 1,
'post_type'=> 'product',
'orderby' => 'rand',
'tax_query' => array(
array(
'taxonomy' => 'product_cat',
'field' => 'slug',
'terms' => 'rare-coins'
)
)
);
$myposts = get_posts( $args );
foreach( $myposts as $post ) : setup_postdata($post); $first = $post->ID; ?>
<a class="home_pic" href="<?php the_permalink(); ?>" title="<?php the_title(); ?>">
<?php if ( has_post_thumbnail() ) : ?>
<a itemprop="image" href="<?php echo wp_get_attachment_url( get_post_thumbnail_id() ); ?>" class="zoom" rel="thumbnails" title="<?php echo get_the_title( get_post_thumbnail_id() ); ?>"><?php echo get_the_post_thumbnail( $post->ID, apply_filters( 'single_product_large_thumbnail_size', 'shop_single' ) ) ?></a>
<?php else : ?>
<img src="<?php echo woocommerce_placeholder_img_src(); ?>" alt="Placeholder" />
<?php endif; ?>
</a>
<div class="home_bot_cont">
<h2><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2>
<div><?php the_excerpt(); ?></div>
</div>
<?php endforeach; ?>
<?php $post = $tmp_post; ?>
</div>
<div id="home_bottom_right" class="bottom_box">
<a class="button" href="<?=home_url()?>/product-category/rare-coins/precious-metals-bullion/" title="View all">View all</a>
<h2><span>Precious Metals &amp; Bullion</span></h2>
<?php
global $post;
$tmp_post = $post;
$args = array(
'numberposts' => 1,
'post_type'=> 'product',
'orderby' => 'rand',
'exclude' => $first,
'tax_query' => array(
array(
'taxonomy' => 'product_cat',
'field' => 'slug',
'terms' => 'precious-metals-bullion'
)
)
);
$myposts = get_posts( $args );
foreach( $myposts as $post ) : setup_postdata($post); ?>
<a class="home_pic" href="<?php the_permalink(); ?>" title="<?php the_title(); ?>">
<?php if ( has_post_thumbnail() ) : ?>
<a itemprop="image" href="<?php echo wp_get_attachment_url( get_post_thumbnail_id() ); ?>" class="zoom" rel="thumbnails" title="<?php echo get_the_title( get_post_thumbnail_id() ); ?>"><?php echo get_the_post_thumbnail( $post->ID, apply_filters( 'single_product_large_thumbnail_size', 'shop_single' ) ) ?></a>
<?php else : ?>
<img src="<?php echo woocommerce_placeholder_img_src(); ?>" alt="Placeholder" />
<?php endif; ?>
</a>
<div class="home_bot_cont">
<h2><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2>
<div><?php the_excerpt(); ?></div>
</div>
<?php endforeach; ?>
<?php $post = $tmp_post; ?>
</div>
<div class="clear"></div>
</div> */?>

<?php // get_sidebar() ?>
<?php get_footer() ?>

jQuery(文档).ready(函数(){
jQuery(“#mycarousel”).jcarousel();
});




    您的错误是由引号引起的,它们正在关闭字符串,因此您的数字不属于该字符串

    <?php echo do_shortcode("[soliloquy id="79129"]"); ?>
    
    
    
    你可以把它改成

    <?php echo do_shortcode("[soliloquy id='79129']"); ?>
    

    可能是这一行
    应该是
    我试过了,它消除了错误,但没有显示滑块?非常感谢您的快速回复。我尝试了你的两个回答,但都没有显示错误,但出于某种原因,当我使用该短代码时,它不会调用图像滑块。我不知道该怎么办!!英雄联盟
    
    <?php echo do_shortcode("[soliloquy id=\"79129\"]"); ?>