Skip to content
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

Error Message: WordPress database error You have an error in your SQL syntax #268

Closed
alecmuffett opened this issue Nov 8, 2023 · 2 comments

Comments

@alecmuffett
Copy link
Contributor

in the logfiles; I am guessing that relationships_post_format.term_taxonomy_id is not meant to be empty?

This is a fresh WP6.4 instance set up to handle ActivityPub and nothing else, with all plugins up to date, set up last night.

2023/11/07 21:52:35 [error] 118890#118890: *410767 FastCGI sent in stderr:
"PHP message: WordPress database error You have an error in your SQL syntax;
check the manual that corresponds to your MariaDB server version for the right syntax to use near ')
AND relationships_author.object_id = posts.ID
AND taxonomy_auth...' at line 10 for query SELECT relationships_post_format.term_taxonomy_id AS post_format_id, COUNT(relationships_post_format.term_taxonomy_id) AS count
FROM ewwp_posts AS posts
JOIN ewwp_term_relationships AS relationships_post_format
JOIN ewwp_term_taxonomy AS taxonomy_author
JOIN ewwp_term_relationships AS relationships_author
WHERE posts.post_status IN ( 'publish', 'private' )
AND posts.post_type IN ( 'friend_post_cache' )
AND relationships_post_format.object_id = posts.ID
AND relationships_post_format.term_taxonomy_id IN (  )
AND relationships_author.object_id = posts.ID
AND taxonomy_author.term_taxonomy_id = relationships_author.term_taxonomy_id
AND taxonomy_author.term_id = 26" while reading upstream...
@akirk
Copy link
Owner

akirk commented Nov 15, 2023

Thank you for reporting this. It occurs when the theme doesn't have post format support and you haven't activated settings to provide post format support regardless of the theme's support.

This should be fixed with #271.

@akirk akirk closed this as completed Nov 15, 2023
@alecmuffett
Copy link
Contributor Author

alecmuffett commented Nov 15, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants