Title: WIdgets error
Last modified: December 16, 2021

---

# WIdgets error

 *  Resolved [Fixmysite](https://wordpress.org/support/users/newtlabs/)
 * (@newtlabs)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/widgets-error-4/)
 * 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](https://wordpress.org/support/users/lopo/)
 * (@lopo)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/widgets-error-4/#post-15169232)
 * Hi [@newtlabs](https://wordpress.org/support/users/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!
    -  This reply was modified 4 years, 5 months ago by [Enrico Battocchi](https://wordpress.org/support/users/lopo/).
 *  Thread Starter [Fixmysite](https://wordpress.org/support/users/newtlabs/)
 * (@newtlabs)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/widgets-error-4/#post-15170486)
 * 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](https://wordpress.org/support/users/lopo/)
 * (@lopo)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/widgets-error-4/#post-15170662)
 * Hi [@newtlabs](https://wordpress.org/support/users/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 [Fixmysite](https://wordpress.org/support/users/newtlabs/)
 * (@newtlabs)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/widgets-error-4/#post-15170979)
 * 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](https://wordpress.org/support/users/lopo/)
 * (@lopo)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/widgets-error-4/#post-15172918)
 * Hi [@newtlabs](https://wordpress.org/support/users/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.

 * ![](https://ps.w.org/duplicate-post/assets/icon-256x256.png?rev=2336666)
 * [Yoast Duplicate Post](https://wordpress.org/plugins/duplicate-post/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/duplicate-post/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/duplicate-post/)
 * [Active Topics](https://wordpress.org/support/plugin/duplicate-post/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/duplicate-post/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/duplicate-post/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [Enrico Battocchi](https://wordpress.org/support/users/lopo/)
 * Last activity: [4 years, 5 months ago](https://wordpress.org/support/topic/widgets-error-4/#post-15172918)
 * Status: resolved