New Landing How can we help? Cardinal Related posts warning

Viewing 13 posts - 1 through 13 (of 13 total)
  • Posted in: Cardinal
  • #114193
    Kirsten
    Member
    Post count: 234

    Hello,

    In my related posts area I get this error:

    Warning: sprintf() [function.sprintf]: Too few arguments in /public/sites/www.misscommunicatie.nu/wp-content/themes/cardinal/swift-framework/content/sf-post-formats.php on line 923

    Any ideas on why this is happening?

    #114332
    laranz – SUPPORT
    Member
    Post count: 3186

    Hi,

    Did you edit any code files? Can you pass us the WP Login details, so that we can check whats going wrong.

    Let us know,

    Thanks,
    laranz.

    #114336
    Kirsten
    Member
    Post count: 234
    This reply has been marked as private.
    #114363
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Please try installing a fresh version: https://www.dropbox.com/s/ghqlfshx12vt2ya/cardinal.zip?dl=0

    – Kyle

    #114718
    Kirsten
    Member
    Post count: 234

    Unfortunately didnt change a thing. I use the child theme and switching to the main theme did solve the problem so it has something to do with the child theme.

    #114730
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Have you made any changes in your child theme?

    – Kyle

    #114826
    Kirsten
    Member
    Post count: 234

    The only thing I added was a language folder for the .po and .mo files and therefore added 1 line to the functions.php :

    load_theme_textdomain( ‘swiftframework’, get_stylesheet_directory() . ‘/language’ );

    #114840
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Hi,

    You can’t add it like that.
    Try this code

    
    add_action( 'after_setup_theme', 'my_child_theme_setup' );
    function my_child_theme_setup() {
        load_child_theme_textdomain( 'swiftframework', get_stylesheet_directory() . '/language' );
    }

    -Rui

    #114860
    Kirsten
    Member
    Post count: 234

    Ok I did, still no solution for the problem. But that extra line in functions.php is causing the problem becasue if remove it the error is gone. How can I keep my language files in the child theme without getting this error?

    #114988
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    What is the error that appears to you? Did you placed the entire code provided?

    It’s not just an extra line, the function must be declared.
    I suppose that your language folder inside the child theme is “language” ?

    -Rui

    #116383
    Kirsten
    Member
    Post count: 234

    Yes my language folder is “language” in my child theme.

    I added the entire code in my functions.php of the child theme.

    Still the error is:

    Warning: sprintf() [function.sprintf]: Too few arguments in /public/sites/www.misscommunicatie.nu/wp-content/themes/cardinal/swift-framework/content/sf-post-formats.php on line 423

    Warning: sprintf() [function.sprintf]: Too few arguments in /public/sites/www.misscommunicatie.nu/wp-content/themes/cardinal/swift-framework/content/sf-post-formats.php on line 423

    #116384
    Kirsten
    Member
    Post count: 234

    Ok I found out what is wrong. I used a .po file from a different Cardinal installation I already customised to my needs ands that caused the problem.

    #116443
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Great. Glad it’s solved.
    -Rui

Viewing 13 posts - 1 through 13 (of 13 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