Title: Error in new Adminimize
Last modified: December 1, 2023

---

# Error in new Adminimize

 *  Resolved [martenw](https://wordpress.org/support/users/martenw/)
 * (@martenw)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/error-in-new-adminimize/)
 * On line 285 of the file adminimize.php $post->ID should be replaced by $post_id

Viewing 12 replies - 1 through 12 (of 12 total)

 *  [koendoit](https://wordpress.org/support/users/koendoit/)
 * (@koendoit)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/error-in-new-adminimize/#post-17245429)
 * We are having the same error also looks like the line is a duplicate of the one
   below.
 *  [niksap](https://wordpress.org/support/users/niksap/)
 * (@niksap)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/error-in-new-adminimize/#post-17245885)
 * Same error for me, should I correct the line or wait for update ? thanks
 *  [madone](https://wordpress.org/support/users/madone/)
 * (@madone)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/error-in-new-adminimize/#post-17246073)
 * Same error since last update.
   Moreover, at line 272, import of global $menu and
   $submenu is not necessary.
    -  This reply was modified 2 years, 6 months ago by [madone](https://wordpress.org/support/users/madone/).
 *  [Antipole](https://wordpress.org/support/users/antipole/)
 * (@antipole)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/error-in-new-adminimize/#post-17246098)
 * I am seeing this line 285 error too.
 *  Plugin Contributor [Frank Bueltge](https://wordpress.org/support/users/bueltge/)
 * (@bueltge)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/error-in-new-adminimize/#post-17247101)
 * I mean there is no error, it is a notice from php; right for you?
   Because you
   should not see php notices in a production environment. However, please reinstall
   the plugin with the last version and look again for this notice. Thanks for your
   patience.
 *  [Antipole](https://wordpress.org/support/users/antipole/)
 * (@antipole)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/error-in-new-adminimize/#post-17247112)
 * Frank… yes you are correct – it is a warning and not an error.
 * But warnings often develop into issues, so thanks for the fix.
    -  This reply was modified 2 years, 6 months ago by [Antipole](https://wordpress.org/support/users/antipole/).
 *  [niksap](https://wordpress.org/support/users/niksap/)
 * (@niksap)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/error-in-new-adminimize/#post-17248469)
 * Hello,
 * I have Version 1.11.10 installed and auto-updates enabled and I still see the
   warnings
 *  [intowernet](https://wordpress.org/support/users/intowernet/)
 * (@intowernet)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/error-in-new-adminimize/#post-17250884)
 * Frank,
 * I love this plugin and use it on a lot of sites and it appears you have already
   fixed the issue because deleting and reinstalling the same version of the plugin
   does works however this causes a lot of problems as all of our sites will lose
   their settings and each site will have to be done individually (even though we
   use the Import option). This will be a tremendous amount of work.
 * I admit I am not a programmer nor do I know much about how plugins are created
   or updated but I think it it would have been better for everyone if you would
   just issue a updated version so we don’t lose our settings.
 * For those who do not want to lose their settings the issue I found at line 285
   is:
 * wrong:
   $current_post_type = get_post_type($post->ID);
 * right:
   $current_post_type = get_post_type( get_queried_object_id() );
 * Again, I admit I may not know what I am talking about but without an updated 
   version this is going to be a real pain for many of us.
 * Thank you for all of the hard work you have put into this plugin. I don’t know
   what I would do without it.
 * David
    -  This reply was modified 2 years, 6 months ago by [intowernet](https://wordpress.org/support/users/intowernet/).
 *  [raulgarciaherrera](https://wordpress.org/support/users/raulgarciaherrera/)
 * (@raulgarciaherrera)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/error-in-new-adminimize/#post-17254085)
 * Same issue..
 * These are my warnings:
 * ![](https://i0.wp.com/i.ibb.co/ZVFhDv2/Captura-de-pantalla-2023-12-05-150249.
   png?ssl=1)
 * Hope it helps ..
 * Regards!
 *  Thread Starter [martenw](https://wordpress.org/support/users/martenw/)
 * (@martenw)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/error-in-new-adminimize/#post-17254115)
 * Frank repaired the warning, but did not change the version number, so no update
   will be done.
 *  [raulgarciaherrera](https://wordpress.org/support/users/raulgarciaherrera/)
 * (@raulgarciaherrera)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/error-in-new-adminimize/#post-17254154)
 * Ah, sorry.. thank you (and Frank, of course).. will delete and reinstall it, 
   then..
 *  [A. Albrecht](https://wordpress.org/support/users/alexander-albrecht/)
 * (@alexander-albrecht)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/error-in-new-adminimize/#post-17368503)
 * Deleting it and reinstalling did not work for me. Same error since weeks. Got
   80 site under my control. Kind of a bummer to change the plugin on all sites.
   Although I use a management solution for these sites.
 * There should be a new version to solve the problem.
    -  This reply was modified 2 years, 4 months ago by [A. Albrecht](https://wordpress.org/support/users/alexander-albrecht/).

Viewing 12 replies - 1 through 12 (of 12 total)

The topic ‘Error in new Adminimize’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/adminimize_000000.svg)
 * [Adminimize](https://wordpress.org/plugins/adminimize/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/adminimize/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/adminimize/)
 * [Active Topics](https://wordpress.org/support/plugin/adminimize/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/adminimize/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/adminimize/reviews/)

 * 12 replies
 * 9 participants
 * Last reply from: [A. Albrecht](https://wordpress.org/support/users/alexander-albrecht/)
 * Last activity: [2 years, 4 months ago](https://wordpress.org/support/topic/error-in-new-adminimize/#post-17368503)
 * Status: resolved