Missing featured images on new revision
-
Hi,
Sometimes, and I’m not sure on which conditions, when I create a new revision, I can see the featured image getting removed. When I’m opening this revision to edit, the featured image is just not there. Any idea what could be going on?
Regards,
Arjen
-
@arjendejong We have not seen this issue, but I’ll investigate. Can you confirm that you are using the Gutenberg editor? Do you have any page builder or front end editor plugins active?
@kevinb I am using the Gutenberg editor in combination with a custom post type. No other page builders or editors. I’ve made a small recording to show you what happens when I save a post: https://www.awesomescreenshot.com/video/557233?key=4d31256118084e5b63e619efecb1da83
This particular post is now missing its featured image in the revision: https://tinyurl.com/y6e4kgb9On your site, does this also happen with regular posts or pages?
The editorial office only uses it on this custom post type so I don’t know if it happens on posts or pages, sorry.
@arjendejong I’ve confirmed the error and should be able to develop a fix for release tomorrow.
That’s great news! I’m looking forward to the fix.
@arjendejong The updated Revisions development version (2.3.9-beta3) should resolve this issue. Can you confirm the fix on your site?
@kevinb Thanks for the zip. I’ve updated the plugin in my site, but unfortunately it didn’t correctly include the featured image in the revision. Looking at the updated code in GitHub, it seems you updated it in pending revisions. However, we’re not using pending revisions, only scheduled revisions. That’s why it’s not working for us I think. One thing that does seem to work is reupload the current featured image. I’m not sure if the current one has a faulty reference in the database, but it displays correctly in our site.
Also, this latest beta release broke our scheduled revisions. They are not being scheduled correctly. For now I’ve reverted back to beta 2. I’ve included the stack trace below:
[2020-08-06 08:30:04] production.ERROR: Creating default object from empty value {“userId”:null,”email”:null,”exception”:”[object] (ErrorException(code: 0): Creating default object from empty value at /home/wpsoup/domains/girlz.nl/public_html/htdocs/content/plugins/revisionary/admin/revision-action_rvy.php:468)
[stacktrace]
#0 /home/wpsoup/domains/girlz.nl/public_html/htdocs/content/plugins/revisionary/admin/revision-action_rvy.php(468): Themosis\\Core\\Bootstrap\\ExceptionHandler->handleError(2, ‘Creating defaul…’, ‘/home/wpsoup/do…’, 468, Array)
#1 /home/wpsoup/domains/girlz.nl/public_html/htdocs/content/plugins/revisionary/admin/revision-action_rvy.php(893): rvy_apply_revision(‘110832’, ‘future-revision’)
#2 /home/wpsoup/domains/girlz.nl/public_html/htdocs/content/plugins/revisionary/admin/revision-action_rvy.php(842): rvy_publish_scheduled_revisions()
#3 /home/wpsoup/domains/girlz.nl/public_html/htdocs/cms/wp-includes/class-wp-hook.php(287): _rvy_publish_scheduled_revisions(Object(Revisionary))
#4 /home/wpsoup/domains/girlz.nl/public_html/htdocs/cms/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters(”, Array)
#5 /home/wpsoup/domains/girlz.nl/public_html/htdocs/cms/wp-includes/plugin.php(478): WP_Hook->do_action(Array)
#6 /home/wpsoup/domains/girlz.nl/public_html/htdocs/content/plugins/revisionary/revisionary_main.php(150): do_action(‘rvy_init’, Object(Revisionary))
#7 /home/wpsoup/domains/girlz.nl/public_html/htdocs/content/plugins/revisionary/rvy_init.php(929): Revisionary->__construct()
#8 /home/wpsoup/domains/girlz.nl/public_html/htdocs/cms/wp-includes/class-wp-hook.php(287): rvy_init(”)
#9 /home/wpsoup/domains/girlz.nl/public_html/htdocs/cms/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters(NULL, Array)
#10 /home/wpsoup/domains/girlz.nl/public_html/htdocs/cms/wp-includes/plugin.php(478): WP_Hook->do_action(Array)
#11 /home/wpsoup/domains/girlz.nl/public_html/htdocs/cms/wp-settings.php(540): do_action(‘init’)
#12 /home/wpsoup/domains/girlz.nl/public_html/htdocs/wp-config.php(54): require_once(‘/home/wpsoup/do…’)
#13 /home/wpsoup/domains/girlz.nl/public_html/htdocs/cms/wp-load.php(42): require_once(‘/home/wpsoup/do…’)
#14 /home/wpsoup/domains/girlz.nl/public_html/htdocs/cms/wp-blog-header.php(13): require_once(‘/home/wpsoup/do…’)
#15 /home/wpsoup/domains/girlz.nl/public_html/htdocs/cms/index.php(17): require(‘/home/wpsoup/do…’)
#16 {main}
“}Hi @arjendejong. I believe we have a support ticket from you on this, so we’ll reply there.
- The topic ‘Missing featured images on new revision’ is closed to new replies.