• Resolved Newt Labs

    (@newtlabs)


    When going to Appearance > Widgets I get the below error. The edit widgets area is fine when disabling your plugin.

    The editor has encountered an unexpected error.
    – Attempt Recovery
    – Copy Error

    TypeError: Cannot read properties of undefined (reading 'PluginPostStatusInfo')
        at value (/wp-content/plugins/duplicate-post/js/dist/duplicate-post-edit-430.js?ver=4.3:1:4557)
        at we (/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.13.1:84:293)
        at zj (/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.13.1:226:496)
        at Th (/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.13.1:152:223)
        at tj (/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.13.1:152:152)
        at Te (/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.13.1:146:151)
        at Ja (/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.13.1:224:381)
        at md (/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.13.1:173:43)
        at /wp-includes/js/dist/vendor/react-dom.min.js?ver=16.13.1:175:222
        at Rh (/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.13.1:147:64)
Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Enrico Battocchi

    (@lopo)

    Hi @newtlabs,
    we’re sorry for the problem you are expeiencing.
    We are trying to reproduce the problem but it seems that we need a bit more information:
    – which version of WordPress are you using?
    – Do you use any plugin or theme that can be interfering in the Widgets screen, e.g. by providing custom widgets?
    – Did you upgrade to Yoast Duplicate Post 4.3 from a previous version? If so, did the problem start with the upgrade?

    Thank you for your help and for reporting this!

    Thread Starter Newt Labs

    (@newtlabs)

    Hi, rolling back to 3.2.6 is fine. The issue is introduced in 4.0.

    We’re using the latest version of WordPress.

    I have tested the plugins and they’re all fine – no conflicts.

    The conflict is with the Ajzaa theme – I’ve updated that to the latest version and the error still shows on the widgets page.

    This shows in the console:

    TypeError: Cannot read properties of undefined (reading 'PluginPostStatusInfo')
        at value (duplicate-post-edit-430.js?ver=4.3:1)
        at we (react-dom.min.js?ver=16.13.1:84)
        at zj (react-dom.min.js?ver=16.13.1:226)
        at Th (react-dom.min.js?ver=16.13.1:152)
        at tj (react-dom.min.js?ver=16.13.1:152)
        at Te (react-dom.min.js?ver=16.13.1:146)
        at Ja (react-dom.min.js?ver=16.13.1:224)
        at md (react-dom.min.js?ver=16.13.1:173)
        at react-dom.min.js?ver=16.13.1:175
        at Rh (react-dom.min.js?ver=16.13.1:147)
    Me @ react-dom.min.js?ver=16.13.1:125

    I could possibly see about getting you a copy of the theme for testing purposes if it helps?..

    Plugin Author Enrico Battocchi

    (@lopo)

    Hi @newtlabs,
    I’ve looked at the theme’s page and I see it’s using WPBakery Page Builder. Can you do a quick test of me by disabling that and let me know if the problem still happens? If so, I think we have found where the conflict lies and I can start investigation about the solution…

    Thanks for your help!

    Thread Starter Newt Labs

    (@newtlabs)

    I tried disabling all the plugins previously and it was still showing the issue but this was using an outdated version of the theme (2.3).

    On the new version of the theme (3.1) if I disable WPBakery Page Builder the error does go away.

    Unfortunately there is a bunch of custom work that needs doing in order to bring this theme up to date so if you’re able to fix the issue regardless of theme version it would be pretty impressive..

    Let me know if I can assist further.. cheers!

    Plugin Author Enrico Battocchi

    (@lopo)

    Hi @newtlabs,
    I think I found where the problem lies:
    in the file ajzaa/inc/vcomposer/vc_elements/wd-blog.php the lines 6-8 are:

    foreach ( $ajzaa_posts as $key => $post ) {
    	$ajzaa_posts_array[$post->post_title] = $post->ID;
    }

    Unfortunately this loop sets the value for the global $post. This triggers the loading of a Yoast Duplicate Post JS script where it’s not supposed to run.
    If you can, the problem above should be reported to the theme’s authors because it might create a bunch of other problems, not just with our plugin. The solution shoud be simple, just by renaming the temporary $post variable.

    On our side, we’ll improve the checks thet we perform to avoid such failures in similar contexts. But I’m afraid that due to holidays etc. we can’t ship a new version until mid January.

    Thank you so much for reporting this!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘WIdgets error’ is closed to new replies.