kongondo / MenuBuilder

Easily create navigation lists/menus using drag and drop
GNU General Public License v2.0
21 stars 8 forks source link

method_exists(): Argument #1 ($object_or_class) must be of type object|string, null given #48

Open Theominator opened 2 years ago

Theominator commented 2 years ago

Hi @kongondo ,

after setting some of our PHP environments to 8.0, we registered an error on deleting menu items (ProcessWire 3.0.200, MenuBuilder 0.2.7, Multi-language):

method_exists(): Argument #1 ($object_or_class) must be of type object|string, null given in line 2602 in ProcessMenuBuilder.module. To prevent this, a check for item related page existence was successful:

if (!$itemID || !$pages->get($itemID)->id) continue;

Could you publish a bug fix release für this issue, please?

Thanks in advance,

Thomas from xport.

WebWorkingMan commented 1 year ago

Run into the same error - see: https://processwire.com/talk/topic/4451-menu-builder/?do=findComment&comment=231245

@Theominator your FIX is working for me 👍 Thanks!