• 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”>

    1. “>Home
    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”>

    </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

    (@t-p)

    Your folder theme seems to be the error, which could not be found in the www.ads-software.com/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.

    Thread Starter loudy_ca

    (@loudy_ca)

    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.