Giter Site home page Giter Site logo

Quicknotes not working! about quicknotes HOT 26 CLOSED

tomise avatar tomise commented on June 16, 2024
Quicknotes not working!

from quicknotes.

Comments (26)

tomise avatar tomise commented on June 16, 2024 1

The patch has helped.
Thanks for the support.
Quicknotes works again.

from quicknotes.

matiasdelellis avatar matiasdelellis commented on June 16, 2024

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.

tomise avatar tomise commented on June 16, 2024

from quicknotes.

matiasdelellis avatar matiasdelellis commented on June 16, 2024

Hi @tomise
There is no attachment on your answer. Please, reply directly to github and make sure everything is visible. 😅

from quicknotes.

tomise avatar tomise commented on June 16, 2024

Screenshot
Nextcloud_Quicknotes_Screenshot (1)
Netxcloud Log!
nextcloud.log.quicknotes.zip

from quicknotes.

matiasdelellis avatar matiasdelellis commented on June 16, 2024

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.

tomise avatar tomise commented on June 16, 2024

Yes I have.

from quicknotes.

tomise avatar tomise commented on June 16, 2024

Do you mean sql-database?

from quicknotes.

matiasdelellis avatar matiasdelellis commented on June 16, 2024

Do you mean sql-database?

YES

from quicknotes.

tomise avatar tomise commented on June 16, 2024

I cannot find in the database?

from quicknotes.

matiasdelellis avatar matiasdelellis commented on June 16, 2024

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.

tomise avatar tomise commented on June 16, 2024

I restored a backup from the database, unfortunately the backup was a bit older!

from quicknotes.

matiasdelellis avatar matiasdelellis commented on June 16, 2024

I restored a backup from the database, unfortunately the backup was a bit older!

OK .. You have to migrate the databases..

See: https://docs.nextcloud.com/server/latest/developer_manual/basics/storage/migrations.html#console-commands

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.

tomise avatar tomise commented on June 16, 2024

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.

tomise avatar tomise commented on June 16, 2024

I mean sudo -u apache php occ migrations:migrate quicknotes 0.6.2

from quicknotes.

matiasdelellis avatar matiasdelellis commented on June 16, 2024

try:

sudo -u apache php occ migrations:execute quicknotes 000205Date20200604122312

from quicknotes.

tomise avatar tomise commented on June 16, 2024

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.

matiasdelellis avatar matiasdelellis commented on June 16, 2024

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.

tomise avatar tomise commented on June 16, 2024

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.

matiasdelellis avatar matiasdelellis commented on June 16, 2024

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.

matiasdelellis avatar matiasdelellis commented on June 16, 2024

Also check that there is no relevant in nextcloud or the browser!

from quicknotes.

tomise avatar tomise commented on June 16, 2024

I did everything, unfortunately the attachments are not displayed!

from quicknotes.

matiasdelellis avatar matiasdelellis commented on June 16, 2024

Logs!?

from quicknotes.

matiasdelellis avatar matiasdelellis commented on June 16, 2024

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.

matiasdelellis avatar matiasdelellis commented on June 16, 2024

D'Oh!. mati86dl at gmail com

from quicknotes.

matiasdelellis avatar matiasdelellis commented on June 16, 2024

Hi @tomise
Test this patch:
85c9bfa

from quicknotes.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.