Menu

#2278 After upgrading from version 3.1.1 to 3.2.0, it is impossible to log in

Unassigned
new
nobody
None
Extension
Medium
3.2.0
defect
2024-09-16
2024-09-11
soulruins
No

After upgrading from version 3.1.1 to 3.2.0, only a user of the administrators group can log in. Temporarily managed to solve the problem by switching 'access_mode' to mode 2

Error log:

2024-09-11 11:04:52 | Error   | 14    | Uncaught TypeError: call_user_func(): Argument #1 ($callback) must be a valid callback, class "ResourceDesignerConnectorMenu" not found in /var/www/itop/core/userrights.class.inc.php:1623
Stack trace:
#0 /var/www/itop/env-production/molkobain-newsroom-provider/src/Extension/Hook/Console/PageProductBeam.php(103): UserRights::IsActionAllowed()
#1 /var/www/itop/sources/Application/WebPage/iTopWebPage.php(892): Molkobain\iTop\Extension\NewsroomProvider\Hook\Console\PageProductBeam->GetReadyScript()
#2 /var/www/itop/sources/Application/WebPage/iTopWebPage.php(838): Combodo\iTop\Application\WebPage\iTopWebPage->RenderContent()
#3 /var/www/itop/pages/UI.php(1515): Combodo\iTop\Application\WebPage\iTopWebPage->output()
#4 {main}
  thrown | IssueLog |||
array (
  'type' => 1,
  'file' => '/var/www/itop/core/userrights.class.inc.php',
  'line' => 1623,
)

Discussion

  • Vincent @ Combodo

    @molkobain
    This is weird as the class "ResourceDesignerConnectorMenu" does not exist in the iTop Community package

     
  • Molkobain

    Molkobain - 2024-09-11

    Hello @soulruins could you tell me which molkobain extensions you have and which versions?

    Thanks,
    Guillaume

     
    • soulruins

      soulruins - 2024-09-11

      itop-datacenter-view 1.14.0

       
    • Molkobain

      Molkobain - 2024-09-11

      Thanks for the reply, there is indeed a bug. I'll make a new version in the coming days but in the meantime you can fix it locally.

      • Edit the ITOP/data/deplyed-extensions/molkobain-datacenter-view/molkobain-newsroom-provider/src/Extension/Hook/Console/PageProductBeam.php
      • Replace the 2 line if (false === UserRights::IsAdministrator() && false === UserRights::IsActionAllowed('ResourceDesignerConnectorMenu', UR_ACTION_MODIFY)) {
      • With if (false === UserRights::IsAdministrator() && class_exists('ResourceDesignerConnectorMenu') && false === UserRights::IsActionAllowed('ResourceDesignerConnectorMenu', UR_ACTION_MODIFY)) {
      • Then run the setup again and it should be fixed.

      @cisou, it's regarding the absence of newsroom in the products.

       
      👍
      2
  • Molkobain

    Molkobain - 2024-09-16

    The official version / package with the fix can be downloaded directly on GitHub here, it will then be available on iTop Hub around December as they roll out updates every 3 months.

    Thanks for reporting the issue!

     

Log in to post a comment.