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,
)
@molkobain
This is weird as the class "ResourceDesignerConnectorMenu" does not exist in the iTop Community package
Hello @soulruins could you tell me which molkobain extensions you have and which versions?
Thanks,
Guillaume
itop-datacenter-view 1.14.0
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.
if (false === UserRights::IsAdministrator() && false === UserRights::IsActionAllowed('ResourceDesignerConnectorMenu', UR_ACTION_MODIFY)) {
if (false === UserRights::IsAdministrator() && class_exists('ResourceDesignerConnectorMenu') && false === UserRights::IsActionAllowed('ResourceDesignerConnectorMenu', UR_ACTION_MODIFY)) {
@cisou, it's regarding the absence of newsroom in the products.
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!