Error after fix douplicated notifications

Abazer Mahgoub3 years ago

I implemented the fix in the following link:
https://github.com/traccar/traccar/commit/d42f935e4119fb87002b8b275c4237290ef7f12b
Then I compiled the application.
The douplicated notifications reduced from 12 to 3 times but I encountered the following error when saving any changes in the user :

Unknown column 'fixedemail'  in 'field list' - SQLSyntaxErrorException (... < QueryBuilder:473 < DatabaseStorage:89 < UserResource:101 < ...)
Anton Tananaev3 years ago

The problem is that that instead of cherry-picking the fix, it looks like you just compiled the master branch, which contains a lot of other changes, including some database schema changes.

Abazer Mahgoub3 years ago

Thank you Anton
I tried to compile version 5.2 from github, but the compilation does not always complete. Where can I find a source code conpatible with 5.2 that does not have a lot of changes to modify it and compile?

Anton Tananaev3 years ago

Your statement kind of contradicts itself. If you don't know where the source code for 5.2 is, then how are you compiling it? lol

There's v5.2 tag. That's version 5.2.

Abazer Mahgoub3 years ago

Sorry sir Anton..
Maybe the expression betrayed me, my English is bad. I use Google Translate + I am a beginner. I learned a lot from you and I thank you. I will move forward to learn more. I downloaded the copy in the image below, but I was unable to compile it even though I succeeded in compiling the copy in the master branch

Description text

Anton Tananaev3 years ago

There's no image.

Abazer Mahgoub3 years ago
Anton Tananaev3 years ago

And what's the compilation error?

Abazer Mahgoub3 years ago

Thank you Anton
Now I was able to compile correctly but the error message came back:

Connection refused: connect - ConnectException (... < NotificatorTraccar: 77 < NotificationResource: 97 < ...)

Related to push notifications that have been fixed here:
https://www.traccar.org/forums/topic/question-52/#post-73130
Please let me know about the repairs made in the source code so that I can recompile it again

Anton Tananaev3 years ago

You should be able to find it in the history.

Abazer Mahgoub3 years ago

Yes, I found it and it was fixed. Now everything is working perfectly. Thank you for your generosity, Mr. Anton