Title: help with error
Last modified: November 2, 2021

---

# help with error

 *  [loudy_ca](https://wordpress.org/support/users/loudy_ca/)
 * (@loudy_ca)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/help-with-error-5/)
 * 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](https://wordpress.org/support/users/package/)
   WordPress * [@version](https://wordpress.org/support/users/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”>
    1. 
    2.  <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 ) ); ?>
       <?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();

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Moderator [t-p](https://wordpress.org/support/users/t-p/)
 * (@t-p)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/help-with-error-5/#post-15030051)
 * Your `folder` theme seems to be the error, which could not be found in the wordpress.
   org/themes/ directory, as far as I can see.
 * If this was a custom theme, you may have to go back to your developer team and
   ask them to make the necessary change(s) to the theme.
 * If you use a commercial theme and need support, please go to their official support
   channel. In order to be good stewards of the WordPress community, and encourage
   innovation and progress, we feel it’s important to direct people to those official
   locations.
 * Forum volunteers are also not given access to commercial products, so they would
   not know why your commercial theme or plugin is not working properly. This is
   one other reason why volunteers forward you to the commercial product’s vendors.
   The vendors are responsible for supporting their commercial product. **Commercial
   products are [not supported in these forums](https://make.wordpress.org/support/trouble/section-1-getting-started/what-is-not-supported).**
 *  Thread Starter [loudy_ca](https://wordpress.org/support/users/loudy_ca/)
 * (@loudy_ca)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/help-with-error-5/#post-15030370)
 * sorry I change the site name there to folder.
 * the error as the following:
 * 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/mytheme/single-service.php on line 78
 * The line: 78 is:
    <?php// get_template_part(‘partials/section’, ‘scheduleCTA’);?
   >

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘help with error’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [loudy_ca](https://wordpress.org/support/users/loudy_ca/)
 * Last activity: [4 years, 6 months ago](https://wordpress.org/support/topic/help-with-error-5/#post-15030370)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
