help with error
-
Hello, when I updated the php to 7.4 I got the following error in my site:
Warning: Use of undefined constant php – assumed ‘php’ (this will throw an Error in a future version of PHP) in /home/customer/www/mysite.com/public_html/wp-content/themes/folder/single-service.php on line 78
The line: 78 is:
<?php// get_template_part(‘partials/section’, ‘scheduleCTA’); ?>here is the complete code:
`<?php
/**
* Single post template
*
* @package WordPress
* @version 1.0
*/
get_header();
?><?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<!– our-services –>
<section class=”service-content section-padding page-top-padding”>
<div class=”container”>
<div class=”row breadcrumb-with-pagetitle”>
<div class=”page-breadcrumb”>- “>Home
<li class=”active”>Services
</div>
<div class=”section-title”>
<h2><?php echo the_title(); ?></h2>
</div>
</div><div class=”content row”>
<div class=”servie-single-details col col-md-9 col-md-push-3″>
<div class=”second-row row”>
<div class=”col col-xs-12″>
<div class=”single-service-description”>
<h3>About <?php the_title(); ?></h3>
<p><?php the_field(‘service_top_block’); ?></p>
</div>
</div>
</div>
<?php if(get_field(‘service_video_link’)): ?>
<div class=”first-row row”>
<div class=”col col-sm-8″>
<iframe width=”100%” height=”315″ src=”<?php the_field(‘service_video_link’); ?>” allowfullscreen=””></iframe>
<!–
<div class=”service-pic”>
</div>–>
</div>
<div class=”col col-sm-4″>
<div class=”service-box”>
<p><?php the_field(‘service_text_right_block’); ?></p>
</div>
</div>
</div>
<?php endif; ?><div class=”third-row more-about-services row”>
<div class=”col col-md-5″>
<div class=”more-services”>
<h3><?php the_field(‘service_bottom_block_title’); ?></h3>
<?php the_field(‘service_text_bottom_block’); ?>
</div>
</div><div class=”col col-md-7″>
<?php get_template_part(‘partials/section’, ‘quoteCTA’); ?>
</div>
</div> <!– end of more-about-services –>
</div> <!– end of servie-single-details –><div class=”sidebar col col-md-3 col-md-pull-9″>
<div class=”widget services-link-widget”>-
<?php $loop = new WP_Query( array( ‘post_type’ => ‘service’, ‘posts_per_page’ => -1 ) ); ?>
- “><i class=”arrow_right”></i> <?php the_title(); ?>
<?php while ( $loop->have_posts() ) : $loop->the_post(); ?><?php endwhile; wp_reset_query(); ?>
</div>
<?php// get_template_part(‘partials/section’, ‘scheduleCTA’); ?>
</div>
</div> <!– end of content –>
</div> <!– end of container –>
</section>
<!– end of our-services –><?php endwhile; endif; ?>
<?php get_footer();
- The topic ‘help with error’ is closed to new replies.