Closed t-lo closed 1 year ago
I'm not sure if AIO is affected too, but if it ships the same PHP version as the regular image it will.
AIO is not effected. It comes with PHP 8.1.
Which PHP version are you using?
Which PHP version are you using?
The one shipped with the latest nextcloud 26.0.2 docker image, as per the summary:
The Nextcloud 26.x container images ship with PHP version 8.2.6, and recent versions of the Maps app require 8.1 or lower.
From what I was able to test, if you upgrade to docker image v26 (which has PHP 8.2.7) and you already have the latest maps
version installed (1.0.2), it will continue to work.
If you, otherwise, start from a clean installation, the appstore will show the latest compatible version 0.1.10 (which I think didn't had any check on PHP version) that will not work. If you try to force the installation (which I did) by manually downloading the v1.0.2 inside the folders and enable it, you will have the following error:
./occ app:enable maps
App "Maps" cannot be installed because the following dependencies are not fulfilled: PHP with a version lower than 8.1 is required.
Is there any real limitations in using newer php versions, or it can simply be updated here? https://github.com/nextcloud/maps/blob/master/appinfo/info.xml#L37
Thanks @skjnldsv @tacruc
I proceeded to manually update the php max-version to 8.2 and tested the app on a newer installation and everyhing seems to work perfectly.
I proceeded to manually update the php max-version to 8.2 and tested the app on a newer installation and everyhing seems to work perfectly.
I can confirm that manually downloading 1.0.2, patching appinfo/info.xml
=> <php min-version="7.4" max-version="8.2"/>
and enabling maps via the command line does indeed work with the latest nextcloud 26.0.2 docker image. Installing, patching, and then trying to enable it via the web interface does not work.
⚠️ This issue respects the following points: ⚠️
Bug description
Maps is broken with Nextcloud container images version 26.0.2, and likely previous 26.0 releases too. The Nextcloud 26.x container images ship with PHP version 8.2.6, and recent versions of the Maps app require 8.1 or lower. I'm not sure if AIO is affected too, but if it ships the same PHP version as the regular image it will.
Oddly enough the integrated Nextcloud store offers an ancient version - 0.1.10 - to use with Nextcloud 26. Installing it works, but enabling it fails with
"Could not boot maps: Class \"OCP\AppFramework\Db\\Mapper" not found"
.Users who upgrade from 25.x to 26.x have no way of knowing that this will break their maps app as seemingly, a working app is available for 26.x. Only after upgrading users will notice Maps is not available to them anymore.
The current version is not offered at all after the upgrade. Manual installation of 1.0.2 cannot be enabled:
Effectively, Maps does not work for docker image users on 26.0.2.
Steps to reproduce
"Could not boot maps: Class \"OCP\\AppFramework\Db\\Mapper" not found"
Expected behavior
App can be installed via the integrated App store, activated, and used.
Installation method
Official Docker image
Operating system
Other
PHP engine version
Other
Web server
Apache (supported)
Database engine version
MySQL
Is this bug present after an update or on a fresh install of the server?
Updated to a major version (ex. 22.2.3 to 23.0.1)
Is this bug present after an update or on a fresh install of the app?
None
Are you using the Nextcloud Server Encryption module?
Encryption is Disabled
What user-backends are you using?
Configuration report
No response
List of activated Apps
Nextcloud Signing status
No response
Nextcloud Logs
No response
Browser Console
No response
Additional info
No response