• Resolved lukashurtchem

    (@lukashurtchem)


    Hello
    I have a problem with plugin, when I send a ticket site informs me of an error like below, ticked is palaced but there is no any email information, server is on xampp

    Fatal error: Uncaught ValueError: Unknown format specifier "S" in C:\xampp\htdocs\hurtchem\wp-content\plugins\kb-support\includes\emails\email-functions.php:353 Stack trace: #0 C:\xampp\htdocs\hurtchem\wp-content\plugins\kb-support\includes\emails\email-functions.php(353): sprintf('New %1Ss logged...', 'Ticket', 564) #1 C:\xampp\htdocs\hurtchem\wp-includes\class-wp-hook.php(303): kbs_admin_email_ticket_notice(564, Array</blockquote>) #2 C:\xampp\htdocs\hurtchem\wp-includes\class-wp-hook.php(327): WP_Hook->apply_filters('', Array) #3 C:\xampp\htdocs\hurtchem\wp-includes\plugin.php(470): WP_Hook->do_action(Array) #4 C:\xampp\htdocs\hurtchem\wp-content\plugins\kb-support\includes\emails\email-functions.php(147): do_action('kbs_admin_ticke...', 564, Array) #5 C:\xampp\htdocs\hurtchem\wp-content\plugins\kb-support\includes\emails\email-actions.php(46): kbs_email_ticket_received(564) #6 C:\xampp\htdocs\hurtchem\wp-includes\class-wp-hook.php(305): kbs_trigger_ticket_received(564) #7 C:\xampp\htdocs\hurtchem\wp-includes\class-wp-hook.php(327): WP_Hook->apply_filters('', Array) #8 C:\xampp\htdocs\hurtchem\wp-includes\plugin.php(470): WP_Hook->do_action(Array) #9 C:\xampp\htdocs\hurtchem\wp-content\plugins\kb-support\includes\admin\tickets\tickets.php(1106): do_action('kbs_save_ticket', 564, Object(WP_Post)) #10 C:\xampp\htdocs\hurtchem\wp-includes\class-wp-hook.php(303): kbs_ticket_post_save(564, Object(WP_Post), true) #11 C:\xampp\htdocs\hurtchem\wp-includes\class-wp-hook.php(327): WP_Hook->apply_filters('', Array) #12 C:\xampp\htdocs\hurtchem\wp-includes\plugin.php(470): WP_Hook->do_action(Array) #13 C:\xampp\htdocs\hurtchem\wp-includes\post.php(4457): do_action('save_post_kbs_t...', 564, Object(WP_Post), true) #14 C:\xampp\htdocs\hurtchem\wp-includes\post.php(4570): wp_insert_post(Array, false, true) #15 C:\xampp\htdocs\hurtchem\wp-admin\includes\post.php(423): wp_update_post(Array) #16 C:\xampp\htdocs\hurtchem\wp-admin\post.php(227): edit_post() #17 {main} thrown in C:\xampp\htdocs\hurtchem\wp-content\plugins\kb-support\includes\emails\email-functions.php on line 353

    System info:

    ### Begin System Info ###
    
    -- Site Info
    
    Site URL:                 https://hurtchem.intranet:8080
    Home URL:                 https://hurtchem.intranet:8080
    Multisite:                No
    Locale:                   pl_PL
    
    -- WordPress Configuration
    
    Version:                  5.8.2
    Language:                 en_US
    Permalink Structure:      /%year%/%monthnum%/%day%/%postname%/
    Active Theme:             Screenr 1.2.4
    Show On Front:            posts
    ABSPATH:                  C:\xampp\htdocs\hurtchem/
    Remote Post:              wp_remote_post() works
    Table Prefix:             Length: 3   Status: Acceptable
    WP_DEBUG:                 Disabled
    Memory Limit:             40M
    Registered Post Stati:    publish, future, draft, pending, private, trash, auto-draft, inherit, request-pending, request-confirmed, request-failed, request-completed, new, open, hold, closed
    
    -- KBS Configuration
    
    Installed:                4 stycznia 2022
    First Version:            1.5.5
    Current Version:          1.5.5
    Upgraded From:            None
    
    -- KBS Page Configuration
    
    Submission Page:         https://hurtchem.intranet:8080/log-a-support-ticket/
    Tickets Page:            https://hurtchem.intranet:8080/ticket-manager/
    
    -- WordPress Active Plugins
    
    Allow Multiple Accounts: 3.0.4
    Booking Calendar: 8.9.2
    KB Support: 1.5.5
    Modern Events Calendar Lite: 6.2.0
    nirweb support: 2.7.9
    Notification: 8.0.9
    Simple Iframe: 1.1.1
    User Role Editor: 4.61
    WPForms Lite: 1.7.1.2
    WP Mail SMTP: 3.2.1
    
    -- WordPress Inactive Plugins
    
    Awesome Support: 6.0.10
    
    -- Webserver Configuration
    
    PHP Version:              8.0.13
    MySQL Version:            5.5.5
    Webserver Info:           Apache/2.4.51 (Win64) OpenSSL/1.1.1l PHP/8.0.13
    
    -- PHP Configuration
    
    Memory Limit:             512M
    Upload Max Size:          40M
    Post Max Size:            40M
    Upload Max Filesize:      40M
    Time Limit:               120
    Max Input Vars:           1000
    Display Errors:           On (1)
    
    -- PHP Extensions
    
    cURL:                     Supported
    fsockopen:                Supported
    SOAP Client:              Not Installed
    Suhosin:                  Not Installed
    
    ### End System Info ###
Viewing 1 replies (of 1 total)
  • Hi @lukashurtchem,

    Thanks for reaching out and letting us know about this!
    To solve it please go to this file: includes/emails/email-functions.php line 353 and replace this code:
    $subject = kbs_get_option( 'ticket_notification_subject', sprintf( __( 'New %1Ss logged - Case #%1$s', 'kb-support' ), $single, $ticket_id ) );

    with this one:
    $subject = kbs_get_option( 'ticket_notification_subject', sprintf( __( 'New %1$s logged - Case #%2$s', 'kb-support' ), $single, $ticket_id ) );

    Save the file and this should fix it.

    Warmly,
    Mihaela

Viewing 1 replies (of 1 total)
  • The topic ‘Email error’ is closed to new replies.