Fatal Error when saving the SEO title meta with “%” in the post title
-
Hello.
I’m facing an issue similar to this https://www.ads-software.com/support/topic/your-site-is-experiencing-a-technical-issue-85/. I actually managed to reproduce the issue I’m going to mention below in an empty site with just Stream and Yoast SEO (free) installed.
When those two plugins are activated, if a post has the “%” character in its title, and the user is also changing the Yoast SEO title for that post, the attempt to save the Yoast SEO metabox throws a PHP Error
[15-Jan-2024 11:33:23 UTC] PHP Fatal error: Uncaught ValueError: Unknown format specifier “”” in D:\XYZ\LocalSites\stream\app\public\wp-content\plugins\stream\classes\class-log.php:127
Stack trace: 0 D:\XYZ\LocalSites\stream\app\public\wp-content\plugins\stream\classes\class-log.php(127): vsprintf(‘Updated “SEO ti…’, Array) 1 [internal function]: WP_Stream\Log->log(‘wordpressseo’, ‘Updated “SEO ti…’, Array, 5, ‘wpseo_meta’, ‘updated’, 1) 2 D:\XYZ\LocalSites\stream\app\public\wp-content\plugins\stream\classes\class-connector.php(178): call_user_func_array(Array, Array) 3 D:\XYZ\LocalSites\stream\app\public\wp-content\plugins\stream\connectors\class-connector-wordpress-seo.php(433): WP_Stream\Connector->log(‘Updated “SEO ti…’, Array, 5, ‘wpseo_meta’, ‘updated’) 4 D:\XYZ\LocalSites\stream\app\public\wp-content\plugins\stream\connectors\class-connector-wordpress-seo.php(368): WP_Stream\Connector_WordPress_SEO->meta(5, ‘_yoast_wpseo_ti…’, ‘%%title%% %%pag…’) 5 [internal function]: WP_Stream\Connector_WordPress_SEO->callback_updated_post_meta(NULL, 5, ‘_yoast_wpseo_ti…’, ‘%%title%% %%pag…’) 6 D:\XYZ\LocalSites\stream\app\public\wp-content\plugins\stream\classes\class-connector.php(127): call_user_func_array(Array, Array) 7 D:\XYZ\LocalSites\stream\app\public\wp-includes\class-wp-hook.php(324): WP_Stream\Connector->callback(’17’, 5, ‘_yoast_wpseo_ti…’, ‘%%title%% %%pag…’) 8 D:\XYZ\LocalSites\stream\app\public\wp-includes\class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array) 9 D:\XYZ\LocalSites\stream\app\public\wp-includes\plugin.php(517): WP_Hook->do_action(Array) 10 D:\XYZ\LocalSites\stream\app\public\wp-includes\meta.php(336): do_action(‘updated_post_me…’, ’17’, 5, ‘_yoast_wpseo_ti…’, ‘%%title%% %%pag…’) 11 D:\XYZ\LocalSites\stream\app\public\wp-includes\post.php(2558): update_metadata(‘post’, 5, ‘_yoast_wpseo_ti…’, ‘%%title%% %%pag…’, ”) 12 D:\XYZ\LocalSites\stream\app\public\wp-content\plugins\wordpress-seo\inc\class-wpseo-meta.php(717): update_post_meta(5, ‘_yoast_wpseo_ti…’, ‘%%title%% %%pag…’) 13 D:\XYZ\LocalSites\stream\app\public\wp-content\plugins\wordpress-seo\admin\metabox\class-metabox.php(799): WPSEO_Meta::set_value(‘title’, ‘%%title%% %%pag…’, 5) 14 D:\XYZ\LocalSites\stream\app\public\wp-includes\class-wp-hook.php(326): WPSEO_Metabox->save_postdata(5) 15 D:\XYZ\LocalSites\stream\app\public\wp-includes\class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array) 16 D:\XYZ\LocalSites\stream\app\public\wp-includes\plugin.php(517): WP_Hook->do_action(Array) 17 D:\XYZ\LocalSites\stream\app\public\wp-includes\post.php(4771): do_action(‘wp_insert_post’, 5, Object(WP_Post), true) 18 D:\XYZ\LocalSites\stream\app\public\wp-includes\post.php(4862): wp_insert_post(Array, false, true) 19 D:\XYZ\LocalSites\stream\app\public\wp-admin\includes\post.php(453): wp_update_post(Array) 20 D:\XYZ\LocalSites\stream\app\public\wp-admin\post.php(227): edit_post() 21 {main}
thrown in D:\XYZ\LocalSites\stream\app\public\wp-content\plugins\stream\classes\class-log.php on line 127Please let me know if you any further questions.
Thank you
- The topic ‘Fatal Error when saving the SEO title meta with “%” in the post title’ is closed to new replies.