We have a client telling us that sometimes in the past they have seen errors/warnings from the FBIA plugin that result in articles not going through to facebook or having missing content. However, they're not able to give me any examples at the moment.
As far as I can tell, the only way to see if an article has a warning is to open the post editor and check the FBIA metabox. This is inefficient since they have thousands of posts.
Is there a way to get a list or log of articles that may have FBIA warnings?
Steps required to reproduce the problem
Go to posts index in wp-admin
Open posts for editing one at a time
Look for FBIA warnings
Slowly die of old age
A log, CLI tool or dashboard area with a list of FBIA warnings.
I haven't yet found anything like that.
Plugin version: 4.0 in VIP plugins repository.
WordPress version: 4.92
PHP version: 7.xx
The text was updated successfully, but these errors were encountered:
Fair enough, I'll share something I found while I was reading the code base -
It looks like there is a method in FBIA conveniently called InstantArticlesPost::has_warnings_after_transformation(). Using that I can add, within the post index loop -
$fbia = new Instant_Articles_Post($post_id);
// this value is cached so hopefully it's not too resource-intensive
// output an error message
That will give us a little green or red light in the posts index to indicate whether FBIA is throwing errors or not.
If I get to it before you guys do I'll make a pull request.
Just want to say I love the concept of this patch so much! Will really help admins who want to quickly audit how things are going (and be a useful red flag for managing editors if they see any red or a lot of yellow).
(would test it myself but waiting for feedback about a composer bug)