Comments (26)
The patch has helped.
Thanks for the support.
Quicknotes works again.
from quicknotes.
Hi @tomise
😞
You say you don't see anything in the Nextcloud logs??
You can open the inspector (Ctrl+shift+I in firefox) and see if there is any js log in console tab and see the notes
query in the Net tab,,?
Thanks..
from quicknotes.
from quicknotes.
Hi @tomise
There is no attachment on your answer. Please, reply directly to github and make sure everything is visible. 😅
from quicknotes.
Screenshot
Netxcloud Log!
nextcloud.log.quicknotes.zip
from quicknotes.
Ok.. Formating that log:
{
"reqId":"X5luMOSItAWq6d1-l@6aYAAAAIs",
"level":3,
"time":"2020-10-28T13:12:16+00:00",
"remoteAddr":"212.114.206.174",
"user":"Thomas",
"app":"index",
"method":"POST",
"url":"/nextcloud/index.php/apps/quicknotes/notes",
"message":{
"Exception":"Doctrine\\DBAL\\Exception\\InvalidFieldNameException",
"Message":"An exception occurred while executing 'INSERT INTO `oc_quicknotes_notes` (`title`, `content`, `pinned`, `timestamp`, `color_id`, `user_id`) VALUES(?, ?, ?, ?, ?, ?)' with params [\"Neue Notiz\", \"\", 0, 1603890736, 9, \"Thomas\"]:\n\nSQLSTATE[42S22]: Column not found: 1054 Unknown column 'pinned' in 'field list'",
"Code":0,
"Trace":[
{
"file":"/var/www/html/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/DBALException.php",
"line":169,
"function":"convertException",
"class":"Doctrine\\DBAL\\Driver\\AbstractMySQLDriver",
"type":"->"
},
{
"file":"/var/www/html/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/DBALException.php",
"line":145,
"function":"wrapException",
"class":"Doctrine\\DBAL\\DBALException",
"type":"::"
},
{
"file":"/var/www/html/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php",
"line":1063,
"function":"driverExceptionDuringQuery",
"class":"Doctrine\\DBAL\\DBALException",
"type":"::"
},
{
"file":"/var/www/html/nextcloud/lib/private/DB/Connection.php",
"line":214,
"function":"executeUpdate",
"class":"Doctrine\\DBAL\\Connection",
"type":"->"
},
{
"file":"/var/www/html/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Query/QueryBuilder.php",
"line":203,
"function":"executeUpdate",
"class":"OC\\DB\\Connection",
"type":"->"
},
{
"file":"/var/www/html/nextcloud/lib/private/DB/QueryBuilder/QueryBuilder.php",
"line":216,
"function":"execute",
"class":"Doctrine\\DBAL\\Query\\QueryBuilder",
"type":"->"
},
{
"file":"/var/www/html/nextcloud/lib/public/AppFramework/Db/QBMapper.php",
"line":129,
"function":"execute",
"class":"OC\\DB\\QueryBuilder\\QueryBuilder",
"type":"->"
},
{
"file":"/var/www/html/nextcloud/apps/quicknotes/lib/Service/NoteService.php",
"line":194,
"function":"insert",
"class":"OCP\\AppFramework\\Db\\QBMapper",
"type":"->"
},
{
"file":"/var/www/html/nextcloud/apps/quicknotes/lib/Controller/NoteController.php",
"line":108,
"function":"create",
"class":"OCA\\QuickNotes\\Service\\NoteService",
"type":"->"
},
{
"file":"/var/www/html/nextcloud/lib/private/AppFramework/Http/Dispatcher.php",
"line":170,
"function":"create",
"class":"OCA\\QuickNotes\\Controller\\NoteController",
"type":"->"
},
{
"file":"/var/www/html/nextcloud/lib/private/AppFramework/Http/Dispatcher.php",
"line":100,
"function":"executeController",
"class":"OC\\AppFramework\\Http\\Dispatcher",
"type":"->"
},
{
"file":"/var/www/html/nextcloud/lib/private/AppFramework/App.php",
"line":137,
"function":"dispatch",
"class":"OC\\AppFramework\\Http\\Dispatcher",
"type":"->"
},
{
"file":"/var/www/html/nextcloud/lib/private/AppFramework/Routing/RouteActionHandler.php",
"line":47,
"function":"main",
"class":"OC\\AppFramework\\App",
"type":"::"
},
{
"function":"__invoke",
"class":"OC\\AppFramework\\Routing\\RouteActionHandler",
"type":"->"
},
{
"file":"/var/www/html/nextcloud/lib/private/Route/Router.php",
"line":297,
"function":"call_user_func"
},
{
"file":"/var/www/html/nextcloud/lib/base.php",
"line":1011,
"function":"match",
"class":"OC\\Route\\Router",
"type":"->"
},
{
"file":"/var/www/html/nextcloud/index.php",
"line":37,
"function":"handleRequest",
"class":"OC",
"type":"::"
}
],
"File":"/var/www/html/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractMySQLDriver.php",
"Line":60,
"Previous":{
"Exception":"Doctrine\\DBAL\\Driver\\PDOException",
"Message":"SQLSTATE[42S22]: Column not found: 1054 Unknown column 'pinned' in 'field list'",
"Code":"42S22",
"Trace":[
{
"file":"/var/www/html/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php",
"line":1054,
"function":"execute",
"class":"Doctrine\\DBAL\\Driver\\PDOStatement",
"type":"->"
},
{
"file":"/var/www/html/nextcloud/lib/private/DB/Connection.php",
"line":214,
"function":"executeUpdate",
"class":"Doctrine\\DBAL\\Connection",
"type":"->"
},
{
"file":"/var/www/html/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Query/QueryBuilder.php",
"line":203,
"function":"executeUpdate",
"class":"OC\\DB\\Connection",
"type":"->"
},
{
"file":"/var/www/html/nextcloud/lib/private/DB/QueryBuilder/QueryBuilder.php",
"line":216,
"function":"execute",
"class":"Doctrine\\DBAL\\Query\\QueryBuilder",
"type":"->"
},
{
"file":"/var/www/html/nextcloud/lib/public/AppFramework/Db/QBMapper.php",
"line":129,
"function":"execute",
"class":"OC\\DB\\QueryBuilder\\QueryBuilder",
"type":"->"
},
{
"file":"/var/www/html/nextcloud/apps/quicknotes/lib/Service/NoteService.php",
"line":194,
"function":"insert",
"class":"OCP\\AppFramework\\Db\\QBMapper",
"type":"->"
},
{
"file":"/var/www/html/nextcloud/apps/quicknotes/lib/Controller/NoteController.php",
"line":108,
"function":"create",
"class":"OCA\\QuickNotes\\Service\\NoteService",
"type":"->"
},
{
"file":"/var/www/html/nextcloud/lib/private/AppFramework/Http/Dispatcher.php",
"line":170,
"function":"create",
"class":"OCA\\QuickNotes\\Controller\\NoteController",
"type":"->"
},
{
"file":"/var/www/html/nextcloud/lib/private/AppFramework/Http/Dispatcher.php",
"line":100,
"function":"executeController",
"class":"OC\\AppFramework\\Http\\Dispatcher",
"type":"->"
},
{
"file":"/var/www/html/nextcloud/lib/private/AppFramework/App.php",
"line":137,
"function":"dispatch",
"class":"OC\\AppFramework\\Http\\Dispatcher",
"type":"->"
},
{
"file":"/var/www/html/nextcloud/lib/private/AppFramework/Routing/RouteActionHandler.php",
"line":47,
"function":"main",
"class":"OC\\AppFramework\\App",
"type":"::"
},
{
"function":"__invoke",
"class":"OC\\AppFramework\\Routing\\RouteActionHandler",
"type":"->"
},
{
"file":"/var/www/html/nextcloud/lib/private/Route/Router.php",
"line":297,
"function":"call_user_func"
},
{
"file":"/var/www/html/nextcloud/lib/base.php",
"line":1011,
"function":"match",
"class":"OC\\Route\\Router",
"type":"->"
},
{
"file":"/var/www/html/nextcloud/index.php",
"line":37,
"function":"handleRequest",
"class":"OC",
"type":"::"
}
],
"File":"/var/www/html/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php",
"Line":119,
"Previous":{
"Exception":"PDOException",
"Message":"SQLSTATE[42S22]: Column not found: 1054 Unknown column 'pinned' in 'field list'",
"Code":"42S22",
"Trace":[
{
"file":"/var/www/html/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php",
"line":117,
"function":"execute",
"class":"PDOStatement",
"type":"->"
},
{
"file":"/var/www/html/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php",
"line":1054,
"function":"execute",
"class":"Doctrine\\DBAL\\Driver\\PDOStatement",
"type":"->"
},
{
"file":"/var/www/html/nextcloud/lib/private/DB/Connection.php",
"line":214,
"function":"executeUpdate",
"class":"Doctrine\\DBAL\\Connection",
"type":"->"
},
{
"file":"/var/www/html/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Query/QueryBuilder.php",
"line":203,
"function":"executeUpdate",
"class":"OC\\DB\\Connection",
"type":"->"
},
{
"file":"/var/www/html/nextcloud/lib/private/DB/QueryBuilder/QueryBuilder.php",
"line":216,
"function":"execute",
"class":"Doctrine\\DBAL\\Query\\QueryBuilder",
"type":"->"
},
{
"file":"/var/www/html/nextcloud/lib/public/AppFramework/Db/QBMapper.php",
"line":129,
"function":"execute",
"class":"OC\\DB\\QueryBuilder\\QueryBuilder",
"type":"->"
},
{
"file":"/var/www/html/nextcloud/apps/quicknotes/lib/Service/NoteService.php",
"line":194,
"function":"insert",
"class":"OCP\\AppFramework\\Db\\QBMapper",
"type":"->"
},
{
"file":"/var/www/html/nextcloud/apps/quicknotes/lib/Controller/NoteController.php",
"line":108,
"function":"create",
"class":"OCA\\QuickNotes\\Service\\NoteService",
"type":"->"
},
{
"file":"/var/www/html/nextcloud/lib/private/AppFramework/Http/Dispatcher.php",
"line":170,
"function":"create",
"class":"OCA\\QuickNotes\\Controller\\NoteController",
"type":"->"
},
{
"file":"/var/www/html/nextcloud/lib/private/AppFramework/Http/Dispatcher.php",
"line":100,
"function":"executeController",
"class":"OC\\AppFramework\\Http\\Dispatcher",
"type":"->"
},
{
"file":"/var/www/html/nextcloud/lib/private/AppFramework/App.php",
"line":137,
"function":"dispatch",
"class":"OC\\AppFramework\\Http\\Dispatcher",
"type":"->"
},
{
"file":"/var/www/html/nextcloud/lib/private/AppFramework/Routing/RouteActionHandler.php",
"line":47,
"function":"main",
"class":"OC\\AppFramework\\App",
"type":"::"
},
{
"function":"__invoke",
"class":"OC\\AppFramework\\Routing\\RouteActionHandler",
"type":"->"
},
{
"file":"/var/www/html/nextcloud/lib/private/Route/Router.php",
"line":297,
"function":"call_user_func"
},
{
"file":"/var/www/html/nextcloud/lib/base.php",
"line":1011,
"function":"match",
"class":"OC\\Route\\Router",
"type":"->"
},
{
"file":"/var/www/html/nextcloud/index.php",
"line":37,
"function":"handleRequest",
"class":"OC",
"type":"::"
}
],
"File":"/var/www/html/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php",
"Line":117
}
},
"CustomMessage":"--"
},
"userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.111 Safari/537.36",
"version":"19.0.4.2"
}
...the problem is:
"Message":"An exception occurred while executing 'INSERT INTO `oc_quicknotes_notes` (`title`, `content`, `pinned`, `timestamp`, `color_id`, `user_id`) VALUES(?, ?, ?, ?, ?, ?)' with params [\"Neue Notiz\", \"\", 0, 1603890736, 9, \"Thomas\"]:\n\nSQLSTATE[42S22]: Column not found: 1054 Unknown column 'pinned' in 'field list'",
The pinned colum was added on Quicknotes v0.3.0 (Released 2020-06-08). So, did you update from 0.6.1 or an older version ???
Please verify that this column exists in your database.
from quicknotes.
Yes I have.
from quicknotes.
Do you mean sql-database?
from quicknotes.
Do you mean sql-database?
YES
from quicknotes.
I cannot find in the database?
from quicknotes.
So, again..
The pinned colum was added on Quicknotes v0.3.0 (Released 2020-06-08). So, did you update from 0.6.1 or an older version ???
from quicknotes.
I restored a backup from the database, unfortunately the backup was a bit older!
from quicknotes.
I restored a backup from the database, unfortunately the backup was a bit older!
OK .. You have to migrate the databases..
In mi case:
[matias@nube nextcloud]$ sudo -u apache php occ migrations:status quicknotes
>> App: quicknotes
>> Version Table Name: oc_migrations
>> Migrations Namespace: OCA\QuickNotes\Migration
>> Migrations Directory: /var/www/html/nextcloud/apps/quicknotes/lib/Migration
>> Previous Version: 000205Date20200604122312
>> Current Version: 000301Date20200613151711
>> Next Version: Already at latest migration step
>> Latest Version: 000301Date20200613151711
>> Executed Migrations: 3
>> Executed Unavailable Migrations: 3
>> Available Migrations: 3
>> New Migrations: 3
>> Pending Migrations: None
In your case maybe you just need to update with occ migrations:migrate quicknotes
from quicknotes.
The current status of quicknote is:
sudo -u apache php occ migrations:status quicknotes
>> App: quicknotes
>> Version Table Name: oc_migrations
>> Migrations Namespace: OCA\QuickNotes\Migration
>> Migrations Directory: /var/www/html/nextcloud/apps/quicknotes/lib/Migration
>> Previous Version: 000205Date20200604122312
>> Current Version: 000301Date20200613151711
>> Next Version: Already at latest migration step
>> Latest Version: 000301Date20200613151711
>> Executed Migrations: 3
>> Executed Unavailable Migrations: 3
>> Available Migrations: 3
>> New Migrations: 3
>> Pending Migrations: None
I have executed the command: sudo -u apache php occ migrations:status quicknotes
Unfortunately no improvement
from quicknotes.
I mean sudo -u apache php occ migrations:migrate quicknotes 0.6.2
from quicknotes.
try:
sudo -u apache php occ migrations:execute quicknotes 000205Date20200604122312
from quicknotes.
The last order was worth its weight in gold! It's working again!
Thanks a lot.
What do I have to consider next time I play back the database?
from quicknotes.
The last order was worth its weight in gold! It's working again!.
Great.. 🎉 😄 😃
What do I have to consider next time I play back the database?.
Honestly, I don't know what was wrong here. But in general, try to restore with the same versions and then update.
NOTE: If it still fails to save attachments, maybe you need to migrate again with other version:
sudo -u apache php occ migrations:execute quicknotes 000301Date20200613151711
Please, check that the rest works, and close the report yourself..
Thanks..
from quicknotes.
The attachments are saved but not displayed. I then migrated with the other command, unfortunately no difference. Pictures are only shown when editing.
As soon as you close the note, the image is no longer displayed.
from quicknotes.
The attachments are saved but not displayed. I then migrated with the other command, unfortunately no difference. Pictures are only shown when editing.
As soon as you close the note, the image is no longer displayed.
About this, I'm 99% sure it's just some cache problem.. Try on another computer (Maybe the phone).
from quicknotes.
Also check that there is no relevant in nextcloud or the browser!
from quicknotes.
I did everything, unfortunately the attachments are not displayed!
from quicknotes.
Logs!?
from quicknotes.
Maybe we have an confirmaron.. #48
You can create an user and send me the credencials to mati86dl at gmal com to test?
Thanks
from quicknotes.
D'Oh!. mati86dl at gmail com
from quicknotes.
Hi @tomise
Test this patch:
85c9bfa
from quicknotes.
Related Issues (20)
- How to format a note with rich text? HOT 3
- you have missing too many language pack HOT 9
- Nextcloud 25 Not Supported HOT 5
- [Feature Request]: Simplify Image upload
- Can not Share Note with team HOT 3
- iOS App for QuickNotes HOT 3
- Edit a shared note HOT 2
- Add a New Note button to the dasboard widget
- Nextcloud 26 Support 😊 HOT 3
- FeatureRequest: Checkboxes HOT 3
- [Feature Request]: Sharing via link HOT 1
- I cannot connect with my account into the app HOT 1
- Embedding Images in Notes in NC27 not working (v0.8.10) HOT 3
- Support for Nextcloud 28 HOT 2
- QuickNotes not working on Version 28 HOT 2
- Speech Note to myself
- Not work HOT 4
- Regressions in Nextcloud 28 HOT 3
- Notes storage / encryption HOT 1
- App cannot be enabled because it makes the server unstable. HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from quicknotes.