LavaLite / cms

Multilingual PHP CMS built with Laravel and bootstrap
https://lavalite.org
2.83k stars 962 forks source link

ErrorException(code: 0): compact(): Undefined variable: parent at /var/www/html/vendor/lavalite/framework/src/Litepie/Menu/Http/Controllers/SubMenuResourceController.php:32) #308

Open renepardon opened 4 years ago

renepardon commented 4 years ago

Looks like #283 is still not fixed/again a problem on a fresh installation. I tried to select a main navigation item within the admin panel and got this exception in my logs:

[2019-11-04 08:01:28] local.ERROR: compact(): Undefined variable: parent {"userId":1,"exception":"[object] (ErrorException(code: 0): compact(): Undefined variable: parent at /var/www/html/vendor/lavalite/framework/src/Litepie/Menu/Http/Controllers/SubMenuResourceController.php:32)
renepardon commented 4 years ago

Also on a fresh install when clicking on settings within the navbar:

compact(): Undefined variable: settings

triggered at: /var/www/html/vendor/lavalite/framework/src/Litepie/Settings/Http/Controllers/SettingResourceController.php

Edit: This was already mentioned in #307