Help with a line of php code

My web service provider and also Divi theme support have confirmed that line 118 of single.php in the WordPress child theme is creating a problem with 500 errors for several web pages. Would you please let me know what is wrong with line 118 and how I might fix it? I can’t seem to attach the file so here is a snippet of line 118 and I can try to provide more if needed. Thanks

<?php echo get_field("bofu_background_url") ?><?php } else { ?> http://ccsuconed.wpengine.com/wp-content/uploads/2018/01/ccsu-students-bofu-bg.png <?php } ?>') bottom center/cover no-repeat;">

the exact error message can be seen within your webservers error.log.

Thank you. I’ll try to find that.

Here is a more detailed message from the error log.

[Thu Aug 29 00:43:13.521358 2019] [php7:error] [pid 28067] [client 73.253.142.33:61032] PHP Fatal error: Uncaught Error: Call to undefined function get_field() in /nas/content/live/ccsuconed/wp-content/themes/divi-child-theme/single.php:118\nStack trace:\n#0 /nas/content/live/ccsuconed/wp-includes/template-loader.php(78): include()\n#1 /nas/content/live/ccsuconed/wp-blog-header.php(19): require_once(’/nas/content/li…’)\n#2 /nas/content/live/ccsuconed/index.php(17): require(’/nas/content/li…’)\n#3 {main}\n thrown in /nas/content/live/ccsuconed/wp-content/themes/divi-child-theme/single.php on line 118

Any idea what is the problem from this message? Thanks

just what it’s written there, you do not have any function get_field().

OK thanks for your assistance.

Sponsor our Newsletter | Privacy Policy | Terms of Service