[Loris-dev] upgrading LORIS v22 - v23 error

Tom Beaudry waveflux at gmail.com
Thu Feb 4 15:05:23 EST 2021


Hey Shen,

I downgraded to php 7.4 and get the same results.

What can i try next?
Tom

On Thu, Feb 4, 2021 at 2:01 PM Shen Wang <wangshen.mcin at gmail.com> wrote:

> Hi Tom,
> We don't support PHP 8 with Loris yet. We are working on it.  For the
> 23.0-release, you have to use PHP 7.3 or 7.4.
> Best
> Shen
>
> On Thu, 4 Feb 2021 at 13:50, Tom Beaudry <waveflux at gmail.com> wrote:
>
>> Hey Shen,
>>
>> Unfortunately it didn't work.  Here's the output:
>> https://pastebin.com/raw/ZQjPuAG1
>>
>> I'm using php8.
>>
>> Thanks,
>> Tom
>>
>> On Thu, Feb 4, 2021 at 1:40 PM Shen Wang <wangshen.mcin at gmail.com> wrote:
>>
>>> Hi Tom,
>>> You are welcome. I think that you need to remove all the vendor files.
>>> Try  step 1: "make clean"    (delete all the vendor and node_modules)
>>>        step 2: "make"             ( run composer install and npm install
>>> ...)
>>> If it still can't work, could you tell me which PHP version are
>>> you using?
>>> Best
>>> Shen
>>>
>>> On Thu, 4 Feb 2021 at 13:29, Tom Beaudry <waveflux at gmail.com> wrote:
>>>
>>>> Hi Shen,
>>>>
>>>> Thanks for the answer:  Composer install gives me the following error:
>>>>
>>>> [lorisadmin at loris loris]$ composer install
>>>> PHP Deprecated:  Required parameter $ignoreFilters follows optional
>>>> parameter $packageName in
>>>> phar:///usr/local/bin/composer/src/Composer/Command/ArchiveCommand.php on
>>>> line 97
>>>>
>>>> Deprecated: Required parameter $ignoreFilters follows optional
>>>> parameter $packageName in
>>>> phar:///usr/local/bin/composer/src/Composer/Command/ArchiveCommand.php on
>>>> line 97
>>>> Deprecation Notice: Required parameter $path follows optional parameter
>>>> $schema in
>>>> phar:///usr/local/bin/composer/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/UndefinedConstraint.php:53
>>>> Deprecation Notice: Required parameter $path follows optional parameter
>>>> $schema in
>>>> phar:///usr/local/bin/composer/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/UndefinedConstraint.php:97
>>>>
>>>>
>>>>   [ErrorException]
>>>>   Trying to access array offset on value of type null
>>>>
>>>> Best,
>>>> Tom
>>>>
>>>>
>>>> On Thu, Feb 4, 2021 at 1:13 PM Shen Wang <wangshen.mcin at gmail.com>
>>>> wrote:
>>>>
>>>>> Hi Tom,
>>>>> You need to re-run " composer install " to solve this issue.
>>>>> Good Luck.
>>>>> Best
>>>>> Shen
>>>>>
>>>>> On Thu, 4 Feb 2021 at 13:01, Tom Beaudry <waveflux at gmail.com> wrote:
>>>>>
>>>>>> Hey Guys,
>>>>>>
>>>>>> I decided to upgrade LORIS v22 to v23 and I ran into this apache
>>>>>> error when i navigate to the homepage in my web browser:
>>>>>>
>>>>>> [Thu Feb 04 12:52:22.608901 2021] [php7:warn] [pid 5215] [client
>>>>>> 172.16.253.6:62122] PHP Warning:  session_start(): Setting option
>>>>>> 'cookie_samesite' failed in
>>>>>> /var/www/loris/php/libraries/NDB_Client.class.inc on line 147
>>>>>>
>>>>>> [Thu Feb 04 12:52:22.610434 2021] [php7:error] [pid 5215] [client
>>>>>> 172.16.253.6:62122] PHP Fatal error*:  Uncaught Error: Class
>>>>>> 'Laminas\\Diactoros\\ServerRequestFactory'* not found in
>>>>>> /var/www/loris/htdocs/index.php:35\nStack trace:\n#0 {main}\n  thrown in
>>>>>> /var/www/loris/htdocs/index.php on line 35
>>>>>>
>>>>>>
>>>>>> It seems that the server request is failing:
>>>>>>
>>>>>> $serverrequest = \Laminas\Diactoros\ServerRequestFactory::fromGlobals
>>>>>> ();
>>>>>> 36
>>>>>> <https://github.com/aces/Loris/blob/11e6780c0d0e2f4e33ee915f8258f9222c314892/htdocs/index.php#L36>
>>>>>> Any help would be greatly appreciated!
>>>>>> Tom
>>>>>> _______________________________________________
>>>>>> Loris-dev mailing list
>>>>>> Loris-dev at bic.mni.mcgill.ca
>>>>>> https://mailman.bic.mni.mcgill.ca/mailman/listinfo/loris-dev
>>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Shen Wang
>>>>> Loris <https://github.com/aces/Loris>  Developer
>>>>> Montreal Neurological Institute
>>>>> McGill University
>>>>>
>>>>>
>>>
>>> --
>>> Shen Wang
>>> Loris <https://github.com/aces/Loris>  Developer
>>> Montreal Neurological Institute
>>> McGill University
>>>
>>>
>
> --
> Shen Wang
> Loris <https://github.com/aces/Loris>  Developer
> Montreal Neurological Institute
> McGill University
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.bic.mni.mcgill.ca/pipermail/loris-dev/attachments/20210204/71073997/attachment.html>


More information about the Loris-dev mailing list