Parse error: syntax error, unexpected T_STRI

Résolu/Fermé
mv - 5 déc. 2011 à 10:50
 mv - 5 déc. 2011 à 14:11
Bonjour J'ai un message d'erreur qui apparait lorsque je veux afficher la page d'un article du site :
Parse error: syntax error, unexpected T_STRING in /homez.57/lecoota/www/wp-content/themes/videozoom/videozoom/single.php on line 167

Et la ligne 167 de ce fichier est une simple balise </ul>

le code complet du segment est :

<ul class="wpzoomSocial">

<li><a href="http://twitter.com/home?status=<?php the_title(); ?> <?php echo get_bloginfo('url')."/?p=".$post->ID; ?>" rel="external,nofollow"><img src="<?php bloginfo('template_directory'); ?>/images/icons/twitter.png" alt="Tweet This!" /> <?php _e('Tweet this!', 'wpzoom');?></a></li>

<li><a href="http://digg.com/submit?phase=2&url=<?php the_permalink();?>&title=<?php the_title_attribute();?>" rel="external,nofollow"><img src="<?php bloginfo('template_directory'); ?>/images/icons/digg.png" alt="Digg it!" /> <?php _e('Digg it!', 'wpzoom');?></a></li>

<li><a href="http://del.icio.us/post?v=4&noui&jump=close&url=<?php the_permalink();?>&title=<?php the_title_attribute();?>" rel="external,nofollow"><img src="<?php bloginfo('template_directory'); ?>/images/icons/delicious.png" alt="Ajoutez le aux articles Delicious!" /> <?php _e('Ajoutez le aux articles Delicious!', 'wpzoom');?></a></li>

<li><a href="http://www.facebook.com/sharer.php?u=<?php the_permalink();?>&t=<?php the_title(); ?>" rel="external,nofollow"><img src="<?php bloginfo('template_directory'); ?>/images/icons/facebook.png" alt="Partagez sur Facebook!" /> <?php _e('Partagez sur Facebook!', 'wpzoom');?></a></li>

<li><a href="http://www.stumbleupon.com/submit?url=<?php the_permalink(); ?>" rel="external,nofollow"><img src="<?php bloginfo('template_directory'); ?>/images/icons/stumbleupon.png" alt="Stumble it" /> <?php _e('Stumble it', 'wpzoom');?></a></li>

<li class="last"><a href="<?php if (strlen($wpzoom_misc_feedburner) < 10) { bloginfo('rss2_url');} else {echo"$wpzoom_misc_feedburner";} ?>" rel="external,nofollow"><img src="<?php bloginfo('template_directory'); ?>/images/icons/rss.png" alt="Subscribe by RSS" /> <?php _e('Subscribe by RSS', 'wpzoom');?></a></li>

</ul>


Je ne trouve pas la solution.

2 réponses

thosting Messages postés 167 Date d'inscription vendredi 6 février 2009 Statut Membre Dernière intervention 6 décembre 2011 27
Modifié par pititenouette le 6/12/2011 à 19:07
L'erreur peut être dans une fonction,

Ton erreur veut dire qu'il manque un ; ou } quelque part dans un fichier php.

C'est sure !
Verifie tout !

Sinon copie colle un le fichier complet.

Ca peut venir de la fonction :

bloginfo()
get_bloginfo()
_e()
$post->ID
0
thosting Messages postés 167 Date d'inscription vendredi 6 février 2009 Statut Membre Dernière intervention 6 décembre 2011 27
5 déc. 2011 à 12:40
PS: Il y a quoi après ca : </ul> et ca je vois pas $post->ID j'aurais mit plutot htmlentities($_POST['ID]) si celà concerne un post.
0
LE FICHIER COMPLET I AM LOST


<?php

global $options;

foreach ($options as $value) {

if (get_settings( $value['id'] ) === FALSE) { $$value['id'] = $value['std']; } else { $$value['id'] = get_settings( $value['id'] ); }

}

$dateformat = get_option('date_format');

$timeformat = get_option('time_format');

?>



<?php get_header(); ?>



<?php

// post custom fields

$template = get_post_meta($post->ID, 'wpzoom_post_template', true);

$showsocial = get_post_meta($post->ID, 'wpzoom_post_social', true);

