I am running Ghost 5.39.0 at NameCheap and using Mailgun for email sends. I made a new post today and sent myself a test message that works just fine, shows up in Mailgun analytics, and my inbox.
When I publish (and send) all looks well for 20 minutes and then I get a message in my published list like so:
Then this when I click in:
When I try to view the analytics page for the post I get a 500 error page with a red error message at the top, the text of which is:
Internal server error, cannot read post. An unexpected error occurred, please try again. select
posts
., (withk
as (selectmember_id
frommembers_subscription_created_events
where posts.id = members_subscription_created_events.attribution_id union selectmember_id
frommembers_created_events
where posts.id = members_created_events.attribution_id) select count() fromk
) ascount__conversions
,posts
., (select count(distinctmembers_click_events
.member_id
) frommembers_click_events
inner joinredirects
onmembers_click_events
.redirect_id
=redirects
.id
where posts.id = redirects.post_id) ascount__clicks
,posts
., (select COALESCE(ROUND(AVG(score) * 100), 0) frommembers_feedback
where posts.id = members_feedback.post_id) ascount__sentiment
,posts
., (select count() frommembers_feedback
where posts.id = members_feedback.post_id AND members_feedback.score = 0) ascount__negative_feedback
,posts
.*, (select sum(score
) frommembers_feedback
where posts.id = members_feedback.post_id) ascount__positive_feedback
fromposts
where (posts
.type
= ‘post’ andposts
.status
in (‘draft’, ‘published’, ‘scheduled’, ‘sent’)) andposts
.id
= ‘642084d362794e006c72f703’ limit 1 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘k
as (selectmember_id
frommembers_subscription_created_events
where post’ at line 1
Related?
I found some old articles but they didn’t lead to answers.
Where can I start in looking to fix this? Any pointers appreciated.