It is connected to the database, it does not display any errors, but when I enter the site, the page is absolutely empty. Previously, I did not encounter such a problem, on previous sites everything worked as it should. And there is even no error, just a blank page. I would be grateful for any help)
Code file index.php:
<?php get_header(); ?> <?php if (have_posts()): while (have_posts()): the_post(); ?> <?php the_content(); ?> <?php endwhile; endif; ?> <section class="top-info"> <div class="item slider"> <div class="wrap"> <div class="carousel-2 owl-carousel"> <div class="carousel-item"> <?php $image = get_field('image1'); if( !empty($image) ): ?> <img src="<?php echo $image['url']; ?>" alt="<?php echo $image['alt']; ?>" /> <?php endif; ?> <div class="text"> <p> <a href="<?php the_field('link1') ?>"> <?php the_field('text1') ?> </a> </p> </div> </div> <div class="carousel-item"> <?php $image = get_field('image2'); if( !empty($image) ): ?> <img src="<?php echo $image['url']; ?>" alt="<?php echo $image['alt']; ?>" /> <?php endif; ?> <div class="text"> <p><a href="<?php the_field('link2') ?>"> <?php the_field('text2') ?> </a></p> </div> </div> <div class="carousel-item"> <?php $image = get_field('image3'); if( !empty($image) ): ?> <img src="<?php echo $image['url']; ?>" alt="<?php echo $image['alt']; ?>" /> <?php endif; ?> <div class="text"> <p><a href="<?php the_field('link3') ?>"> <?php the_field('text3') ?> </a> </p> </div> </div> </div> </div> </div> <div class="item ev-calendar"> <?php dynamic_sidebar( 'calendar' ); ?> </div> <div class="item large"> <?php $image = get_field('image4'); if( !empty($image) ): ?> <img src="<?php echo $image['url']; ?>" alt="<?php echo $image['alt']; ?>" /> <?php endif; ?> <div class="wrap"> <a href="<?php the_field('link4') ?>"> <div class="title"><?php the_field('title4') ?></div> <div class="text"><?php the_field('text4') ?></div> </a> </div> </div> <div class="item small"> <?php $image = get_field('image5'); if( !empty($image) ): ?> <img src="<?php echo $image['url']; ?>" alt="<?php echo $image['alt']; ?>" /> <?php endif; ?> <div class="wrap"> <a href="<?php the_field('link5') ?>"> <div class="title"><?php the_field('title5') ?></div> <div class="text"><?php the_field('text5') ?></div> </a> </div> </div> <div class="item subscribe"> <div class="title"><?php the_field('tr_subscribe', 355) ?></div> <div class="wrap"> <?php echo do_shortcode('[contact-form-7 id="23"]'); ?> </div> </div> </section> <section class="recent-news"> <div class="base-title"><?php the_field('recent_news', 355) ?></div> <div class="carousel-1 owl-carousel"> <?php if ( have_posts() ) : // Π΅ΡΠ»ΠΈ ΠΈΠΌΠ΅ΡΡΡΡ Π·Π°ΠΏΠΈΡΠΈ Π² Π±Π»ΠΎΠ³Π΅. query_posts('cat=3,28,29,30'); // ΡΠΊΠ°Π·ΡΠ²Π°Π΅ΠΌ ID ΡΡΠ±ΡΠΈΠΊ, ΠΊΠΎΡΠΎΡΡΠ΅ Π½Π΅ΠΎΠ±Ρ
ΠΎΠ΄ΠΈΠΌΠΎ Π²ΡΠ²Π΅ΡΡΠΈ. while (have_posts()) : the_post(); // Π·Π°ΠΏΡΡΠΊΠ°Π΅ΠΌ ΡΠΈΠΊΠ» ΠΎΠ±Ρ
ΠΎΠ΄Π° ΠΌΠ°ΡΠ΅ΡΠΈΠ°Π»ΠΎΠ² Π±Π»ΠΎΠ³Π° ?> <a href="<?php the_permalink(); ?>" class="item"> <div class="date"><?php the_date('j F Y'); ?></div> <div class="text"><?php the_title(); ?></div> </a> <?php endwhile; // Π·Π°Π²Π΅ΡΡΠ°Π΅ΠΌ ΡΠΈΠΊΠ». endif; /* Π‘Π±ΡΠ°ΡΡΠ²Π°Π΅ΠΌ Π½Π°ΡΡΡΠΎΠΉΠΊΠΈ ΡΠΈΠΊΠ»Π°. ΠΡΠ»ΠΈ Π½ΠΈΠΆΠ΅ ΠΏΠΎ ΠΊΠΎΠ΄Ρ Π±ΡΠ΄Π΅Ρ ΠΈΠ΄ΡΠΈ Π΅ΡΠ΅ ΠΎΠ΄ΠΈΠ½ ΡΠΈΠΊΠ», ΡΡΠΎΠ±Ρ Π½Π΅ Π±ΡΠ»ΠΎ ΡΠ±ΠΎΡ. */ wp_reset_query(); ?> </div> </section> <section class="members"> <div class="base-title"><?php the_field('our_members', 355) ?></div> <div class="members-box"> <?php dynamic_sidebar( 'mem' ); ?> </div> <div class="more-link"> <a href="<?php echo esc_url( home_url( '/' ) ); ?>membership/list-of-member-companiens"><?php the_field('all_members', 355) ?></a> </div> </section> <?php get_footer(); ?> Htaccess file code:
# BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> # END WordPress AddDefaultCharset utf-8 php_flag display_startup_errors on php_flag display_errors on php_flag html_errors on php_flag display_errors on php_flag error_reporting E_ALL php_value display_errors 1 php_value error_reporting 204