diff --git a/lizmap/definitions/lizmap_cloud.py b/lizmap/definitions/lizmap_cloud.py
index d6ea29a8..88a642c2 100644
--- a/lizmap/definitions/lizmap_cloud.py
+++ b/lizmap/definitions/lizmap_cloud.py
@@ -8,3 +8,5 @@
CLOUD_ONLINE_URL = 'https://docs.lizmap.cloud'
CLOUD_ONLINE_LANGUAGES = ('en', 'fr')
+
+CLOUD_QGIS_MIN_RECOMMENDED = 32800
diff --git a/lizmap/plugin.py b/lizmap/plugin.py
index e0a4e505..9b8d36a2 100755
--- a/lizmap/plugin.py
+++ b/lizmap/plugin.py
@@ -84,7 +84,11 @@
from lizmap.definitions.filter_by_login import FilterByLoginDefinitions
from lizmap.definitions.filter_by_polygon import FilterByPolygonDefinitions
from lizmap.definitions.layouts import LayoutsDefinitions
-from lizmap.definitions.lizmap_cloud import CLOUD_MAX_PARENT_FOLDER, CLOUD_NAME
+from lizmap.definitions.lizmap_cloud import (
+ CLOUD_MAX_PARENT_FOLDER,
+ CLOUD_NAME,
+ CLOUD_QGIS_MIN_RECOMMENDED,
+)
from lizmap.definitions.locate_by_layer import LocateByLayerDefinitions
from lizmap.definitions.online_help import (
MAPPING_INDEX_DOC,
@@ -3232,7 +3236,7 @@ def project_config_file(
if is_lizmap_cloud(server_metadata):
if self.dlg.current_server_info(ServerComboData.LwcBranchStatus.value) == ReleaseStatus.Retired:
- QMessageBox.information(
+ QMessageBox.warning(
self.dlg,
CLOUD_NAME,
tr(
@@ -3259,6 +3263,37 @@ def project_config_file(
QMessageBox.Ok
)
+ qgis_server_info = server_metadata.get('qgis_server_info')
+ md = qgis_server_info.get('metadata')
+ if md.get('version_int') < CLOUD_QGIS_MIN_RECOMMENDED:
+ QMessageBox.warning(
+ self.dlg,
+ CLOUD_NAME,
+ tr(
+ 'You current server {server_url} is running '
+ 'QGIS Server {version}.'
+ ).format(
+ server_url=self.dlg.current_server_info(ServerComboData.ServerUrl.value),
+ version=md.get('version'),
+ )
+ + "
"
+ + tr(
+ 'This version of QGIS Server has now reached its end of life and is not supported '
+ 'anymore by QGIS.org since February 2023, see the '
+ ''
+ 'QGIS roadmap'
+ '.'
+ )
+ + "
"
+ + tr(
+ 'Please visit your administration panel in your web browser, in the dashboard, and '
+ 'ask for the update.'
+ )
+ + "
"
+ + tr('This is not blocking your current usage of the plugin, only to advise you.'),
+ QMessageBox.Ok
+ )
+
metadata = {
'qgis_desktop_version': qgis_version(),
'lizmap_plugin_version_str': current_version,