WordPress.org

Ready to get started?Download WordPress

Forums

Catch Box
theme-options.php error generated upon install (10 posts)

  1. salsaFire
    Member
    Posted 1 year ago #

    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/

  2. LeslieAnn
    Member
    Posted 1 year ago #

    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.

  3. robin90
    Member
    Posted 1 year ago #

    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.

  4. Catch Themes
    Member
    Theme Author

    Posted 1 year ago #

    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

  5. Catch Themes
    Member
    Theme Author

    Posted 1 year ago #

    Hi Everyone,

    There is version update which fixes this issue. Just update to latest version 1.0.7

    Regards,
    Sakin

  6. basku
    Member
    Posted 1 year ago #

    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

  7. Rabin(Catch Themes)
    Member
    Posted 1 year ago #

    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

  8. websmythe
    Member
    Posted 1 year ago #

    I just installed v1.0.7 on WP 3.3.2 and am geting same error...?? Is there something else I can do?

  9. Catch Themes
    Member
    Theme Author

    Posted 1 year ago #

    Hi Websmythe,

    Can you send us message from http://catchthemes.com with the screenshot and details and then I will repose details on there.

    Regards,
    Sakin

  10. Catch Themes
    Member
    Theme Author

    Posted 1 year ago #

    HI Websmythe,

    You need to upgrade your WordPress.

    Regards,
    Sakin

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic

Tags