Bradford Campeau-Laurion
Forum Replies Created
-
Forum: Plugins
In reply to: [Publish To Apple News] “API: DATE_NOT_RECENT” errorJust to be clear, this isn’t a function of the plugin but how the Apple News API itself works. You’ll need to ensure that your requests are being signed with the correct local time that matches what the API is expecting for this to work.
More info is here: https://developer.apple.com/library/content/documentation/General/Conceptual/News_API_Ref/Security.html#//apple_ref/doc/uid/TP40015409-CH5-SW1
Forum: Plugins
In reply to: [Publish To Apple News] “Needs to be updated” and “Pending” State MessagesPlease see this section of our wiki regarding your stuck posts: https://github.com/alleyinteractive/apple-news/wiki/usage#resetting-a-stuck-post. It’s likely that an error occurred, so I’d recommend checking your PHP error logs for the reason. If you don’t know how to do that, please ask your web host.
With regards to updating the post in Apple News, simply go to the post edit screen or the Apple News list and click “Publish”: https://github.com/alleyinteractive/apple-news/wiki/usage#publishing-and-managing-articles-from-the-apple-news-list
Alternatively, you can set articles to auto update moving forward to avoid having to do that: https://github.com/alleyinteractive/apple-news/wiki/Configuration#api-settings
Thanks.
Forum: Plugins
In reply to: [Publish To Apple News] Previewing Articles?You can preview articles using the News Preview tool and Xcode.
More info here: https://developer.apple.com/news-preview/
Also info on how to export JSON for preview here: https://github.com/alleyinteractive/apple-news/wiki/usage#downloading-posts
In that case, yes, it would still publish.
For the unicode issue, it’s likely a plugin that you’re using that’s inserting that code. I’d double check what plugins could potentially be modifying the post content.
On the API error, yes, that’s exactly the issue. The endpoint for publishing to the API technically doesn’t “exist” until the channel is approved.
Thanks.
Forum: Plugins
In reply to: [Publish To Apple News] “API: DATE_NOT_RECENT” errorUnfortunately if you’re seeing that error, something has to be out of alignment. The current time is added to the signature for the request and if it’s off, even slightly, the request will fail. This is entirely out of the hands of the plugin and has to do with the handshake between your server and the Apple News API.
Even if your server time is off by a minute, it would create an invalid signature on the request. I would double check this and if you’re still experiencing the error, you’ll have to follow up directly with Apple News support. This is unfortunately out of the hands of the plugin.
Forum: Plugins
In reply to: [Publish To Apple News] Exclude single category from main sectionThe functionality built into the plugin for categories is meant to map categories in WordPress to categories in Apple News, not to exclude them.
However, there are many hooks available in the plugin where you can add your own custom code to modify publish functionality as you see fit. The filter
apple_news_skip_pushis likely the one you want: https://github.com/alleyinteractive/apple-news/wiki/Action-and-Filter-Hooks#adminapple-actionsindexclass-pushphp-1This filter provides the post ID and you can return false from your custom function to exclude articles from publishing to Apple News based on any criteria.
The plugin should tell you what sequences it finds to be invalid. Have you truncated those from your post here? If they’re using emoji in a post, we’re aware of that issue and will resolve it in a future version: https://github.com/alleyinteractive/apple-news/issues/404
With regards to the NOT_FOUND error, please read this thread and see if it is of assistance: https://github.com/alleyinteractive/apple-news/issues/238
Thanks.
@lkahney it would be better if you propose this as a pull request to the plugin on github.
Also I believe that soliciting emails is a violation of the terms of service of this support forum, no matter the intent.
The plugin is open source, so I’d suggest you be open with your suggestions here and either post here as
codeor on github.Thanks.
Forum: Plugins
In reply to: [Publish To Apple News] Ads not automatically insertedThe insertion of ads is handled by Apple News, not the plugin. If that setting is present in your JSON, then you’ll need to follow up with Apple News support instead. Unfortunately, we don’t handle any aspect of ads beyond the above.
Forum: Plugins
In reply to: [Publish To Apple News] Plugin generates and auto-crops thumbnails@greenzilla This is already being tracked here: https://ww.wp.xz.cn/support/topic/too-many-thumbnail-sizes/#post-9118455. We don’t need two issues for this. Thanks.
Thanks.
Forum: Plugins
In reply to: [Publish To Apple News] Invalid DocumentCan you please provide the JSON for this article by going to the Apple News list in the WordPress dashboard and clicking “Download” for the post in question? Please copy and paste the contents of this file into pastebin and provide a link to that here.
Can you also do the same for the contents of the “Text” tab in the WordPress editor for that same post?
Thanks.
Forum: Plugins
In reply to: [Publish To Apple News] New API error just hit.Also if you’re not using remote images in the plugin settings, I’d encourage that.
Forum: Plugins
In reply to: [Publish To Apple News] New API error just hit.Unfortunately there’s nothing we can do about that particular error. Can you please check with Apple News support directly?
I’ve added an enhancement for future consideration to potentially avoid issues related to timeouts: https://github.com/alleyinteractive/apple-news/issues/368
Thanks.
Forum: Plugins
In reply to: [Publish To Apple News] LIST not functioning properlyOK, just be aware you’d need to republish any old articles. They won’t instantly fix.
Not sure what you mean about iPad navigation.