Open rnaujack opened 1 year ago
I am experiencing the same issue, but the solution provided did not work in my case. I get the same error, but it now references line 364 instead of line 136.
I've forgotten the second change i've made:
line 364:
$text = str_replace($trello, $nextcloud, $text);
instead of
$text = str_replace($trello, $nextcloud->getUID(), $text);
Thank you for sharing the additional change. I made the same changes as you, and it worked for me as well. I tried on a very small board, so I might give it another shot on a larger board at a later time.
I will note for anyone else looking for the config file mine was in a slightly different location.
/var/www/nextcloud/apps/deck/lib/Service/Importer/Systems/TrelloJsonService.php
I had the same problem and the proposed changes solved it. Thanks @rnaujack.
Would be great to add this change to the repo!
I got this issue with TrelloJson and TrelloApi, this change fixed it for TrelloApi (I didn't bother trying TrelloJson after going to the trouble of setting up trelloapi thinking that might be the root cause before I found this)
thanks @rnaujack ! It worked also on my side. (Use TrelloAPI importer on NC 28.0.4 - Deck 1.12.2). Fancy making a PR with your fix? That'd be great.
I confirm,
after backup cp -p TrelloJsonService.php TrelloJsonService.php_bak
in mentioned document it is necessary to remove ->getUID()
twice.
line 136 and line 364
to find the mentioned document use this bullshit:
[root@antcloud nextcloud]# pwd && find -type f -name TrelloJsonService.php
/var/www/html/nextcloud
./apps/deck/lib/Service/Importer/Systems/TrelloJsonService.php
While importing with occ deck:import --system=TrelloJson --config=cofig.json --data=trello.json
the import aborted after partial import with this error: "Call to a member function getUID() on string in /var/www/html/custom_apps/deck/lib/Service/Importer/Systems/TrelloJsonService.php:136"
To reproduce this error the trello.json file must contain an action with "type": "commentCard".
Nextcloud version: 27.1.0.
Where did you install Nextcloud from: all-in-one
Signing status:
List of activated apps:
Nextcloud configuration:
Logs
#### Nextcloud log (data/nextcloud.log) ``` ``` #### Browser log ``` ```And i've fixed it for me changing the file /var/www/html/custom_apps/deck/lib/Service/Importer/Systems/TrelloJsonService.php
line136:
instead of