Title: Typ E_ERROR when editing menus
Last modified: July 15, 2021

---

# Typ E_ERROR when editing menus

 *  Resolved [Matthias Baier](https://wordpress.org/support/users/ma_wordpressorg/)
 * (@ma_wordpressorg)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/typ-e_error-when-editing-menus/)
 * I was updating my menu und ended up with a fatal error which could be recovered
   using the backbutton in my browser. But I’m still curious, why this is happening.
   
   I created a category-menu-item, moved it arround in my menu saved it and eventually
   removed it again. The save button triggers the error then. But changes are still
   saved. Has anyone else experienced this error?
 * Wordpress-Error-report (in German)
    Fehler-Details ============== Ein Fehler 
   vom Typ E_ERROR wurde in der Zeile 68 der Datei /home/www/biga-yachten.de/wp-
   content/plugins/duplicate-post/src/class-permissions-helper.php verursacht. Fehlermeldung:
   Uncaught TypeError: Argument 1 passed to Yoast\WP\Duplicate_Post\Permissions_Helper::
   is_rewrite_and_republish_copy() must be an instance of WP_Post, null given, called
   in /home/www/biga-yachten.de/wp-content/plugins/duplicate-post/src/class-post-
   republisher.php on line 427 and defined in /home/www/biga-yachten.de/wp-content/
   plugins/duplicate-post/src/class-permissions-helper.php:68 Stack trace: #0 /home/
   www/biga-yachten.de/wp-content/plugins/duplicate-post/src/class-post-republisher.
   php(427): Yoast\WP\Duplicate_Post\Permissions_Helper->is_rewrite_and_republish_copy(
   NULL) #1 /home/www/biga-yachten.de/wp-includes/class-wp-hook.php(294): Yoast\
   WP\Duplicate_Post\Post_Republisher->clean_up_when_copy_manually_deleted(1254)#
   2 /home/www/biga-yachten.de/wp-includes/class-wp-hook.php(316): WP_Hook->apply_filters(
   NULL, Array) #3 /home/www/biga-yachten.de/wp-includes/plugin.php(484): WP_Hook-
   >do_action(Array) #4 /home/www/biga-yachten.de/wp-includes/post.php(3125): do_action(‘
   before_delete_p…’, 1254, Object(WP_Post))

Viewing 1 replies (of 1 total)

 *  Plugin Support [Michael Tiña](https://wordpress.org/support/users/mikes41720/)
 * (@mikes41720)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/typ-e_error-when-editing-menus/#post-14666911)
 * Hi [@ma_wordpressorg](https://wordpress.org/support/users/ma_wordpressorg/)
 * We’re sorry to hear that you’re encountering this error. Just to clarify, are
   you using the latest version of WordPress 5.7.2, Yoast Duplicate Post 4.1.2, 
   and the latest version of your other plugins and themes?
 * You mentioned that you were editing/updating your menus and you triggered this
   error when you clicked on the ‘save’ button. Are you using any sort of plugin
   to create a custom post type or is this a functionality in your theme to create
   these category menu items?
 * Could you give us more details (and possibly, some screenshots), such as the 
   plugins we’d need on exactly how to reproduce this issue from our end?

Viewing 1 replies (of 1 total)

The topic ‘Typ E_ERROR when editing menus’ 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/)

 * 1 reply
 * 2 participants
 * Last reply from: [Michael Tiña](https://wordpress.org/support/users/mikes41720/)
 * Last activity: [4 years, 10 months ago](https://wordpress.org/support/topic/typ-e_error-when-editing-menus/#post-14666911)
 * Status: resolved