Closed doweis closed 5 years ago
Hi, I manually changed the code to your fixed code, https://github.com/v17development/flarum-seo/commit/b9455162a56993a8dc534d46c3cb5024f806614c unfortunately the error still exists... But is the only post as far as I have tested, which is way better than before.
The site on which the error occures is : https://www.breitband.bz.it/d/1643-fibra-fttc-in-lana/23 Log: `[2019-05-11 18:04:01] production.ERROR: InvalidArgumentException: Cannot load XML: Premature end of data in tag r line 1 in /srv/web/breitband.bz.it/vendor/s9e/text-formatter/src/Renderer.php:23 Stack trace:
`
Hello @doweis ! Thanks for trying the updated code!
This seems to be a different error then before. The other one was a Call to a member function getAttribute() on null in
error. This one is a text rendering error.
Someone else did have the same issue as you have, way before this extension: https://discuss.flarum.org/d/829-admin-content-not-showing/4
So, I think that one post in that discussion is corrupt somehow. It may be a Flarum bug. Did you see this on more discussions?
Just investigated the topic by navigating through it. At first I see it's a topic of 2017, so I think you used a migrator that converted the posts to flarum readable posts?
When I am looking at that topic (and browse through it), I indeed see that Flarum cannot load one of the posts.
This one results into an 500 error, and I think that error is the one you mentioned above: https://www.breitband.bz.it/api/posts?filter[id]=15680,15681,15682,15683,15684,15685,15687,15688,15689,15690,15692,15697,15699,15700,15701,15704,15705,15706,15716,15717
This is the post that will give an error: https://www.breitband.bz.it/api/posts?filter[id]=15690
Post ID 15690. I think an XML tag may be missing somewhere. But I am not too sure about that.
So, for this topic, it's not the plugin, but one of the posts that prevent the page from loading.
Thanks for your reply, indeed it was the only disussion, which caused that issue. But the strange thing is, that only when Flarum-SEO is enabeld the whole discussion is not loading. Normally it was loading the disussion, but only this post was not loading.
I deleted now that post, so everything works again.
Thanks for fixing the issue! Great extension!
The extension causes on some but not all discussions the Flarum error page if the discussion-page gets reloaded or gets opened via direct link.
Flarum log: