Menu

Cannot disable newsroom in ITOP 3.0 - causes exception

2022-02-04
2022-02-05
  • Cordeos-Twenty-Two

    Immediately after adding the configuration parameter:
    'newsroom_enabled' => false,
    The back-office interface throws a web-error and dies:
    "iTop: An error occurred, check server error log for more information."

    Resulting error log trace:
    Uncaught Error: Call to a member function GetId() on null in xxxxxx/itop/sources/application/UI/Base/Layout/NavigationMenu/NavigationMenu.php:256

    The relevant code in NavigationMenu.php (line 256)

        public function GetSubBlocks(): array
        {
            return [$this->oUserMenu->GetId() => $this->oUserMenu, $this->GetNewsroomMenu()->GetId() => $this->GetNewsroomMenu()];
        }
    

    There needs to be a boolean 'if newsroom enabled' wrapper on this.

    of course, if we just axe the newsroom menu call here, everything works fine again.

        //return [$this->oUserMenu->GetId() => $this->oUserMenu, $this->GetNewsroomMenu()->GetId() => $this->GetNewsroomMenu()];
        return [$this->oUserMenu->GetId() => $this->oUserMenu];
    
     
  • Guillaume Lajarige

    Hello,

    Thank you very much for pointing that out! I'll add it to the internal bug tracker and will keep you updated.

    Cheers,
    Guillaume

     
  • Guillaume Lajarige

    Tracked under N°4751 and fixed with af5a0d5. Will be part of the upcoming 3.0.1.

    Again thank you for that. Could you send me your fullname and postal address via PM? We like to send you thank you stickers 😊

    Cheers,
    Guillaume

     
  • Cordeos-Twenty-Two

    Thank you for picking this up so quickly!
    We are just beginning to fully explore and test ITOP 2.7 and 3.0 with our UI and LINUX developers together with a small set of our experienced group of techincal team users for real-world testing.

    We are glad to help where we can... which is thanks enough.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.