julien-nc / gpxpod

Nextcloud app to view gpx track files
GNU Affero General Public License v3.0
40 stars 3 forks source link

elevation correction error #12

Closed Synochy closed 1 year ago

Synochy commented 1 year ago

When using the elevation correction feature. The feature fails and there is the following error in the server logbook: Optional parameter $recursive declared before required parameter $directoryId is implicitly treated as a required parameter at /var/www/nextcloud/apps/gpxpod/lib/Service/ProcessService.php#803

julien-nc commented 1 year ago

Thanks for the bug report. Could you try to just remove the default value for $recursive on gpxpod/lib/Service/ProcessService.php line 803?

public function getGeoPicsFromFolder(string $userId, string $subfolder, bool $recursive = false, int $directoryId): array {

should become

public function getGeoPicsFromFolder(string $userId, string $subfolder, bool $recursive, int $directoryId): array {

And then confirm the issue goes away on your side?

Synochy commented 1 year ago

I do not have error in the logbook anymore but the elevation correction still fails with the following message: image

Synochy commented 1 year ago

Any other idea to fix the problem ?

Synochy commented 1 year ago

I corrected my problem by unstalling and installing again the app