Fatal error
-
When I go to my client’s website, acgstructures.com, I get this fatal error.
Call to undefined function sketch_get_option() in /home/acgstruc/public_html/wp-content/themes/analyticallitechild/front-page.php on line 4
I go to that file and this is what’s there….
<?php global $themename; global $shortname; ?>
<?php
if ( ‘page’ == get_option( ‘show_on_front’ ) ) {
if (sketch_get_option($shortname.’_hide_frontlayout’) == ‘false’) {
global $shortname;
?>
<?php get_header(); ?>
<!– #Container Area –>
<div id=”container”>
<div class=”front_content clearfix”>
<?php
for($skebgi=1;$skebgi < 4;$skebgi++){
$skebg_imgT = sketch_get_option($shortname.’_sl’.$skebgi.’_title’);
$skebg_imgC = sketch_get_option($shortname.’_sl’.$skebgi.’_content’);
$skebg_capsArr[] = array(“title”=>$skebg_imgT,”descp”=>$skebg_imgC);
}
?>
<?php if(!empty($skebg_capsArr)){ ?>
<div class=”skegallry_captions skebg_fimgcap”>
<div id=”skebggallery_cap”>
<?php foreach($skebg_capsArr as $skebg_nm) { ?>
<?php if($skebg_nm[‘title’] || $skebg_nm[‘descp’]) { ?>
<div class=”skegallery_citem”>
<div class=”skegallry_thread”></div>
<div class=”skecap_itemwrap”>
<div class=”skebg_caption”>
<?php if($skebg_nm[‘title’]){ ?><div class=”skebg_title”><?php echo $skebg_nm[‘title’]; ?></div><?php } ?>
<?php if($skebg_nm[‘descp’]){ ?><div class=”skebg_descp”><?php echo $skebg_nm[‘descp’]; ?></div><?php } ?>
</div>
</div>
</div>
<?php } ?>
<?php } ?>
</div>
</div>
<?php } ?><?php if(sketch_get_option($shortname.’_fvd_title’) || sketch_get_option($shortname.’_fvd_descp’)) { ?>
<div class=”skegallry_captions skebg_fvdcap” style=”display:none;”>
<div id=”skebggallery_cap”>
<div class=”skegallery_citem” style=”display:block;”>
<div class=”skegallry_thread”></div>
<div class=”skecap_itemwrap”>
<div class=”skebg_caption” style=”display:block;”>
<?php if(sketch_get_option($shortname.’_fvd_title’)){ ?><div class=”skebg_title”><?php echo sketch_get_option($shortname.’_fvd_title’); ?></div><?php } ?>
<?php if(sketch_get_option($shortname.’_fvd_descp’)){ ?><div class=”skebg_descp”><?php echo sketch_get_option($shortname.’_fvd_descp’); ?></div><?php } ?>
</div>
</div>
</div>
</div>
</div>
<?php } ?>
</div>
</div>
<!– #Container Area –>
<?php get_footer(); ?>
<?php
}else{ include(‘index-page.php’); }
} else {
include( get_home_template() );
}
?>I don’t know enough about writing code to see what’s wrong…..PLEASE HELP!
I’ve already tried deactivating plugins and re-updating the newest version of WP.
Right now I have a maintenance page showing up so people don’t see the error.
- The topic ‘Fatal error’ is closed to new replies.