SeAT - forum: Calendar -table id=calendar-ongoing - Ajax error - Page 1

Gary Goodspeed 4 Sep 2024 14:02
Well hello there dear friends, i have a question of an issue i have yet to understand. under the /calendar/operations i get the error that the: DataTables warning: table id=calendar-ongoing - Ajax error. For more information about this error, please see https://datatables.net/tn/7 and in my log viewer i have this

Class "Denngarr\Seat\Fitting\Models\Doctrine" not found (View: /var/www/seat/vendor/hermesdj/seat-calendar/src/resources/views/operation/partials/doctrine.blade.php) {"userId":10,"exception":"[object] (Illuminate\\View\\ViewException(code: 0): Class \"Denngarr\\Seat\\Fitting\\Models\\Doctrine\" not found (View: /var/www/seat/vendor/hermesdj/seat-calendar/src/resources/views/operation/partials/doctrine.blade.php) at /var/www/seat/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasRelationships.php:793)
[stacktrace]
The hermesdj/seat-calendar is v1.0.4 currently. Does anyone else has this issue?
recursive_tree 4 Sep 2024 15:35
which seat version and do you have seat-fitting installed?
Gary Goodspeed 4 Sep 2024 15:42
i am currently using Seat Version 5. For the fitting plugin we are using: https://github.com/dysath/seat-fitting in the v5.0.7.
Swissguy 5 Sep 2024 16:54
I have the same problem, but in /corporations/**/tracking when I type something into the search field. Running SeAT 5 docker version and have seat-fitting installed.
recursive_tree 5 Sep 2024 16:54
I assume the crypta seat-fitting plugin?
Swissguy 5 Sep 2024 16:55
Yes
Actually, I suck at reading. My error is not the same 🤦‍♂️
image: Screenshot_20240905_185738_Chrome.jpg
recursive_tree 5 Sep 2024 16:59
What is the discord tag of hermesdj again? I think jays or something, but I’m not sure. Basically the namespace of seat-fitting in seat 5 changed and the calendar plugin hasn’t been updated .
Gary Goodspeed 5 Sep 2024 18:06
i have searched for the discord tag but was unable to find it. @user_268096224995835904 i manged to get it working with restoring an older version of the calendar without the doctrine stuff in it. I can upload it somewhere if you need it
Swissguy 5 Sep 2024 18:08
It seems I have a completely different problem, but thanks anyway.
Gary Goodspeed 5 Sep 2024 18:08
and here was i, not reading everything. but you are welcome
梁天 7 Sep 2024 08:47
Hi @user_97704462163931136 , I have the exact same issue, could you tell me how you restore an old version?
I have tried 1.0.1 and 1.0.2 but they both have the 500 error.
Gary Goodspeed 7 Sep 2024 12:28
I have a backup of the files. If I downgrade to another version the files in regards are … still fucked. I can provide a zip and send it over with the module in question if you want
梁天 7 Sep 2024 12:29
ok. that would be great, thanks
Are you running with docker?
Any news on this?
Viper 22 Oct 2024 13:11
@user_164076488294006785 Hey mate, looks like some folks are having some issues getting the calendar plugin working (myself included) For me, using Seat 5 and the version 1.0.4 of hermesdj/seat-calendar (other plugins installed are 5.0.7 dysath/seat-fitting, 2.0.2 recursivetree/seat-info, 6.0.1 warlof/seat-discord-connector) When attempting to create a calendar event, I am receiving the error: DataTables warning: table id=calendar-incoming - Ajax error. For more information about this error, please see https://datatables.net/tn/7 The above error also occurs when attempting to sort incoming or ongoing events using any of the columns (Title, Tags, Importance, etc) When the calendar attempts to pull data on operations (after changing pages and going back to calendar) the following error occurs: DataTables warning: table id=calendar-ongoing - Ajax error. For more information about this error, please see https://datatables.net/tn/7 I note that when attempting to create an op, the doctrines drop down is empty and will not allow me to set a doctrine that we have created already. I believe this is likely causing issues with the creation/tracking of ops as the logviewer shows errors regarding not being able to find doctrine info. (Class "Denngarr\Seat\Fitting\Models\Doctrine" not found (View: /var/www/seat/vendor/hermesdj/seat-calendar/src/resources/views/operation/partials/doctrine.blade.php) {"userId":2,"exception":"[object] (Illuminate\\View\\ViewException(code: 0): Class \"Denngarr\\Seat\\Fitting\\Models\\Doctrine\" not found (View: /var/www/seat/vendor/hermesdj/seat-calendar/src/resources/views/operation/partials/doctrine.blade.php) at /var/www/seat/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasRelationships.php:793)) Any ideas/fixes that you're aware of? Is there more data I can provide that would be useful?
Jay's 22 Oct 2024 13:12
you need https://github.com/hermesdj/seat-fitting/releases for it to work
Viper 22 Oct 2024 13:14
How would I apply that? Still fairly green with a lot of this. haha
Jay's 22 Oct 2024 13:14
The check for the validity of the fitting plugin must not work correctly, It should disable doctrine selection if you dont have the right one
Viper 22 Oct 2024 13:14
Actually, it looks like it's looking for the Dengarr fitting tool
Jay's 22 Oct 2024 13:14
The fitting plugin is not dysath/seat-fitting, but hermesdj/seat-fitting. I did a fork to apply some changes I needed
Viper 22 Oct 2024 13:14
Oh gotcha
I'll try swapping to the compatible version then, and will report back
Thanks for your quick response!
Jay's 22 Oct 2024 13:18
I'm gonna push a fix on the calendar plugin to better check if the fitting plugin is installed and has the correct models
1.0.5 of calendar plugin pushed. If it does not detect the correct plugin, the doctrine feature is disabled
Viper 22 Oct 2024 14:00
Installed the hermesdj/seat-fitting plugin and it worked like a charm. Easy enough to fix. Is that somewhere in the git documentation that I missed?
Jay's 22 Oct 2024 14:01
No it was not in the readme of the calendar plugin, so it's my bad. I thought i listed it there. It is now ^^
Thanks for pinging me btw, I did not see this thread at all
Viper 22 Oct 2024 14:02
Yeah, it looks like they couldn't remember your tag, so after reading your git page I figured I'd use the existing thread to ping you so the others can read it too 🙂 Thanks a bunch. Your response was lightning fast, musta caught you at the right time. haha
Jay's 22 Oct 2024 14:04
Well I work with discord always opened 🙂
梁天 22 Oct 2024 18:07
Thank you both, so now it works with the master?
master of the calendar plugin?
Jay's 25 Oct 2024 22:45
Yes
hermesdj/seat-calendar
梁天 27 Oct 2024 16:07
I want the fleet pap from calendar, do I just need SEAT_PLUGINS=hermesdj/seat-calendar inside the .env? or I need some extra move?
I have this errors

Missing platforms
The administrator of this instance didn't configure any platform yet.
Please come back later.
get it
Hello @user_164076488294006785 , I have one question on this plugin. Now only the admins can see the calendar row. How to make it public to everyone?
Jay's 28 Oct 2024 14:22
Did you check the permissions ?
Xaivada Skywalker 28 Oct 2024 14:29
no, and I don't know how to check it. For the first time, there is a page asking me the permission to strict or normal, I chosed strict, is this related?
I mean when I initialed the calendar.
Jay's 28 Oct 2024 14:29
This is SeAT configuration, not specific to this plugin
Xaivada Skywalker 28 Oct 2024 14:30
ok, so I should config the SeAT to make the calendar public to all members?
Could I make this calendar only public to a certain group of members?
Sorry, really new to this.
Jay's 28 Oct 2024 14:31
In Settings main menu > Access Management, select the role you want to edit, and check in the role the permissions in the Calendar category
There are a few options that will manage how users are able to interact with the operations in the calendar
if you did not configure this, it's normal that only the admin sees the calendar ^^
Xaivada Skywalker 28 Oct 2024 14:32
ok, I see. Thanks a ton
Jay's 28 Oct 2024 14:33
So yes, with this you can manage what group of users is allowed to view operations
Xaivada Skywalker 28 Oct 2024 14:33
Maybe another question, is there a way to dump out the full pap list, not just top 10?
dump into a txt file or sth like that.
Jay's 28 Oct 2024 14:39
Where is this dump the top 10 ?
Xaivada Skywalker 28 Oct 2024 14:39
image: 8b73be61109996a10cc295f0f95fb2b0.jpg
I could read the whole list, but each page, there is up to 10 shown.
I would like to have some feature could read the month list, and record the charc and the pap into a txt file.
Jay's 28 Oct 2024 14:41
I see. I can look into it. Good old csv export could be useful
Xaivada Skywalker 28 Oct 2024 14:43
another concern, once I move to a new version of this plugin in future.
Will the old pap still exist in the system?
Jay's 28 Oct 2024 14:46
It should
Xaivada Skywalker 28 Oct 2024 18:18
maybe a cooler stuff, once paped, update the fleet's motd, is this possible? 🙂
Jay's 29 Oct 2024 23:36
No, you cant interact with stuff in game like that
Xaivada Skywalker 2 Dec 2024 12:26
Hello @user_164076488294006785 , will you be available to develop such a feature?
Jay's 2 Dec 2024 14:02
Just released 1.0.7 that add a csv export button to each pap (this week, this month, this year)
Xaivada Skywalker 2 Dec 2024 17:53
@user_164076488294006785 wow, that is great, is it possible to export for the selected month?
Jay's 2 Dec 2024 17:54
I'll look at it yes