Skip to content

[Bug]: /admin/qgis_projects crashes if QGS project has no last save data time ? #6085

@kaloyan13

Description

@kaloyan13

What is the bug? (in English)

Opening /admin/qgis_projects gives "Error 500. A technical error has occured. Sorry for this trouble."

I managed to view the page by returing a default date string:

public function getLastSaveDateTime(): string
    {
        #return $this->lastSaveDateTime;
        return $this->lastSaveDateTime || '0000-00-00 0:0:0';
    }

Steps to reproduce the issue

  1. Install release 3.9.2 in Ubuntu 24.04
  2. Login with admin user and view /admin/qgis_projects

Versions, safeguards, check summary etc

Lizmap Web Client - 3.9.2
QGIS Server - 3.44.3 - 1d1d67e9edd
Py-QGIS-Server - 1.9.6

Plugins:
atlasprint Help 3.4.3
Lizmap server Help 2.14.0
wfsOutputExtension Help 1.8.3

Check Lizmap plugin

  • I have done the step just before in the Lizmap QGIS desktop plugin before opening this ticket. Otherwise, my ticket is not considered valid and might get closed.

Operating system

Ubuntu 24.04

Browsers

Firefox

Browsers version

Firefox 143 for Linux x64

Relevant log output

2025-09-21 18:58:42	[0]	Lizmap\Project\QgisProject::getLastSaveDateTime(): Return value must be of type string, null returned	/var/www/lizmap-web-client-3.9.2/lizmap/modules/lizmap/lib/Project/QgisProject.php	359

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions