• Abhishek

    (@redmiabhishek)


    Thanks for building the great plugin.

    I just tried to the plugin on my website, It works for pages, but not for posts. When I try to translate posts by clicking on the + icon, I get a critical error on the website. The message is something like this.

    Fatal error: Uncaught Error: The script tried to modify a property on an incomplete object. Please ensure that the class definition "Wpil_Model_Link" of the object you are trying to operate on was loaded _before_ unserialize() gets called or provide an autoloader to load the class definition in /var/www/wordpress/wp-includes/formatting.php:5058 Stack trace: #0 /var/www/wordpress/wp-includes/formatting.php(5053): map_deep() #1 /var/www/wordpress/wp-includes/formatting.php(2833): map_deep() #2 /var/www/wordpress/wp-includes/formatting.php(5711): stripslashes_deep() #3 /var/www/wordpress/wp-includes/meta.php(53): wp_unslash() #4 /var/www/wordpress/wp-content/plugins/polylang/modules/sync/sync-metas.php(379): add_metadata() #5 /var/www/wordpress/wp-content/plugins/polylang/modules/sync/admin-sync.php(107): PLL_Sync_Metas->copy() #6 /var/www/wordpress/wp-includes/class-wp-hook.php(310): PLL_Admin_Sync->new_post_translation() #7 /var/www/wordpress/wp-includes/plugin.php(205): WP_Hook->apply_filters() #8 /var/www/wordpress/wp-includes/post.php(8108): apply_filters() #9 /var/www/wordpress/wp-admin/post-new.php(71): use_block_editor_for_post() #10 {main} thrown in /var/www/wordpress/wp-includes/formatting.php on line 5058
    There has been a critical error on this website. Please check your site admin email inbox for instructions.
    
    Learn more about troubleshooting WordPress.

    Please help me.

    Thanks!

    Sincerely
    Abhishek

    • This topic was modified 1 year, 9 months ago by Abhishek.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Chouby

    (@chouby)

    Hello,

    Already answered on GitHub.

    Hi

    I can not say that it is from Polylang but since the last update, and no other was made in my WordPress, when I published the last post it does not appear published on the site and it vanished from the dashboard and it is impossible to find it anymore. This only happens, because I have my post already as drafts, and when I publish the draft as an article. I need to create a new post, copy it from the draft and it publish ok. If I do that it is fine.

    This already happened about two years ago but it was fine, until today.

    Maybe it was better you take a look.

    Best regards

    Colfer

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Plugin causes critical error when translating posts’ is closed to new replies.