Title: [Theme: Catch Box] theme-options.php error generated upon install
Last modified: August 20, 2016

---

# [Theme: Catch Box] theme-options.php error generated upon install

 *  [Curtis](https://wordpress.org/support/users/salsafire/)
 * (@salsafire)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/theme-catch-box-theme-optionsphp-error-generated-upon-install/)
 * Hello
 * The social icons section of your theme-options are generating an error.
 * Warning: Invalid argument supplied for foreach() in /home/salsa1/public_html/
   wp-content/themes/catch-box/inc/theme-options.php on line 1033
 * Thanks
 * [http://wordpress.org/extend/themes/catch-box/](http://wordpress.org/extend/themes/catch-box/)

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

 *  [LeslieAnn](https://wordpress.org/support/users/leslieann/)
 * (@leslieann)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/theme-catch-box-theme-optionsphp-error-generated-upon-install/#post-2846426)
 * I have the same theme and having the same error issue.
    I’m not really knowledgable
   about CSS at all. Does anyone know a way to fix this? I already tried updating
   the theme.
 *  [robin90](https://wordpress.org/support/users/robin90/)
 * (@robin90)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/theme-catch-box-theme-optionsphp-error-generated-upon-install/#post-2846443)
 * Hi,
    I think the error is due to uninitialized variable. You can just put this
   line of code if( !empty( $options ) ) just above this line foreach( $options 
   as $option ) { above line 1033 of theme-options.php inside inc folder of your
   theme
 * also the value will be set once you fill up the social link option on admin section
   and click save and the error message will not show up again.
 *  Theme Author [Catch Themes](https://wordpress.org/support/users/catchthemes/)
 * (@catchthemes)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/theme-catch-box-theme-optionsphp-error-generated-upon-install/#post-2846581)
 * Hi Everyone,
 * Sorry we missed that. Robin got it right. I am fixing this and other issues in
   version 1.0.7 which will bee soon available.
 * Till then please open theme-options.php and find this code in line no: 1033
 *     ```
       foreach( $options as $option ) {
       		if( $option ) {
       			$flag = 1;
       		}
       		else {
       			$flag = 0;
       		}
       		if( $flag == 1) {
       			break;
       		}
       	}
       ```
   
 * Replace this with
 *     ```
       if( !empty( $options ) ) {
       		foreach( $options as $option ) {
       			if( $option ) {
       				$flag = 1;
       			}
       			else {
       				$flag = 0;
       			}
       			if( $flag == 1) {
       				break;
       			}
       		}
       	}
       ```
   
 * Regards,
    Sakin
 *  Theme Author [Catch Themes](https://wordpress.org/support/users/catchthemes/)
 * (@catchthemes)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/theme-catch-box-theme-optionsphp-error-generated-upon-install/#post-2846701)
 * Hi Everyone,
 * There is version update which fixes this issue. Just update to latest version
   1.0.7
 * Regards,
    Sakin
 *  [basku](https://wordpress.org/support/users/bha100710/)
 * (@bha100710)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/theme-catch-box-theme-optionsphp-error-generated-upon-install/#post-2846714)
 * Hi Sakin
 * Thanks for the awesome theme catch-box.
 * I have updated some of the social links in the theme option but it does not reflect
   anywhere on my blog.
 * Where do these social links appear ?
 * Thanks again
 * regards
    Bhaskar
 *  [Rabin(Catch Themes)](https://wordpress.org/support/users/rabin-shrestha/)
 * (@rabin-shrestha)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/theme-catch-box-theme-optionsphp-error-generated-upon-install/#post-2846715)
 * Hi bha100710,
 * The social links should appear at the bottom of the site just above the text “
   Powered by WordPress.” Please make sure that the social links are saved in theme
   option. The links that you updated should remain over the input box in your theme
   option. It should be working fine. If the problem still persists please let us
   know. And it will be better if you could post your question in a new Thread.
 * Regards,
    Rabin
 *  [websmythe](https://wordpress.org/support/users/websmythe/)
 * (@websmythe)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/theme-catch-box-theme-optionsphp-error-generated-upon-install/#post-2846718)
 * I just installed v1.0.7 on WP 3.3.2 and am geting same error…?? Is there something
   else I can do?
 *  Theme Author [Catch Themes](https://wordpress.org/support/users/catchthemes/)
 * (@catchthemes)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/theme-catch-box-theme-optionsphp-error-generated-upon-install/#post-2846719)
 * Hi Websmythe,
 * Can you send us message from [http://catchthemes.com](http://catchthemes.com)
   with the screenshot and details and then I will repose details on there.
 * Regards,
    Sakin
 *  Theme Author [Catch Themes](https://wordpress.org/support/users/catchthemes/)
 * (@catchthemes)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/theme-catch-box-theme-optionsphp-error-generated-upon-install/#post-2846721)
 * HI Websmythe,
 * You need to upgrade your WordPress.
 * Regards,
    Sakin

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

The topic ‘[Theme: Catch Box] theme-options.php error generated upon install’ is
closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/catch-box/5.0.1/screenshot.png)
 * Catch Box
 * [Support Threads](https://wordpress.org/support/theme/catch-box/)
 * [Active Topics](https://wordpress.org/support/theme/catch-box/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/catch-box/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/catch-box/reviews/)

 * 9 replies
 * 7 participants
 * Last reply from: [Catch Themes](https://wordpress.org/support/users/catchthemes/)
 * Last activity: [13 years, 10 months ago](https://wordpress.org/support/topic/theme-catch-box-theme-optionsphp-error-generated-upon-install/#post-2846721)
 * Status: not resolved