New Landing How can we help? Atelier PHP Warning: printf(): Too few arguments

Viewing 9 posts - 1 through 9 (of 9 total)
  • Posted in: Atelier
  • #317886
    Thuisrecycling.nl
    Member
    Post count: 32

    Hi,

    Today we had an unexpected error 500.
    In the log file we can’t find anything that supports this, but there is a warning:
    [21-Mar-2017 12:05:20 UTC] PHP Warning: printf(): Too few arguments in /customers/4/d/c/thuisrecycling.nl/httpd.www/wp-content/themes/atelier/includes/sf-options.php on line 176
    [21-Mar-2017 12:05:20 UTC] PHP Warning: printf(): Too few arguments in /customers/4/d/c/thuisrecycling.nl/httpd.www/wp-content/themes/atelier/includes/sf-options.php on line 177

    How can we solve these warnings?

    Thanks for helping,
    Jitske

    #317906
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Hi,

    Well guess the 500 error should be logged somewhere since the server had that internal error.
    About this warning it shouldn’t be visible in a production site if you set to false the WP_DEBUG mode.

    We will try to replicate that warning error so we can fix that.
    Thanks

    -Rui

    #318249
    Thuisrecycling.nl
    Member
    Post count: 32

    Thanks for your answer. Please let me know wen it’s fixed (and how).

    #318302
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Couldn’t replicate this any chance to provide us ftp access to have a look to see the value of some variables in the lines 176 and 177 of sf-options.php ?

    Thanks

    -Rui

    #318370
    Thuisrecycling.nl
    Member
    Post count: 32

    Hi,

    I can give you FTP acces, but maybe, this is easier?
    These are lines 174 to 187:

    				<div>
    					<ul class="theme-info">
    						<li><?php printf( __('By %s','swiftframework'), $this->theme->display('Author') ); ?></li>
    						<li><?php printf( __('Version %s','swiftframework'), $this->theme->display('Version') ); ?></li>
    						<li><?php echo '<strong>'.__('Tags', 'swiftframework').':</strong> '; ?><?php printf( $this->theme->display('Tags') ); ?></li>
    					</ul>
    					<p class="theme-description"><?php echo esc_attr($this->theme->display('Description')); ?></p>
    					<?php if ( $this->theme->parent() ) {
    						printf( ' <p class="howto">' . __( 'This <a href="%1$s">child theme</a> requires its parent theme, %2$s.', 'swiftframework' ) . '</p>',
    							__( 'http://codex.wordpress.org/Child_Themes','swiftframework' ),
    							$this->theme->parent()->display( 'Name' ) );
    					} ?>
    
    				</div>
    #318393
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Thanks, but I know what lines are, just need to check what values are in those variables in your specific site.

    -Rui

    #318395
    Thuisrecycling.nl
    Member
    Post count: 32
    This reply has been marked as private.
    #318598
    David Martin – Support
    Moderator
    Post count: 20834

    Hi Jitske,

    Just checking this with the team now.

    #331602
    tonicastillo
    Member
    Post count: 1

    Hi
    I have exactly the same problem.
    Any solution?

    Thanks.

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

You must be logged in and have valid license to reply to this topic.

License required for the following item
Login and Registration Log in · Register