wp-media / adminimize

Adminimize is a WordPress plugin that lets you hide 'unnecessary' items from the WordPress backend.
https://wordpress.org/plugins/adminimize/
GNU General Public License v2.0
100 stars 31 forks source link

Some warnings after updating to version 1.11.10 #161

Closed chriscapisce closed 9 months ago

chriscapisce commented 9 months ago

Dear @bueltge,

After updating to the last version 1.11.10. I see the following warnings appear in my dashboard Wordpress Version 6.4.1.

`Warning: Undefined variable $post in /home/customer/www/example.nl/public_html/wp-content/plugins/example/adminimize.php on line 285

Warning: Attempt to read property "ID" on null in /home/customer/www/example.nl/public_html/wp-content/plugins/adminimize/adminimize.php on line 285

Warning: Cannot modify header information - headers already sent by (output started at /home/customer/www/example.nl/public_html/wp-content/plugins/adminimize/adminimize.php:285) in /home/customer/www/example.nl/public_html/wp-admin/includes/misc.php on line 1431`

Kind regards,

Chris

bueltge commented 9 months ago

Reinstall the current version and try it again. However you should not see warnings in a productive environment.

I hope the reinstall will help.

chriscapisce commented 9 months ago

I just installed the github version. It didn't replace the current one but installed next to it. After deactivating the previous one and activating the github version it was solved. Thanks for your suggestion!