-
-
Notifications
You must be signed in to change notification settings - Fork 1
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
The problem of the missing authors #77
Comments
|
One point that seems risky to me:
However, in the test run of this script on their site, the printed log returned no logs that matched the message that the code would output in this case where a post is assigned to a generic user. |
This script does not chunk by posts; instead it runs against all However, subsequent page loads process newly-updated records faster, resulting in the script eventually completing. There's a large amount of this:
This is the message output with the "risky" case described at #77 (comment) The non-object warning appears to be because that line is checking for
|
Yes, the "risky" case happens on the prod db, and yes, the |
Posts triggering the "risky" case: Post 6300 has user This "risky" case is appearing in Step 1 of #77 (comment), where the script is still trying to match Drupal authors to WP Users. After running the script, post 6300 has user When the script finishes running, post 6300 still has author
So, for some posts, this script will result in posts changing authorship from tsuperadmin to no author at all! Next steps:
|
The missing-author-info case is known and accepted. The fallback author will be To do:
|
The support tech added this file on prod, not staging, but it's easy to copy from one to the other: wp-load.php: <?php require_once('.wordpress/wp-load.php'); ?> However, Flywheel Staging does not print the raw output of the script as it works. It instead outputs a 504 Gateway Timeout error. We don't know how much progress is being made. |
private repo for the revised authorship fixer scripts: https://github.com/INN/workday-author-fixer |
a downside of timeout-based processing with Flywheels' In the final run of
In the final run of
In conclusion:
|
Production run notes: In the final run of
In the final run of In conclusion:
|
Thanks @benlk! How did this compare to the staging run? |
Slightly fewer posts with a known Drupal author but no corresponding WordPress author; I think they might've set some WP authors manually on prod. Same number of posts by the "Admin" user. |
Thanks! Let's rename the author as you suggested, as we did with SFPP. |
Author display name updated to "Workday Minnesota Staff" |
The db-based approach:
largo_custom_byline
post meta from the postmeta table, in the form of anUPDATE
statementThe text was updated successfully, but these errors were encountered: