[Loris-dev] 500 after login

Morales Pinzon, Alfredo AMORALESPINZON at BWH.HARVARD.EDU
Mon Feb 8 13:06:46 EST 2021


Dear LorisDev,

I am getting a 500 error after login into LORIS. This is what I can see in the logs:

===
[Mon Feb 08 12:57:54.559522 2021] [php7:error] [pid 8074] [client 216.15.126.108:61071] PHP Fatal error:  Uncaught TypeError: Return value of User::getFullname() must be of the type string, null returned in /var/www/loris/php/libraries/User.class.inc:236\nStack trace:\n#0 /var/www/loris/modules/dashboard/php/module.class.inc(118): User->getFullname()\n#1 /var/www/loris/modules/dashboard/php/module.class.inc(57): LORIS\\dashboard\\Module->_getWelcomeWidget(Object(Database), Object(NDB_Config), Object(User))\n#2 /var/www/loris/modules/dashboard/php/dashboard.class.inc(75): LORIS\\dashboard\\Module->getWidgets('dashboard', Object(User), Array)\n#3 /var/www/loris/php/libraries/Module.class.inc(275): LORIS\\dashboard\\Dashboard->__construct(Object(LORIS\\dashboard\\Module), 'dashboard', '', '', 'dashboard')\n#4 /var/www/loris/php/libraries/Module.class.inc(342): Module->loadPage('dashboard')\n#5 /var/www/loris/src/Middleware/ResponseGenerator.php(50): Module->handle(Object(Laminas\\Diactoros\\ServerRequest))\n#6 /var/www/loris/src/Middleware/AuthMiddleware.php(63): LORIS\\Middleware\\ResponseGenerator->process(Object(Laminas\\Diactoros\\Se in /var/www/loris/php/libraries/User.class.inc on line 236
===

Perhaps it is an issue with the name of the user? I created hundreds of users for batch insertion of candidates and visits for previous versions of LORIS that required insertion of Candidates and Visits by users belonging to a given center.

This is an entry in the users table without the hashed password:

===
*************************** 850. row ***************************
                    ID: 850
                UserID: 723-DKC-1_dataman
              Password: NULL
             Real_name: NULL
            First_name: NULL
             Last_name: NULL
                Degree: NULL
        Position_title: NULL
           Institution: NULL
            Department: NULL
               Address: NULL
                  City: NULL
                 State: NULL
              Zip_code: NULL
               Country: NULL
                 Phone: NULL
                   Fax: NULL
                 Email: 723-DKC-1_dataman at ipmsa.com<mailto:723-DKC-1_dataman at ipmsa.com>
             Privilege: 0
                 PSCPI: N
              DBAccess:
                Active: Y
         Password_hash: /REMOVED/
       Password_expiry: 2035-01-01
      Pending_approval: N
Doc_Repo_Notifications: N
   language_preference: NULL
           active_from: NULL
             active_to: NULL
===

Best,
Alfredo.
The information in this e-mail is intended only for the person to whom it is addressed. If you believe this e-mail was sent to you in error and the e-mail contains patient information, please contact the Mass General Brigham Compliance HelpLine at http://www.massgeneralbrigham.org/complianceline . If the e-mail was sent to you in error but does not contain patient information, please contact the sender and properly dispose of the e-mail.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.bic.mni.mcgill.ca/pipermail/loris-dev/attachments/20210208/e862b055/attachment.html>


More information about the Loris-dev mailing list