Title: php error
Last modified: August 21, 2016

---

# php error

 *  [ervingong](https://wordpress.org/support/users/ervingong/)
 * (@ervingong)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/php-error-98/)
 * hello, i tried to do some edits on theme functions and got a fatal error.
 * i feel like it’s because i don’t have my <?php done correctly.
 * below is the file, would someone be able to help?
 * <?php
    /** * Scripts * [@link](https://wordpress.org/support/users/link/) [http://code.tutsplus.com/articles/how-to-include-javascript-and-css-in-your-wordpress-themes-and-plugins–wp-24321](http://code.tutsplus.com/articles/how-to-include-javascript-and-css-in-your-wordpress-themes-and-plugins–wp-24321)*/
   function arcadia_javascript_files() { wp_deregister_script( ‘jquery’ ); wp_register_script(‘
   jquery’, ‘[http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js&#8217](http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js&#8217);,
   array(), null, false ); wp_register_script( ‘modernizr’, get_template_directory_uri().‘/
   javascripts/modernizr-2.6.2.min.js’, array(), ‘2.6.2’ ); wp_register_script( ‘
   easing’, get_template_directory_uri() . ‘/javascripts/jquery.easing.1.3.js’, 
   array( ‘jquery’ ), ‘skagky2qy6’ ); wp_register_script( ‘jvanilla’, get_template_directory_uri().‘/
   javascripts/jquery.jvanilla.js’, array( ‘jquery’ ), ‘u7lio4nvoj’ ); wp_register_script(‘
   bxslider’, get_template_directory_uri() . ‘/javascripts/jquery.bxslider.min.js’,
   array( ‘jquery’ ), ‘sx88t9nfhi’ ); wp_register_script( ‘fitvids’, get_template_directory_uri().‘/
   javascripts/jquery.fitvids.js’, array( ‘jquery’ ), ‘om8bwyrmiy’ ); wp_register_script(‘
   main’, get_template_directory_uri() . ‘/javascripts/main.js’, array( ‘jquery’),‘
   mozcyglkvb’ ); wp_enqueue_script( ‘modernizr’ ); if ( is_front_page() || is_page(
   31 ) || is_page( 33 ) || is_page( 35 ) || is_page( 37 ) || is_page( 29 ) || is_page(
   14 ) ) { wp_enqueue_script( ‘easing’ ); wp_enqueue_script( ‘bxslider’ ); } wp_enqueue_script(‘
   jvanilla’ ); wp_enqueue_script( ‘fitvids’ ); wp_enqueue_script( ‘main’ ); } add_action(‘
   wp_enqueue_scripts’, ‘arcadia_javascript_files’ ); // wp_enqueue_scripts action
   hook to link only on the front-end
 * /**
    * Syles */ function arcadia_stylesheet_files() { wp_register_style( ‘style-
   arcadia’, get_template_directory_uri() . ‘/stylesheets/arcadia.css’, false, ‘
   1.0’, ‘screen, projection’ ); wp_register_style( ‘style-last’, get_template_directory_uri().‘/
   style.css’, false, ‘2.0’, ‘screen, projection’ );
 *  wp_register_style( ‘style-bxslider’, get_template_directory_uri() . ‘/stylesheets/
   jquery.bxslider.css’, false, ‘1.0’, ‘screen, projection’ );
    if ( is_front_page()
   || is_page( 31 ) || is_page( 33 ) || is_page( 35 ) || is_page( 37 ) || is_page(
   29 ) || is_page( 14 ) ) { wp_enqueue_style( ‘style-bxslider’ ); } wp_enqueue_style(‘
   style-arcadia’ ); wp_enqueue_style( ‘style-last’ ); } // Hook into the ‘wp_enqueue_scripts’
   action add_action( ‘wp_enqueue_scripts’, ‘arcadia_stylesheet_files’ );
 * /**
    * Post Thumbnails */ add_theme_support( ‘post-thumbnails’ ); set_post_thumbnail_size(
   100, 100, true ); add_image_size( ‘square-75’, 75, 75, true ); add_image_size(‘
   square-150’, 150, 150, true ); add_image_size( ‘small-240’, 240, 240, false );
   add_image_size( ‘small-280’, 280, 280, false ); add_image_size( ‘small-310’, 
   310, 310, false ); add_image_size( ‘medium-500’, 500, 500, false ); add_image_size(‘
   medium-640’, 640, 640, false ); add_image_size( ‘medium-800’, 800, 800, false);
   add_image_size( ‘large-1024’, 1024, 1024, false ); add_image_size( ‘large-1050’,
   1050, 1050, false ); add_image_size( ‘large-1600’, 1600, 1600, false ); add_image_size(‘
   large-2048’, 2048, 2048, false );
 * /**
    * Navigation Menu */ register_nav_menus( array( ‘primary’ => ‘Primary Menu’));
 * /**
    * Extend the default body classes. */ function arcadia_body_class( $classes){
 *  if ( is_page_template(‘page-templates/arcadia.php’) )
    $classes[] = ‘template–
   company template–arcadia’; if ( is_page_template(‘page-templates/craigside.php’))
   $classes[] = ‘template–company template–craigside’; if ( is_page_template(‘page-
   templates/central-union.php’) ) $classes[] = ‘template–company template–central-
   union’; if ( is_page_template(‘page-templates/kilohana.php’) ) $classes[] = ‘
   template–company template–kilohana’; if ( is_page_template(‘page-templates/home-
   health-care.php’) ) $classes[] = ‘template–company template–home-health-care’;
 *  return $classes;
 * }
    add_filter( ‘body_class’, ‘arcadia_body_class’ );
 * /**
    * Widgets * [@link](https://wordpress.org/support/users/link/) [http://digwp.com/2010/02/how-to-widgetize-wordpress-theme/](http://digwp.com/2010/02/how-to-widgetize-wordpress-theme/)*/
   function arcadia_widgets_init() {
 *  register_sidebar( array(
    ‘name’ => __( ‘Menu: Arcadia’, ‘arcadia’ ), ‘id’ =
   > ‘menu-arcadia’, ‘description’ => __( ‘Menu: Arcadia’, ‘arcadia’ ), ‘before_widget’
   => ‘<nav class=”sidebar-nav menu–arcadia”>’, ‘after_widget’ => ‘</nav >’, ‘before_title’
   => ‘<h2 class=”widget-title”>’, ‘after_title’ => ‘</h2>’, )); register_sidebar(
   array( ‘name’ => __( ‘Menu: 15 Craigside’, ‘arcadia’ ), ‘id’ => ‘menu-15-craigside’,‘
   description’ => __( ‘Menu: 15 Craigside’, ‘arcadia’ ), ‘before_widget’ => ‘<nav
   class=”sidebar-nav menu–15-craigside”>’, ‘after_widget’ => ‘</nav >’, ‘before_title’
   => ‘<h2 class=”widget-title”>’, ‘after_title’ => ‘</h2>’, )); register_sidebar(
   array( ‘name’ => __( ‘Menu: Central Union’, ‘arcadia’ ), ‘id’ => ‘menu-central-
   union’, ‘description’ => __( ‘Menu: Central Union’, ‘arcadia’ ), ‘before_widget’
   => ‘<nav class=”sidebar-nav menu–central-union”>’, ‘after_widget’ => ‘</nav >’,‘
   before_title’ => ‘<h2 class=”widget-title”>’, ‘after_title’ => ‘</h2>’, )); register_sidebar(
   array( ‘name’ => __( ‘Menu: Kilohana’, ‘arcadia’ ), ‘id’ => ‘menu-kilohana’, ‘
   description’ => __( ‘Menu: Kilohana’, ‘arcadia’ ), ‘before_widget’ => ‘<nav class
   =”sidebar-nav menu–kilohana”>’, ‘after_widget’ => ‘</nav >’, ‘before_title’ =
   > ‘<h2 class=”widget-title”>’, ‘after_title’ => ‘</h2>’, )); register_sidebar(
   array( ‘name’ => __( ‘Menu: Home Health Care’, ‘arcadia’ ), ‘id’ => ‘menu-home-
   health-care’, ‘description’ => __( ‘Menu: Home Health Care’, ‘arcadia’ ), ‘before_widget’
   => ‘<nav class=”sidebar-nav menu–home-health-care”>’, ‘after_widget’ => ‘</nav
   >’, ‘before_title’ => ‘<h2 class=”widget-title”>’, ‘after_title’ => ‘</h2>’, ));}

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

 *  [RossMitchell](https://wordpress.org/support/users/rossmitchell/)
 * (@rossmitchell)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/php-error-98/#post-5154924)
 * Here is a php syntax checker,
    [http://www.piliapp.com/php-syntax-check/](http://www.piliapp.com/php-syntax-check/)
   load it up and copy/paste your code
 * You need to add an end php marker: “?>”
    Otherwise your code passes, well done.
 *  [tormorten](https://wordpress.org/support/users/tormorten/)
 * (@tormorten)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/php-error-98/#post-5154952)
 * Omitting the ‘?>’-tag should not cause a fatal error. A fatal error could be 
   so many things. Could you paste the error you get so we could better assist you?
 *  [theteafarm](https://wordpress.org/support/users/theteafarm/)
 * (@theteafarm)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/php-error-98/#post-5154964)
 * hello this is the error
 * Fatal error: Call to undefined function egister_sidebar() in /home/arcadiah/public_html/
   wp-content/themes/arcadia/functions.php on line 160
 *  [tormorten](https://wordpress.org/support/users/tormorten/)
 * (@tormorten)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/php-error-98/#post-5154969)
 * Check line 160 in your functions.php. You have misspelled a function. `egister_sidebar()`
   should be `register_sidebar()`

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

The topic ‘php error’ is closed to new replies.

## Tags

 * [php-error](https://wordpress.org/support/topic-tag/php-error/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 4 participants
 * Last reply from: [tormorten](https://wordpress.org/support/users/tormorten/)
 * Last activity: [11 years, 9 months ago](https://wordpress.org/support/topic/php-error-98/#post-5154969)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
