• Resolved nites1

    (@nites1)


    Hi,

    after the last update 1.9.16 a search error occurred:

    Fatal error: Uncaught ValueError: Missing format specifier at end of string in /home/platne/serwer263063/public_html/pograne.eu/wp-content/themes/siteorigin-unwind/search.php:14 Stack trace: #0 /home/platne/serwer263063/public_html/pograne.eu/wp-content/themes/siteorigin-unwind/search.php(14): printf() #1 /home/platne/serwer263063/public_html/pograne.eu/wp-includes/template-loader.php(106): include('...') #2 /home/platne/serwer263063/public_html/pograne.eu/wp-blog-header.php(19): require_once('...') #3 /home/platne/serwer263063/public_html/pograne.eu/index.php(17): require('...') #4 {main} thrown in /home/platne/serwer263063/public_html/pograne.eu/wp-content/themes/siteorigin-unwind/search.php on line 14

    Could you assist with the issue?

    Best regards,
    Artur

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thanks, Artur. We’ll take a look and get back to you with an update.

    Cheers, Andrew

    Hi Artur,

    I’ve investigated this report, and I can’t replicate this issue. I’ve had a look at your site and it appears to be working as expected. Is this issue currently occurring? If so, try reinstalling the theme to see if that helps. This can be done by navigating to Appearance > Themes, and changing to a different theme. Click the SiteOrigin Unwind thumbnail and click delete. Click Add New, and search for SiteOrigin Unwind. Install and active it. Does the error still occur?

    Kind regards,
    Alex

    Thread Starter nites1

    (@nites1)

    I didn’t want to wait, so I’ve made a small change to search file.

    OG:

    <h1 class="page-title"><span class="page-title-text"><?php printf( esc_html__( 'Search Results: %s', 'siteorigin-unwind' ), get_search_query() ); ?></span></h1>

    My file:

    <h1 class="page-title"><span class="page-title-text"><?php esc_html_e( 'Search Results: ', 'siteorigin-unwind' ); ?><?php echo get_search_query(); ?></span></h1>

    and now it works.

    Hi Artur,

    It’s great to hear you were able to get it working. The change you outlined omits the search query from the translation string which can make translating this text tricker. Did you alter this translation? If so, what did you set it to?

    I recommend making your change using a child theme to ensure it’s update safe.

    Kind regards,
    Alex

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.