$showauthor = get_post_meta($post->ID, 'wpzoom_post_author', true);



$videolocation = get_post_meta($post->ID, 'wpzoom_post_embed_location', true);

$videocode = get_post_meta($post->ID, 'wpzoom_post_embed_code', true);

if($wpzoom_autoembed == "Yes") { $AE = new AutoEmbed(); } // loading the AutoEmbed PHP Class



?>



<div id="main"<?php if ($template == 'Full Width (no sidebar)') {echo' class="full"';} elseif ($template == 'Sidebar on the left') {echo' class="invert"';} ?>>



<div class="wrapper">



<?php wp_reset_query(); if (have_posts()) : while (have_posts()) : the_post(); ?>



<?php if (strlen($videocode) > 1 && $videolocation == 'Before everything else') { ?>



<div class="zoomVideo zoomVideoBig">

<?php



if ($videocode && $wpzoom_autoembed == "Yes" && $AE->parseUrl($videocode)) {

$AE->setParam('wmode','transparent');

$AE->setParam('autoplay','false');

$AE->setHeight(518);

$AE->setWidth(920);

echo $AE->getEmbedCode(); }



else {



$videocode = preg_replace("/(width\s*=\s*[\"\'])[0-9]+([\"\'])/i", "$1 920 $2", $videocode);

$videocode = preg_replace("/(height\s*=\s*[\"\'])[0-9]+([\"\'])/i", "$1 518 $2", $videocode);



echo "$videocode";

}



?>

</div>



<?php } else { ?>



<div class="sep sepMenu"> </div>



<?php } ?>



<div id="content">



<div class="postmetadata">

<?php if ($wpzoom_singlepost_cat == 'Show') { ?>

<p class="header"><?php _e('Filed Under', 'wpzoom') ?></p>

<p><?php the_category(', '); ?></p>

<?php } ?>



<div class="sep"> </div>



<?php if ($wpzoom_singlepost_tag == 'Show') { ?>

<?php the_tags( '<p class="header">Tags</p><p>', ' ', '</p>'); ?>

<div class="sep"> </div>

<?php } ?>



<?php if ($showsocial != 'No' || !$showsocial) { ?>

<p class="header"><?php _e('Share this post', 'wpzoom') ?></p>



<ul class="wpzoomSocial">

<li><a href="http://twitter.com/home?status=<?php the_title(); ?> <?php echo get_bloginfo('url')."/?p=".$post->ID; ?>" rel="external,nofollow"><img src="<?php bloginfo('template_directory'); ?>/images/icons/twitter.png" alt="Tweet This!" /> <?php _e('Tweet this!', 'wpzoom');?></a></li>

<li><a href="http://digg.com/submit?phase=2&url=<?php the_permalink();?>&title=<?php the_title_attribute();?>" rel="external,nofollow"><img src="<?php bloginfo('template_directory'); ?>/images/icons/digg.png" alt="Digg it!" /> <?php _e('Digg it!', 'wpzoom');?></a></li>

<li><a href="http://del.icio.us/post?v=4&noui&jump=close&url=<?php the_permalink();?>&title=<?php the_title_attribute();?>" rel="external,nofollow"><img src="<?php bloginfo('template_directory'); ?>/images/icons/delicious.png" alt="Ajoutez le aux articles Delicious!" /> <?php _e('Ajoutez le aux articles Delicious!', 'wpzoom');?></a></li>

<li><a href="http://www.facebook.com/sharer.php?u=<?php the_permalink();?>&t=<?php the_title(); ?>" rel="external,nofollow"><img src="<?php bloginfo('template_directory'); ?>/images/icons/facebook.png" alt="Partagez sur Facebook!" /> <?php _e('Partagez sur Facebook!', 'wpzoom');?></a></li>

<li><a href="http://www.stumbleupon.com/submit?url=<?php the_permalink(); ?>" rel="external,nofollow"><img src="<?php bloginfo('template_directory'); ?>/images/icons/stumbleupon.png" alt="Stumble it" /> <?php _e('Stumble it', 'wpzoom');?></a></li>

<li class="last"><a href="<?php if (strlen($wpzoom_misc_feedburner) < 10) { bloginfo('rss2_url');} else {echo"$wpzoom_misc_feedburner";} ?>" rel="external,nofollow"><img src="<?php bloginfo('template_directory'); ?>/images/icons/rss.png" alt="Subscribe by RSS" /> <?php _e('Subscribe by RSS', 'wpzoom');?></a></li>

</ul>

<div class="cleaner"> </div>

<div class="sep"> </div>

<?php } // if social icons should be shown ?>



</div><!-- end .postmetadata -->

<div class="single">



<?php if (strlen($videocode) > 1 && $videolocation == 'In the middle column' && $template != 'Full Width (no sidebar)') {



if ($videocode && $wpzoom_autoembed == "Yes" && $AE->parseUrl($videocode)) {

$AE->setParam('wmode','transparent');

$AE->setParam('autoplay','false');

$AE->setHeight(320);

$AE->setWidth(570);

echo'<div class="zoomVideo">';

echo $AE->getEmbedCode();

echo'</div>';

}



else {



$videocode = preg_replace("/(width\s*=\s*[\"\'])[0-9]+([\"\'])/i", "$1 570 $2", $videocode);

$videocode = preg_replace("/(height\s*=\s*[\"\'])[0-9]+([\"\'])/i", "$1 320 $2", $videocode);



echo '<div class="zoomVideo">' .$videocode. '</div>';



}



} ?>





<?php if (strlen($videocode) > 1 && $videolocation == 'In the middle column' && $template == 'Full Width (no sidebar)') {



if ($videocode && $wpzoom_autoembed == "Yes" && $AE->parseUrl($videocode)) {

$AE->setParam('wmode','transparent');

$AE->setParam('autoplay','false');

$AE->setHeight(460);

$AE->setWidth(818);

echo'<div class="zoomVideo">';

echo $AE->getEmbedCode();

echo'</div>';

}



else {



$videocode = preg_replace("/(width\s*=\s*[\"\'])[0-9]+([\"\'])/i", "$1 818 $2", $videocode);

$videocode = preg_replace("/(height\s*=\s*[\"\'])[0-9]+([\"\'])/i", "$1 460 $2", $videocode);



echo '<div class="zoomVideo">' .$videocode. '</div>';

}



} ?>



<p class="postmetadata"><?php if ($wpzoom_singlepost_author == 'Show') { ?><?php _e('Posted by', 'wpzoom') ?> <?php the_author_posts_link(); } ?><?php if ($wpzoom_singlepost_author == 'Show' && $wpzoom_singlepost_date == 'Show') { ?> <?php _e('on', 'wpzoom') ?> <?php } ?><?php if ($wpzoom_singlepost_date == 'Show') { ?> <?php the_time("$dateformat $timeformat"); } ?></p>



<h1><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h1>



<div class="entry">

<?php the_content(); ?>

</div>



<?php wp_link_pages(array('before' => '<p class="pages"><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>

<p class="more"><?php edit_post_link( __('Edit this post »', 'wpzoom'), '', ''); ?></p>



</div><!-- end .single -->



<div class="cleaner"> </div>



<?php comments_template(); ?>



</div><!-- end #content -->



<div id="sidebar">



<?php get_sidebar(); ?>



</div><!-- end #sidebar -->



<div class="cleaner"> </div>



<?php endwhile; else: ?>



<p><?php _e('Désolé il n'y a pas d'articles correspondant à votre recherche.', 'wpzoom') ?></p>

<?php endif; ?>





</div><!-- end .wrapper -->



</div><!-- end #main -->



<?php get_footer(); ?>
0
thosting Messages postés 167 Date d'inscription vendredi 6 février 2009 Statut Membre Dernière intervention 6 décembre 2011 27
Modifié par baladur13 le 6/12/2011 à 19:02
Tu as modifier quoi dans wordpress exactement ?
Pour avoir cette erreur ?


Signature non conforme - Publicité supprimée Modération CCM
0
ok. c surement les posts que j'ai mal paramétré. je n'ai pas fait de modifications majeures. je vais chercher. merci.
0
je viens de recharger le theme via ftp.
ça marche.
il y avait bien une manip de ma part qui a fait planté la lecture des fichiers.
merci pour votre soutien.
0