flingo64 / PhotoStation-Upload-Lr-Plugin

Photo StatLr (aka PhotoStation Upload) is a Lightroom Publish and Export Service Plugin that enables the export /publishing of photos and videos from Lr to a Synology Photo Station. It uploads the photos/videos and all required thumbnails. It can download comments and ratings and do a real two-way synch of various metadata (tags, ratings, labels).
http://messmer-online.de/index.php/software/11-photo-statlr
GNU General Public License v3.0
209 stars 21 forks source link

Interner Fehler PSPhotosAPU.ua 1024 #71

Closed Feilner closed 1 year ago

Feilner commented 1 year ago

Ideen? image

flingo64 commented 1 year ago

It seems you are using v7.2.2. Please, update to 7.3.0, the bug was fixed recently.

Feilner commented 1 year ago

Thanks! I updated it and the error is gone! But I got a new one in context of exporting videos: image

Here is also the part of the Log fil

12:22:19, TRACE: Next photo: C:\Users\oliver\AppData\Local\Temp\21574465-3E5A-4EB9-9AFD-5D1606CF1225\1992.06
12:22:19, TRACE: getPhotoPluginMetaLinkedSharedAlbums(M:\Feivel\Videos\1992.06.27 Heubühl.mp4): Shared Albums plugin metadata: ''
12:22:19, DEBUG: removePhotoPluginMetaLinkedSharedAlbumForCollection(M:\Feivel\Videos\1992.06.27 Heubühl.mp4, {}): removing all Shared Albums for colletion '3194353'
12:22:19, TRACE: evaluatePlaceholderString(photo '1992.06.27 Heubühl.mp4', path 'Test', type 'path')
12:22:19, DEBUG:   sanitized dstRoot: 'Test', dstFilename '1992.06.27 Heubühl.06'
12:22:19, TRACE: getPublishPath('M:\Feivel\Videos\1992.06.27 Heubühl.mp4', 06, Flat, 'Test')
    returns '1992.06.27 Heubühl.06', 'Test/1992.06.27 Heubühl.06'
12:22:19, TRACE: Old publishedPhotoId: '<Nil>', New publishedPhotoId: 'Test/1992.06.27 Heubühl.06'
12:22:19, TRACE:   createTree: Src Path: ./Test from: . to: 
12:22:19, DEBUG:   createTree: dstDir is: Test
12:22:19, DEBUG: pathIdCacheGetEntry(user='0', path='/Test', 'folder') returns 'notCached'
12:22:19, DEBUG: pathIdCacheGetEntry(user='0', path='/', 'folder') returns 'notCached'
12:22:19, ERROR: That does it, I'm leaving! Internal error: '[string "PSPhotosAPI.lua"]:629: bad argument #1 to 'sub' (string expected, got nil)'
flingo64 commented 1 year ago

There seem to be two issues:

  1. there is an issue with the blank in the filename '1992.06.27 Heubühl.mp4': Lr derives only '1992.06' from it for the local rendered upload filename. so the plugin assumes the rendered extension to be '06' and applies this as extension to the target filename. This does not happen with Lr 6.14.
  2. pathIdCacheGetEntry(user='0', path='/', 'folder') returns 'notCached': this is a 'should-not-happen' case: the path cache is pre-filled with the root folder and ther should be no way to remove it. No idea how this can happen Can you retest with a video w/o blanks in the filename? If the second issue still exists, I would need the whole logfile including the exportParams listing.
flingo64 commented 1 year ago

Should be fixed in 7.3.x. Please re-open if the issue still exists