-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Carnet app broken in Nextcloud 28.0.1 #214
Comments
Hello. I experience the same error and have had to disable Carnet for now. |
Same issue with the webUI here, unfortunately. I had the same issue on 28.0.0. Same details as @goddib Just upgrade NC, Try opening Carnet from the top nav bar, and get an error. |
Here is a fix to at least be able to view the notes. Doesn't fix everything yet! Edit the file "custom_apps/carnet/lib/Controller/PageController.php" Replace Line 34, 62, 79, 107, 123 and 137 with: 'app_version' => $this->appManager->getAppInfo($this->appName)['version'], Add between Line 5 and 6: use OCP\App\IAppManager; Replace Constructor (Line 15 - 19) with: private $appManager;
public function __construct($AppName, IRequest $request,IAppManager $AppManager, $UserId, $Config){
parent::__construct($AppName, $request);
$this->userId = $UserId;
$this->config = $Config;
$this->appManager = $AppManager;
} Edit the file "custom_apps/carnet/lib/Controller/NoteController.php" Replace Line 244 with: $current = $this->appManager->getAppInfo($this->appName)['version']; Add between Line 5 and 6: use OCP\App\IAppManager; Replace Constructor (Line 48-50) with: private $appManager;
public function __construct($AppName, IRequest $request, IAppManager $AppManager, $UserId, $RootFolder, $Config, IDBConnection $IDBConnection, IURLGenerator $urlGenerator){
parent::__construct($AppName, $request);
$this->userId = $UserId;
$this->appManager = $AppManager; |
@joshua-schnabel This is an awesome start. I was, at least, able to see the notes as you mentioned which is better than the crash seen before. Thanks for looking into this! |
Thank you @joshua-schnabel Same here--this got it up and running. The "Latest" tab might be a little broken (no entries shown), but the "browser" tab works. So don't take this the wrong way--I have a lot of respect for the devs running projects like this. A big thank you to those who have gotten Carnet this far! It's an involved and thankless job. And on top of that, life happens. But at this point, do you folks think I should be migrating my data and users away from Carnet? This is starting to look a little like abanbonware, Thanks! Edit: I can't even support the devs anymore. The donation link is broken. (see issue 138 under CarnetApp: CarnetApp/CarnetDocumentation#138 ) |
Thank you @joshua-schnabel - I had also started looking into updating the code but I am inexperienced so I had not gotten as far as you to get it running again. For me all tabs work now. @CyberMinion I am also wondering, but there seems to be no alternative out there. |
My config file only has about 180 lines. I applied as many of these fixes as I could but it didnt allow me to see my notes :/ |
Last summer, the dev didn't even want donations. He was certain to continue the project though. I really wish we could get this app up to date with everything because it absolutely blows the stock notes app out of the water. |
I can confirm this renders the Carnet overview page again in NC 28.0.1. But this fixes only the previews of the notes, opening them in full or editing them results in a loading-loop. Thanks @joshua-schnabel for highlighting this promising start! Can you elaborate what you think is happening here? I may want to dive in for a proper fix at a later time. |
@Playnary I can confirm that with the above mentioned fix Carnet loads in Nextcloud. The overview as well as the individual notes. May I ask if you have the Markdown editor enabled? |
@goddib Bullseye! I had the (beta) Markdown editor enabled (completely forgot about that) and after deactivation the notes load. Thank you! Also working: Sorting by folders. Not working though: Sorting by keywords. Selecting a keywords triggers loading all notes indiscriminately like the browser tab. |
@Playnary great to hear that helped! As for the other issues, I can confirm that. It seems that the NoteController has a bunch more functions that need to be debugged to keep running properly. It might or might not make sense to open separate issues for those but without a developer looking into the issues I will just adding here. |
Edited because part of my changes are already in @joshua-schnabel comment. In addition to the fix by @joshua-schnabel you should also add the following changes. File: apps/carnet/lib/Controller/NoteController.php Replace line 722 (original 719):
with:
Replace line 773 (original 767):
with:
These last two fixes are to fix the error: Undefined array key "isMarkdown". Now you should be able to edit, add, and remove notes. |
All but the last two I had already implemented based on previous recommendations. I've added these last two you suggested, for markdown, and it does seem that the "Latest" tab is working for now, although I observed it working a few times in the past since my previous post. I wasn't getting the error you mentioned, so perhaps this fixed something which did not affect me. There's nothing sensitive in these "apps/carnet/lib/Controller" files, is there? Can I safely share these files for others, so we're all on the same page? |
I did not see anything sensitive inside those files. |
This was already included in the original file!?
Already included in @joshua-schnabel 's fix.
Already included in @joshua-schnabel 's fix.
Already included in @joshua-schnabel 's fix.
Already included in @joshua-schnabel 's fix. Only the two following edits are contributions additionally to @joshua-schnabel 's fix:
I can confirm that with the last two additions the 'markdown editor (beta)' option in the settings checked also results in loading notes and a functioning editor. Thank you @LucioAlbenga! |
I have to apologize guys because I did not notice that @joshua-schnabel already wrote the fixes for the NoteController.php. @Playnary thank you for pointing it out to me. I'm going to edit my original comment to reflect only the changes that are not already in Joshua's comment. |
Thanks @LucioAlbenga! I am not sure if I would have been able to figure this out. |
Thank you all. This is amazing. Is there somewhere that we can download these files? That is a lot of edits to try to make. |
Sure, here is a set of files I've modified as discussed here. USE AT YOUR OWN RISK. These are for demonstration purposes only. If you import them into any functioning software, you are solely responsible for any detrimental results. If you were to install these, you would extract the two php files into "apps/carnet/lib/Controller/" (and always save the originals, just in case). https://cloud.archnet.us/index.php/s/epGYeDMGwRB4mWY Edit: in browser searching still doesn't seem to work for me, when using these fixes. However, the Android application's search still works, since it is independent code. Also, a recent bug report was posted indicating search issues on NC25. Interesting. (#212) |
Interesting. I have it working on php 8.1. I have not tried upgrading. |
I have, the error is neither caused nor fixed by the switch between 8.1 and 8.2. I have not tried other versions. The fixes above seem related to other dependency changes within NC. |
@joshua-schnabel @LucioAlbenga could you maybe make a pull request with your fixes? It would increase the chances that the fixes are merged in the official package, and in the meantime it would make it easier to have a partially working app for the users. |
@Jordibgzashtita I have been on PHP 8.2.15 the whole time if that helps. First not working, now working. I am still getting errors from the NoteController.php after the edits. Anyone else?
|
Maybe a pull request would be more useful? |
Controller edits by https://github.com/joshua-schnabel See: CarnetApp#214
Done.
This seems different. |
Sorry this was from @goddib not me! |
@Playnary It is the same error over the course of days. Not sure what to make of it |
@alpapan now we have a pull request but I am not sure if there is anyone active who can merge it and create a new release... |
Worst case scenario is a fork and a new project :-) open source benefits |
I would be interested if someone wants to join me in carnet developpement, I'm on matrix and I would be more than happy to do it with you @Phie:lostpod.me I'm quite overwhelmed which make dev difficult these times These changes were merged thanks to @Playnary it doesn't fix everything though, will try to see what to do tonight |
Godspeed. Whatever you do, try to mimic google keep notes as much as
possible. If you add the ability to upload videos and attach files,
you'll be better than googles offering.
…On Mon, Jan 29, 2024, 2:38 PM PhieF ***@***.***> wrote:
I would be interested if someone wants to join me in carnet developpement,
I'm on matrix and I would be more than happy to do it with you
@Phie <https://github.com/Phie>:lostpod.me
I'm quite overwhelmed which make dev difficult these times
These changes were merged thanks to @Playnary
<https://github.com/Playnary> it doesn't fix everything though, will try
to see what to do tonight
—
Reply to this email directly, view it on GitHub
<#214 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A5G64QBMB7BPJJ5SYEZBUFDYRACD3AVCNFSM6AAAAABA76XQVSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMJVGUZDCOBTGQ>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Okay, @goddib, looks like a persistent but separate problem with no further errors. You can also check your browser console and to see if you have anything else appearing there. But in any case: I suggest you open a new issue for this? The OP's problem seems to be fixed with the solutions found so far for most people. |
Closing this as releasing the fix ! thanks to you all, sorry for having been that slow to release the version |
Thank you all. We appreciate your work on Carnet! |
Describe the bug
After updating to Nextcloud 28.0.1 loading Carnet as usual via the menu results in internal server error.
To Reproduce
Steps to reproduce the behavior:
...
Expected behavior
The Carnet UI loads as usual
Screenshots
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: