[horde] A Haystack at installing Horde 6 with Composer

Lang, Ralf ralf.lang at gmail.com
Sat Jan 13 19:32:45 UTC 2024


Am 13/01/2024 um 20:20 schrieb Andreas Mauser:
> Am 13. Januar 2024 um 13:36 schrieb "Andreas Mauser"<andreas at mauser.info>:
>
>
>
>> Am 13. Januar 2024 um 09:00 schrieb "Andreas Mauser"<andreas at mauser.info>:
>>
>>> Am 12. Januar 2024 um 22:51 schrieb "Lang, Ralf"<ralf.lang at gmail.com>:
>>>
>>>   
>>>
>>>   
>>>
>>>   Am 12/01/2024 um 19:26 schrieb Lang, Ralf:
>>>
>>>   
>>>
>>>   
>>>
>>>   
>>>
>>>   
>>>
>>>   
>>>
>>>   Hi Andreas,
>>>
>>>   
>>>
>>>   
>>>
>>>   
>>>
>>>   >
>>>
>>>   
>>>
>>>   > The error:
>>>
>>>   
>>>
>>>   >
>>>
>>>   
>>>
>>>   > 2024-01-12T18:00:00+00:00 DEBUG: HORDE [horde] PHP ERROR: strrpos():
>>>
>>>   
>>>
>>>   >
>>>
>>>   
>>>
>>>   > Passing null to parameter #1 ($haystack) of type string is deprecated
>>>
>>>   
>>>
>>>   >
>>>
>>>   
>>>
>>>   > [pid 552 on line 221 of
>>>
>>>   
>>>
>>>   >
>>>
>>>   
>>>
>>>   > "/var/www/html/post/vendor/horde/core/lib/Horde.php"]
>>>
>>>   
>>>
>>>   >
>>>
>>>   
>>>
>>>   > 2024-01-12T18:05:15+00:00 DEBUG: HORDE [horde] PHP ERROR: strrpos():
>>>
>>>   
>>>
>>>   >
>>>
>>>   
>>>
>>>   > Passing null to parameter #1 ($haystack) of type string is deprecated
>>>
>>>   
>>>
>>>   >
>>>
>>>   
>>>
>>>   > [pid 552 on line 221 of
>>>
>>>   
>>>
>>>   >
>>>
>>>   
>>>
>>>   > "/var/www/html/post/vendor/horde/core/lib/Horde.php"]
>>>
>>>   
>>>
>>>   >
>>>
>>>   
>>>
>>>   
>>>
>>>   
>>>
>>>   Thank you for sending the log. I will look into this - should be easy
>>>
>>>   
>>>
>>>   
>>>
>>>   
>>>
>>>   enough to find and fix.
>>>
>>>   
>>>
>>>   
>>>
>>>   
>>>
>>>   
>>>
>>>   
>>>
>>>   Fix deprecation warning reported by Andreas Mauser. ยท horde/Core at 37dcb14
>>>
>>>   
>>>
>>>   
>>>
>>>   
>>>
>>>   (github.com)
>>>
>>>   
>>>
>>>   
>>>
>>>   
>>>
>>>   <https://github.com/horde/Core/commit/37dcb14ad37110100ae8be6758a6b40bd75caacc>  https://github.com/horde/Core/commit/37dcb14ad37110100ae8be6758a6b40bd75caacc%3E   https://github.com/horde/Core/commit/37dcb14ad37110100ae8be6758a6b40bd75caacc%3E  https://github.com/horde/Core/commit/37dcb14ad37110100ae8be6758a6b40bd75caacc%3E  
>>>
>>>   
>>>
>>>   
>>>
>>>   
>>>
>>>   This will be in the next alpha release. If you want to test it right
>>>
>>>   
>>>
>>>   
>>>
>>>   
>>>
>>>   now, run
>>>
>>>   
>>>
>>>   
>>>
>>>   
>>>
>>>   composer require horde/core dev-FRAMEWORK_6_0
>>>
>>>   
>>>
>>>   
>>>
>>>   I did just now and
>>>
>>>   
>>>
>>>   # composer require horde/core dev-FRAMEWORK_6_0
>>>
>>>   
>>>
>>>   Do not run Composer as root/super user! Seehttps://getcomposer.org/root  for details
>>>
>>>   
>>>
>>>   Continue as root/super user [yes]? yes
>>>
>>>   
>>>
>>>   ./composer.json has been updated
>>>
>>>   
>>>
>>>   Running composer update horde/core
>>>
>>>   
>>>
>>>   Loading composer repositories with package information
>>>
>>>   
>>>
>>>   Updating dependencies
>>>
>>>   
>>>
>>>   Your requirements could not be resolved to an installable set of packages.
>>>
>>>   
>>>
>>>   Problem 1
>>>
>>>   
>>>
>>>   - horde/mnemo is locked to version v5.0.0alpha7 and an update of this package was not requested.
>>>
>>>   
>>>
>>>   - horde/mnemo v5.0.0alpha7 requires horde/core ^3 -> found horde/core[3.0.0alpha1, ..., v3.0.0alpha16] but it conflicts with your root composer.json require (dev-FRAMEWORK_6_0).
>>>
>>>   
>>>
>>>   Problem 2
>>>
>>>   
>>>
>>>   - horde/turba is locked to version v5.0.0alpha8 and an update of this package was not requested.
>>>
>>>   
>>>
>>>   - horde/turba v5.0.0alpha8 requires horde/core ^3 -> found horde/core[3.0.0alpha1, ..., v3.0.0alpha16] but it conflicts with your root composer.json require (dev-FRAMEWORK_6_0).
>>>
>>>   
>>>
>>>   Problem 3
>>>
>>>   
>>>
>>>   - horde/form v3.0.0alpha5 requires horde/core ^3 -> found horde/core[3.0.0alpha1, ..., v3.0.0alpha16] but it conflicts with your root composer.json require (dev-FRAMEWORK_6_0).
>>>
>>>   
>>>
>>>   - horde/nag v5.0.0alpha5 requires horde/form ^3 || dev-FRAMEWORK_6_0 -> satisfiable by horde/form[v3.0.0alpha5].
>>>
>>>   
>>>
>>>   - horde/nag is locked to version v5.0.0alpha5 and an update of this package was not requested.
>>>
>>>   
>>>
>>>   Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.
>>>
>>>   
>>>
>>>   Installation failed, reverting ./composer.json and ./composer.lock to their original content.
>>>
>>>   
>>>
>>>   I run as root as for this test install I dont care.
>>>
>>>   
>>>
>>>   Hope its not a problem at the end.
>>>
>> As you are constantly working on it, I tried today and git the following and I hope it helps debugging.
>>
>> Your requirements could not be resolved to an installable set of packages.
>>
>>   Problem 1
>>
>>   - horde/mnemo is locked to version v5.0.0alpha7 and an update of this package was not requested.
>>
>>   - horde/mnemo v5.0.0alpha7 requires horde/core ^3 -> found horde/core[3.0.0alpha1, ..., v3.0.0alpha16] but it conflicts with your root composer.json require (dev-FRAMEWORK_6_0).
>>
>>   Problem 2
>>
>>   - horde/turba is locked to version v5.0.0alpha8 and an update of this package was not requested.
>>
>>   - horde/turba v5.0.0alpha8 requires horde/core ^3 -> found horde/core[3.0.0alpha1, ..., v3.0.0alpha16] but it conflicts with your root composer.json require (dev-FRAMEWORK_6_0).
>>
>>   Problem 3
>>
>>   - horde/form v3.0.0alpha5 requires horde/core ^3 -> found horde/core[3.0.0alpha1, ..., v3.0.0alpha16] but it conflicts with your root composer.json require (dev-FRAMEWORK_6_0).
>>
>>   - horde/nag v5.0.0alpha5 requires horde/form ^3 || dev-FRAMEWORK_6_0 -> satisfiable by horde/form[v3.0.0alpha5].
>>
>>   - horde/nag is locked to version v5.0.0alpha5 and an update of this package was not requested.
>>
>
> looks like only one Problem last to solve
>
>
> Your requirements could not be resolved to an installable set of packages.
>
>    Problem 1
>      - Root composer.json requires horde/core dev-FRAMEWORK_6_0 -> satisfiable by horde/core[dev-FRAMEWORK_6_0].
>      - horde/core dev-FRAMEWORK_6_0 requires horde/alarm ^3 || dev-FRAMEWORK_6_0 -> found horde/alarm[dev-FRAMEWORK_6_0, 3.0.0alpha1, 3.0.0alpha2, v3.0.0alpha3, v3.0.0alpha4] but it does not match your minimum-stability.
>
>
> Installation failed, deleting ./composer.json.

The relevant part is "it does not match your minimum-stability."

Go to your root directory (the one which contains the vendor/ folder and 
the web/ folder) and enter

COMPOSER_ALLOW_SUPERUSER=1 composer config minimum-stability dev 
COMPOSER_ALLOW_SUPERUSER=1 composer require horde/core 
"dev-FRAMEWORK_6_0 as 3.0.0alpha17" -W

BTW you can add to your ~/.bashrc the line

export COMPOSER_ALLOW_SUPERUSER=1

This will disable the annoying prompt if you really want to run composer 
as root. However, if you install stuff as root, you need to make sure to 
change ownership or permissions for some dirs which must be writable for 
the php process - which means either wwwrun:www (SLES and OpenSUSE), 
www-data:www-data (Debian, Ubuntu) or whatever UID PHP-FPM runs under.


More information about the horde mailing list