ErrorException – Attempt to read property “base” on null
-
Hello,
I got this error when I tried to add something to the Menu.exception: "ErrorException"
file: "../web/app/plugins/instant-images/instant-images.php"
line: 273
message: "Attempt to read property \"base\" on null"
I changed the line from:$current_screen = is_admin() && function_exists('get_current_screen') ? get_current_screen()->base : ''; // Current admin screen.
to: (adding null safe operator)$current_screen = is_admin() && function_exists('get_current_screen') ? get_current_screen()?->base : ''; // Current admin screen.
but I know that it’s just a temporary solution.
If you need further details just let me know and I’ll be more than happy to provide everything you need to re-create issue on your end.
Best regards,
Rafnexx
You must be logged in to reply to this topic.