Title: [Theme: raindrops] Function.php error Version 0.973
Last modified: August 20, 2016

---

# [Theme: raindrops] Function.php error Version 0.973

 *  [weeder8](https://wordpress.org/support/users/weeder8/)
 * (@weeder8)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/theme-raindrops-functionphp-error-version-0973/)
 * Hi
    I updated to 0.973 and have a few problems the main one is
 * > Warning: Illegal offset type in /home/*******/public_html/*******/wp-content/
   > themes/raindrops/functions.php on line 906
 * The other is I use fluid and the header image shows up to big
 * [Website](http://thecreativeukgroup.com/)
 * [http://wordpress.org/extend/themes/raindrops/](http://wordpress.org/extend/themes/raindrops/)

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

 *  [ruthcatrin](https://wordpress.org/support/users/ruthcatrin/)
 * (@ruthcatrin)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/theme-raindrops-functionphp-error-version-0973/#post-2822803)
 * I figured a solution to the error on line 906, donno if its the CORRECT solution,
   but it gets rid of the error.
 * to go edit themes and open the Theme Functions (functions.php) file
 * Scroll about 1/4 of the way down till you see this:
 * > * Set stylesheet and few javascript
   >  * * * * */ if(!function_exists(“add_raindrops_stylesheet”)
   > and $wp_version >= 3.4 ){ function add_raindrops_stylesheet() { global $raindrops_current_theme_name;
   > $themes = wp_get_themes(); $current_theme = $raindrops_current_theme_name;
   >  **if(isset($themes[$current_theme][‘Version’])){
   >  $raindrops_version = $themes[
   > $current_theme][‘Version’]; }else{ $raindrops_version = “0.1”; } $template_uri
   > = get_template_directory_uri();
 * You need to delete the bolded if/else statment, it’ll look like this:
 * > * Set stylesheet and few javascript
   >  * * * * */ if(!function_exists(“add_raindrops_stylesheet”)
   > and $wp_version >= 3.4 ){ function add_raindrops_stylesheet() { global $raindrops_current_theme_name;
   > $themes = wp_get_themes(); $current_theme = $raindrops_current_theme_name;
   >  $template_uri = get_template_directory_uri();
 * Personally I’ve also got other errors that I’ve not been able to figure out yet….
 *  Thread Starter [weeder8](https://wordpress.org/support/users/weeder8/)
 * (@weeder8)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/theme-raindrops-functionphp-error-version-0973/#post-2822804)
 * Cheers That fixed the error
    Only have to sort header image width now
 * I did have a lot of errors most vanished when I uploaded the header image
    not
   sure if you have the same errors
 * Thank you very much for your help
 *  [ruthcatrin](https://wordpress.org/support/users/ruthcatrin/)
 * (@ruthcatrin)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/theme-raindrops-functionphp-error-version-0973/#post-2822805)
 * for your width issues, same functions.php starting on lines 154 :
 * > /**
   >  * fluid page main column minimam width px * * * * * */ if( !isset( $raindrops_fluid_minimam_width)){
   > $raindrops_fluid_minimam_width = ‘481’; } /** * fluid page main column maximam
   > width px * * * * * */
   >  if( !isset( $raindrops_fluid_maximam_width ) ){
   >  $raindrops_fluid_maximam_width
   > = ‘1280’; }
 * correct the spellings of minimum and maximum and see if that helps. Unless you’re
   having the same errors I’ve got in which case I’ve not figured it out yet.
 * my page: [http://www.scaryyankeechick.com/](http://www.scaryyankeechick.com/)
 *  Thread Starter [weeder8](https://wordpress.org/support/users/weeder8/)
 * (@weeder8)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/theme-raindrops-functionphp-error-version-0973/#post-2822808)
 * Once again Thank you very much for all your help
 *  [ruthcatrin](https://wordpress.org/support/users/ruthcatrin/)
 * (@ruthcatrin)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/theme-raindrops-functionphp-error-version-0973/#post-2822815)
 * No problem, you don’t by any chance have a saved copy of the functions.php from
   the last version do you?
 *  [ruthcatrin](https://wordpress.org/support/users/ruthcatrin/)
 * (@ruthcatrin)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/theme-raindrops-functionphp-error-version-0973/#post-2822816)
 * Ok, got a fix for those other errors (assuming they were the issue you were having,
   again, not sure this is the CORRECT fix, but it gets rid of the error and doesn’t
   appear to break anything else (at least for me).
 * Find the following code (about 2/3rds of the way down in the functions.php):
 * >  /**
   >  * Template function print header image * * This function has filter hook
   > name raindrops_header_image * [@param](https://wordpress.org/support/users/param/)
   > array( ‘img’=> ‘image uri’ , ‘height’ => ‘image height’ , ‘color’ => ‘text 
   > color’, ‘style’ => ‘(default) background-size:cover;’ , ‘description’ => ‘replace
   > text from bloginfo(description) to your text’,’description_style’ => ‘Your 
   > description style rule’) * [@return](https://wordpress.org/support/users/return/)
   > string htmlblock <div id=”[‘header-image’]” style=”background-image:url([img]);
   > height:[height];color:#[color]][style]”><p [description_style]>[WordPress site
   > description]</p></div> */ if ( ! function_exists( ‘raindrops_header_image’ )
   > and $wp_version >= 3.4){ function raindrops_header_image($type = ‘default’,
   > $args = array() ){ $image_modify = get_theme_mods(); $image_modify = $image_modify[
   > header_image_data]; $url = get_theme_mod( ‘header_image’ ); $uploads = wp_upload_dir();
   > $path = $uploads[‘path’].’/’. basename( $url ); **list($img_width, $img_height,
   > $img_type, $img_attr) = getimagesize($path); $ratio = $img_height / $img_width;
   >  $raindrops_page_width = raindrops_warehouse_clone(‘raindrops_page_width’);
   > 
   > switch( true ){
 * Comment out the two bolded lines by adding “//” (without the “) to each line.
 *  Thread Starter [weeder8](https://wordpress.org/support/users/weeder8/)
 * (@weeder8)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/theme-raindrops-functionphp-error-version-0973/#post-2822818)
 * All older versions of this theme can be found here [Raindrops old versions](http://themes.svn.wordpress.org/raindrops/)
 *  [ruthcatrin](https://wordpress.org/support/users/ruthcatrin/)
 * (@ruthcatrin)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/theme-raindrops-functionphp-error-version-0973/#post-2822820)
 * Hah, thanks!

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

The topic ‘[Theme: raindrops] Function.php error Version 0.973’ is closed to new
replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/raindrops/1.700/screenshot.png)
 * raindrops
 * [Support Threads](https://wordpress.org/support/theme/raindrops/)
 * [Active Topics](https://wordpress.org/support/theme/raindrops/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/raindrops/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/raindrops/reviews/)

 * 8 replies
 * 2 participants
 * Last reply from: [ruthcatrin](https://wordpress.org/support/users/ruthcatrin/)
 * Last activity: [13 years, 11 months ago](https://wordpress.org/support/topic/theme-raindrops-functionphp-error-version-0973/#post-2822820)
 * Status: not resolved