-
Notifications
You must be signed in to change notification settings - Fork 64
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
Post not loading properly on mobile and desktop - poss AMP issue #2021
Comments
Thanks for reporting this issue, @linusrees! To me, that looks like JSON, not CSS, and mentions "https://www.w3.org/ns/activitystreams" followed by some Mastondon and PeerTube links, though I'm not sure why it would randomly show up like this. Does that line up with anything you know is running on the site? This is the first report of this issue, so any additional information you can provide would be a big help for us tracking down the cause! Can you please try:
In the meantime, I haven't been able to recreate it on your site, but it sounds like it's intermittent, so that doesn't say anything either way -- I can circle back and keep trying. |
@laurelfulford thanks for your comments. The Mastondon links are part of the "social media menu" on the Newspack Theme, so that is not unexpected. I am now told by users that the JSON code is also displayed on the Safari browser on a desktop -- ie, not via AMP. Also I have a report on the same error using the Chrome browser on an Apple device (not sure if it was mobile or desktop). Again, all these reports state that the error is temporary and when they refresh the page a few minutes or more later it displays correctly. |
Thanks @linusrees!
The Mastondon URL alone makes sense to me, it's how it's formatted and the rest of it -- I'm not sure what would be loading that JSON to begin with.
Confusingly AMP can run on desktop, too, if the site is set to use AMP in Standard Mode -- that's the default that the Newspack plugin will set a site to if it was used as a setup tool. Best I can tell the site is running AMP on desktop (if you view source, you can see things like Did you have a chance to try the other things I suggested (turning off other plugins?). And can you please let me know information (OS and browser version number) of the device you're able to recreate this on? I'd also be curious what other plugins the site is running, if you could list them here, too -- just to try to narrow down where that code could be coming from! |
@laurelfulford Thanks for your help with this. I tried to recreate the issue with the page not loading properly just now. It was a post I published more than 18 hours ago and I tried it in the Vivaldi browser (v5.6 on desktop using Ubuntu 20.04.5 LTS GNU/Linux) - it failed to load properly and displayed the JSON code as before. I checked the AMP settings and they were on "standard" as this was previously the recommended setting when I first installed Newspack. It is flagged as "not recommended". So I switched it to "transitional". This displayed the page as normal. So appeared to fix it. I doubled checked it by clearing the browser cache. =====================--List of plugins active--================ Akismet Anti-Spam AMP Co-Authors Plus CoBlocks Crowdsignal Forms EmbedPress Hypernotes Jetpack Layout Grid Newspack Newspack Blocks Newspack Image Credits Page Optimize ProfilePress Public Post Preview Site Kit by Google WordPress.com Editing Toolkit Yoast SEO |
I spoke too soon. There is still an intermittent problem with the page not loading. However, the page did load correctly after a few minutes when I reloaded (refreshed) the page using Vivaldi browser (v5.6 on desktop using Ubuntu 20.04.5 LTS GNU/Linux). |
JSON is generated by ActivityPub plugin, suggest to look for other plugin conflict with it. |
Thanks. I'll try to check it out. It is very difficult to work through this problem as it is only intermittent. If it would stay broken for long enough for me to fiddle with it, it would help. Most of the time it works fine and loads correctly. I may disable the ActivityPub plugin as I am also sharing the posts via mastodon (manually). But this problem is just irritating rather than critical. But maybe posting it here others may benefit from the comments. |
The problem came back. So I deactivating ActivityPub -- it didn't fix it. I deactivated AMP -- it did appear to fix it. But when I double-checked it was fine with AMP activated. Most of the posts load fine most of the time. So I'm going to live with it. 👍 |
One thing that appeared to clear the problem was updating the post. I didn't actually add anything to the post, I just click update so the date stamp changed. That fix could have just been coincidence, though. |
New posts on my site running Newspack theme Version: 1.65.3 and Newspack plugin Version 1.98.0 has an issue where a new post does not load properly. For example, this post appears to display the CSS code
Three different users of the site have observed this fault. The screenshot here is from own iphone running the Safari browser. At least one other user is using the same. I'm not sure about the others.
Reloading the post does not solve the problem but it seems to load properly after maybe a few minutes or more.
I assume this is a problem with AMP in Newspack and the post is being served from the, er, server incorrectly.
The text was updated successfully, but these errors were encountered: