Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [PHP]Problem z błędem T_ENDWHILE
przemo191
post
Post #1





Grupa: Zarejestrowani
Postów: 154
Pomógł: 3
Dołączył: 1.08.2011

Ostrzeżenie: (0%)
-----


Witam, mam problem z błędem
  1. Parse error: syntax error, unexpected T_ENDWHILE in index.php on line 1


Problem pojawił się po przeniesieniu plików na inny serwer, na starym wszystko chodzi tak jak powinno.

Wiecie może jak to naprawić?

Kod z tego pliku to:
  1. <?php
  2. get_header();
  3. get_sidebar();?>
  4. <content>
  5. <div class="row">
  6. <div class="col-md-8 col-sm-12 col-lg-8">
  7. <div class="container">
  8. <?php if ( have_posts() ) : ?>
  9.  
  10. <?php while ( have_posts() ) : the_post(); ?>
  11.  
  12. <div class="row">
  13. <div class="visible-lg-block visible-md-block" style="margin-top: 20px; display: block;"></div>
  14. <div class="col-md-3 col-sm-5 col-lg-4 col-slg-4 col-f-4 col-fhd4 img-responsive img-news">
  15. <?php
  16. if ( has_post_thumbnail() ) { // check if the post has a Post Thumbnail assigned to it.
  17. the_post_thumbnail( 'medium', 'class=img-responsive');
  18. }
  19. ?></div>
  20. <div class="col-md-5 col-sm-7 col-lg-5 col-slg-6 col-f-7 col-fhd-8">
  21. <h3><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3>
  22. <p>
  23. <?php the_content('Czytaj dalej ť'); ?>
  24. </p>
  25. <p class="text-muted small"><?php the_time('d-m-Y'); ?> | autor: <?php the_author(); ?> </p>
  26. </div>
  27. </div>
  28. <?php endwhile; ?>
  29. <?php endif; ?>
  30. <br>
  31. <div class="" style="margin-top: 20px; display: block;"></div>
  32. </div>
  33. </div>
  34. <?php get_template_part('rightbar'); ?>
  35. </div>
  36. </div>
  37. </content>
  38. <?php get_footer(); ?>
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 19.08.2025 - 17:03