-
Notifications
You must be signed in to change notification settings - Fork 116
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PHP Fatal error: Uncaught ValueError w/ Yosat SEO #1443
Comments
Hello, Same error here, even on lastest Stream (3.10.0) version :
PHP Version 8.0.29 |
Same error here: An error of type E_ERROR was caused in line 139 of the file /nas/content/live/THEME/wp-content/plugins/stream/classes/class-log.php. Error message: Uncaught ValueError: Unknown format specifier "Q" in /nas/content/live/THEME/wp-content/plugins/stream/classes/class-log.php:139 |
Getting the same with Stream Input
Error
The reason seems to be the unescaped |
Wow, somebody reported the exact same issue yesterday: https://wordpress.org/support/topic/fatal-error-when-saving-the-seo-title-meta-with-in-the-post-title/ |
This code might be outdated: stream/connectors/class-connector-wordpress-seo.php Lines 418 to 435 in 0336294
I found a quick fix / hot patch with sprintf(
/* translators: %1$s: a meta field title, %2$s: a post title, %3$s: a post type (e.g. "Description", "Hello World", "Post") */
__( 'Updated "%1$s" of "%2$s" %3$s', 'stream' ),
$field['title'],
str_replace('%', '%%', $post->post_title),
$post_type_label
), I found, that a lot of the other connectors are passing database strings to |
Related: #1489 |
Is this fixed by #1508 ? |
@krokodok Yes it is! Thank you, I'll close this now. |
Bug Report
Expected Behavior
Clicking publish post doesn't generate a fatal error.
Actual Behavior
Clicking publish triggers a fatal error.
Steps to Reproduce the Problem
Screenshots
System Information
The text was updated successfully, but these errors were encountered: