Open Bables55 opened 5 years ago
Hi,
I've just pushed an emergency update to the nextcloud store, v0.13.3, tell me if this fixes it
thanks for your report
I update 0.13.4. Saving is now possible, but a new error has occurred. When the user enters edit mode and enters characters, the following error occurs frequently. It does not seem to occur with title change in the main display.
[PHP] Error: fclose(): supplied resource is not a valid stream resource at /MY-NEXTCLOUD/apps/carnet/lib/Controller/NoteController.php#669
POST /index.php/apps/carnet/note/saveText
I updated 0.13.5 now. This also happens.
[PHP] Error: fclose(): supplied resource is not a valid stream resource at /MY-NEXTCLOUD/apps/carnet/lib/Controller/NoteController.php#673
POST /index.php/apps/carnet/note/saveText
Then I went back to 0.12.2. However, the error of the previous occurrence came to occur. Last time I updated to 0.13.2, then back to 0.12.2. There was no error at that time. An error occurred when updating to 0.13.4 today and 0.13.5 today. Even if I return to 0.12.2, the same error occurred.
I updated 0.13.7 today. The error with NoteController.php has not been resolved. Or did I have a different problem? For example, a broken DB etc.
Really weird... Could you edit this file nextcloud/apps/carnet/lib/Controller/NoteController.php
go to line 685
remove the line
fclose($tmph);
tell me if writing note / reopening it works
I deleted the line(fclose($tmph);), but the same error.
After changing it, I disabled the app and enabled it again.
eerr in the same line ?
Sorry, I failed to upload. I confirmed the upload completion and verified the behavior. Now there are no errors in the Nextcloud log. carnet 0.13.7.
and when you leave the note, reopen it, it works ?
you have the same text you wrote ?
I edited a new note and an existing note. No errors are displayed for either edit. There are no errors with stars, colors, keywords, text styles, copy and paste, etc.
OK and is you put the line back the error comes back ?
this is an important line :P
There is no error now.
When I restore line 685, the error resumes.
Grumpf can you replace
$tmppath = tempnam(sys_get_temp_dir(), uniqid().".sqd");
by
$tmppath = tempnam(sys_get_temp_dir(), uniqid()."test.sqd");
just using another name to see if there is an issue with the tmp file
[PHP] Error: fclose(): supplied resource is not a valid stream resource at /NEXTCLOUD/apps/carnet/lib/Controller/NoteController.php#687
POST /index.php/apps/carnet/note/saveText
I replaced it with "test.sqd". I commented out without deleting the original. #687 is fclose($tmph);
oc_carnet_metadata
I'm looking at a DB table, but is it correct that the above table is empty? After deleting carnet.app yesterday, I manually deleted the above table and the carnet record of oc_appconfig.
Yep it's not a sql issue what happens if you add once again if($tmph)
just before fclose($tmph);
if($tmph) fclose($tmph);
or
if($tmph) { fclose($tmph); }
Both display the same error.
They are both corrects :)
I've received this by mail "I ran occ maintenance:repair. Then the error disappears."
the error is back again ? :S
Just because the server was sluggish, there were actually errors.
May I delete "fclose($tmph);"? Does this cause any new problems with this?
It should be ok to do this...
I'm updated 0.14.0. A new error has occurred. Occurs when Carnet is launched for the first time. Switch to a different app (eg, calendar etc) and return to Carnet. This error only occurs once at startup if the user continues to use Carnet.
[PHP] Error: filemtime(): stat failed for /MY-NEXTCLOUD/apps/carnet/templates/CarnetElectron/reader/libs/jquery.printElement.min.js at /MY-NEXTCLOUD/apps/carnet/templates/writer.php#15
GET /index.php/apps/carnet/writer?path=untitled.sqd
There is also an error in NoteController.php when saving data.
This error isn't really important, but you should comment fclose($tmph); again :(
This error isn't really important, but you should comment fclose($tmph); again :(
This. The app absolutely works, but having pages of errors due to a errant stray line of code can be irksome.
Describe the bug I can create new empty notes. After that I got an error when I entered a character and it was not saved. Once I return to the list, the memo is displayed only for the date. I am loading it as soon as I try to open it. Even if I try to change the title, I will not be registered. I can open the memo that I was creating in the past.
Error
To Reproduce Open and edit
Expected behavior To be saved
Desktop (please complete the following information):
Smartphone (please complete the following information):