Calendar

Calendar [Paid] 2.5.6

No permission to buy ($60.00)
Just found four bugs via the demo site -


1-
If you click 'Going' then 'RSVP' - You get the following error -

ErrorException: [E_WARNING] Undefined array key "month_type" in src/addons/NF/Calendar/Entity/Event.php at line 1273
  1. XF::handlePhpError() in src/addons/NF/Calendar/Entity/Event.php at line 1273
  2. NF\Calendar\Entity\Event->rebuildRecurrenceRule() in src/addons/NF/Calendar/Entity/Event.php at line 1658
  3. NF\Calendar\Entity\Event->_preSave() in src/addons/NF/GiftUpgrades/Entity/GiftTrait.php at line 85
  4. NF\GiftUpgrades\NF\Calendar\Entity\Event->_preSave() in src/XF/Mvc/Entity/Entity.php at line 1413
  5. XF\Mvc\Entity\Entity->preSave() in src/XF/Mvc/Entity/Entity.php at line 1266
  6. XF\Mvc\Entity\Entity->save() in src/addons/NF/Calendar/Entity/Response.php at line 83
  7. NF\Calendar\Entity\Response->_postSave() in src/XF/Mvc/Entity/Entity.php at line 1324
  8. XF\Mvc\Entity\Entity->save() in src/addons/NF/Calendar/Repository/ResponseRepository.php at line 55
  9. NF\Calendar\Repository\ResponseRepository->addResponseToEvent() in src/addons/NF/Calendar/Pub/Controller/EventController.php at line 1335
  10. NF\Calendar\Pub\Controller\EventController->actionRsvp() in src/XF/Mvc/Dispatcher.php at line 362
  11. XF\Mvc\Dispatcher->dispatchClass() in src/XF/Mvc/Dispatcher.php at line 264
  12. XF\Mvc\Dispatcher->dispatchFromMatch() in src/XF/Mvc/Dispatcher.php at line 121
  13. XF\Mvc\Dispatcher->dispatchLoop() in src/XF/Mvc/Dispatcher.php at line 63
  14. XF\Mvc\Dispatcher->run() in src/XF/App.php at line 2826
  15. XF\App->run() in src/XF.php at line 806
  16. XF::runApp() in index.php at line 23

2-
If you click 'Warn' at the bottom of the same calendar entry, you also get an error with -

InvalidArgumentException: No warning handler for 'nf_calendar_event' in src/XF/Repository/WarningRepository.php at line 93
  1. XF\Repository\WarningRepository->getWarningHandler() in src/XF/ControllerPlugin/WarnPlugin.php at line 21
  2. XF\ControllerPlugin\WarnPlugin->actionWarn() in src/addons/NF/Calendar/Pub/Controller/EventController.php at line 1120
  3. NF\Calendar\Pub\Controller\EventController->actionWarn() in src/XF/Mvc/Dispatcher.php at line 362
  4. XF\Mvc\Dispatcher->dispatchClass() in src/XF/Mvc/Dispatcher.php at line 264
  5. XF\Mvc\Dispatcher->dispatchFromMatch() in src/XF/Mvc/Dispatcher.php at line 121
  6. XF\Mvc\Dispatcher->dispatchLoop() in src/XF/Mvc/Dispatcher.php at line 63
  7. XF\Mvc\Dispatcher->run() in src/XF/App.php at line 2826
  8. XF\App->run() in src/XF.php at line 806
  9. XF::runApp() in index.php at line 23

3-
I did also notice, that if I go to the example calendar, and then click on 'Your events' (https://demos.nixfifty.com/events/users/gregbtm.990/) - It states that I've not added any events yet. If I go to the example calendar and filter events (with no other filters applied) - it states that there are no events matching the filters used.

If I clear all filters, and just use the filter 'Past Events' and no other filters, it shows all past events which also includes events that I created.

4-
Likely more of a permissions problem - If I create an event on account a - and go to view the event on account b - I cannot interact (attend/maybe/rsvp etc) - but have done in the past. Very strange.
 
Thanks for the prompt response Naz. Is there a future plan for this feature?
No plans for this at the moment. If it's something you're interested in funding, please start a direct message with me.
If you click 'Going' then 'RSVP' - You get the following error -
If you click 'Warn' at the bottom of the same calendar entry, you also get an error with -
Thanks, these two have been sorted.
I did also notice, that if I go to the example calendar, and then click on 'Your events' (https://demos.nixfifty.com/events/users/gregbtm.990/) - It states that I've not added any events yet. If I go to the example calendar and filter events (with no other filters applied) - it states that there are no events matching the filters used.

If I clear all filters, and just use the filter 'Past Events' and no other filters, it shows all past events which also includes events that I created.
Yeah, past event filters are a bit confusing at the moment and something I'm planning on sorting soon.
Likely more of a permissions problem - If I create an event on account a - and go to view the event on account b - I cannot interact (attend/maybe/rsvp etc) - but have done in the past. Very strange.
Can't reproduce this one but I'll see if I can figure it out later. I think there's some unrelated wonkiness on the demo site.
 
sounds like this has an option to create multiple calendars and users can create their own personal ones is that right? if so, are there user controls for who can view their personal calendars?

regards
 
sounds like this has an option to create multiple calendars and users can create their own personal ones is that right? if so, are there user controls for who can view their personal calendars?

regards
Admins can create calendars. Users can't have personal calendars. Users can add to the admin-created calendars.
 
Admins can create calendars. Users can't have personal calendars. Users can add to the admin-created calendars.
hello,
ok....are the admin created ones unlimited? i.e. can admin create a calendar meant primarily for one user? and do that an unlimited # of times?

im also wondering how they are organized, like how do you navigate if there are 20 calendars...

there are a few calendar mods but none of them support this kind of idea, this seems like the closest one so im willing to do a bit more legwork even if it isnt perfect, but some function are needed even in rough form.

kind regards
 
im suffering the lack of documentation and images for this....ive read what i can and looked at the demos mentioned, but still cant understand how "multiple calendars" work?....it seems they are still all printed on one main central calendar is that right? or is that just ONE way to do it...

is it possible to have more than one "base/parent calendar"? i see the navigation widget at least that looks good, but we really need multiple separate/unconnected instances...the main landing page on these demos seems like its only one calendar option, with all sub/separate calendars listed there together.

anyone?

regards
 
Admins can create calendars. Users can't have personal calendars. Users can add to the admin-created calendars.
hey @Naz ive decided to just try this but it didnt install on test....thoughts?

1731905239997.webp

  • XF\Db\Exception: Batch install error: MySQL query error [1364]: Field 'prefix_cache' doesn't have a default value
  • src/XF/Db/AbstractStatement.php:230

Stack trace​

REPLACE INTO xf_nf_calendar_calendar (
category_id, title, description, parent_category_id, depth, lft, rgt, display_order,
event_count, last_event, last_event_title, last_event_id, breadcrumb_data, thread_node_id,
thread_prefix_id, background_color, border_color, text_color, background_event_display,
min_tags, event_image_required, event_location_required, event_rsvp_required, field_cache, venue_cache,
moderate_events)
VALUES (
'1', 'Example calendar', 'This is an example calendar used to house events created by the Calendar add-on.',
'0', '0', '1', '2', '1', '0', '0', '', '0', 'a:0:{}', '0', '0', '#01579B', '#002F6C', '#FFFFFF',
'0', '0', '0', '0', '0', '[]', '[]', '0');

------------

#0 src/XF/Db/Mysqli/Statement.php(207): XF\Db\AbstractStatement->getException('MySQL query err...', 1364, 'HY000')
#1 src/XF/Db/Mysqli/Statement.php(83): XF\Db\Mysqli\Statement->getException('MySQL query err...', 1364, 'HY000')
#2 src/XF/Db/AbstractAdapter.php(96): XF\Db\Mysqli\Statement->execute()
#3 src/addons/NF/Calendar/Setup.php(77): XF\Db\AbstractAdapter->query('
RE...')
#4 src/XF/AddOn/StepRunnerInstallTrait.php(62): NF\Calendar\Setup->installStep3(Array)
#5 src/XF/AddOn/StepRunnerInstallTrait.php(29): NF\Calendar\Setup->installStepRunner(3, Array)
#6 src/XF/Job/AddOnInstallBatch.php(299): NF\Calendar\Setup->install(Array)
#7 src/XF/Job/AddOnInstallBatch.php(95): XF\Job\AddOnInstallBatch->stepAction(Object(XF\Timer))
#8 src/XF/Job/Manager.php(275): XF\Job\AddOnInstallBatch->run(8)
#9 src/XF/Job/Manager.php(205): XF\Job\Manager->runJobInternal(Array, 8)
#10 src/XF/Job/Manager.php(121): XF\Job\Manager->runJobEntry(Array, 8)
#11 src/XF/Admin/Controller/ToolsController.php(146): XF\Job\Manager->runByIds(Array, 8)
#12 src/XF/Mvc/Dispatcher.php(362): XF\Admin\Controller\ToolsController->actionRunJob(Object(XF\Mvc\ParameterBag))
#13 src/XF/Mvc/Dispatcher.php(264): XF\Mvc\Dispatcher->dispatchClass('XF:Tools', 'RunJob', Object(XF\Mvc\RouteMatch), Object(XF\Admin\Controller\ToolsController), NULL)
#14 src/XF/Mvc/Dispatcher.php(121): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(XF\Admin\Controller\ToolsController), NULL)
#15 src/XF/Mvc/Dispatcher.php(63): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#16 src/XF/App.php(2826): XF\Mvc\Dispatcher->run()
#17 src/XF.php(806): XF\App->run()
#18 admin.php(15): XF::runApp('XF\\Admin\\App')
#19 {main}

regards
oh thats XF2.3.4 btw

and also, confirmed on a default install ;)
 
Last edited:
hey @Naz ive decided to just try this but it didnt install on test....thoughts?

View attachment 314046

  • XF\Db\Exception: Batch install error: MySQL query error [1364]: Field 'prefix_cache' doesn't have a default value
  • src/XF/Db/AbstractStatement.php:230

Stack trace​

REPLACE INTO xf_nf_calendar_calendar (
category_id, title, description, parent_category_id, depth, lft, rgt, display_order,
event_count, last_event, last_event_title, last_event_id, breadcrumb_data, thread_node_id,
thread_prefix_id, background_color, border_color, text_color, background_event_display,
min_tags, event_image_required, event_location_required, event_rsvp_required, field_cache, venue_cache,
moderate_events)
VALUES (
'1', 'Example calendar', 'This is an example calendar used to house events created by the Calendar add-on.',
'0', '0', '1', '2', '1', '0', '0', '', '0', 'a:0:{}', '0', '0', '#01579B', '#002F6C', '#FFFFFF',
'0', '0', '0', '0', '0', '[]', '[]', '0');

------------

#0 src/XF/Db/Mysqli/Statement.php(207): XF\Db\AbstractStatement->getException('MySQL query err...', 1364, 'HY000')
#1 src/XF/Db/Mysqli/Statement.php(83): XF\Db\Mysqli\Statement->getException('MySQL query err...', 1364, 'HY000')
#2 src/XF/Db/AbstractAdapter.php(96): XF\Db\Mysqli\Statement->execute()
#3 src/addons/NF/Calendar/Setup.php(77): XF\Db\AbstractAdapter->query('
RE...')
#4 src/XF/AddOn/StepRunnerInstallTrait.php(62): NF\Calendar\Setup->installStep3(Array)
#5 src/XF/AddOn/StepRunnerInstallTrait.php(29): NF\Calendar\Setup->installStepRunner(3, Array)
#6 src/XF/Job/AddOnInstallBatch.php(299): NF\Calendar\Setup->install(Array)
#7 src/XF/Job/AddOnInstallBatch.php(95): XF\Job\AddOnInstallBatch->stepAction(Object(XF\Timer))
#8 src/XF/Job/Manager.php(275): XF\Job\AddOnInstallBatch->run(8)
#9 src/XF/Job/Manager.php(205): XF\Job\Manager->runJobInternal(Array, 8)
#10 src/XF/Job/Manager.php(121): XF\Job\Manager->runJobEntry(Array, 8)
#11 src/XF/Admin/Controller/ToolsController.php(146): XF\Job\Manager->runByIds(Array, 8)
#12 src/XF/Mvc/Dispatcher.php(362): XF\Admin\Controller\ToolsController->actionRunJob(Object(XF\Mvc\ParameterBag))
#13 src/XF/Mvc/Dispatcher.php(264): XF\Mvc\Dispatcher->dispatchClass('XF:Tools', 'RunJob', Object(XF\Mvc\RouteMatch), Object(XF\Admin\Controller\ToolsController), NULL)
#14 src/XF/Mvc/Dispatcher.php(121): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(XF\Admin\Controller\ToolsController), NULL)
#15 src/XF/Mvc/Dispatcher.php(63): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#16 src/XF/App.php(2826): XF\Mvc\Dispatcher->run()
#17 src/XF.php(806): XF\App->run()
#18 admin.php(15): XF::runApp('XF\\Admin\\App')
#19 {main}

regards
oh thats XF2.3.4 btw

and also, confirmed on a default install ;)
I'll get this fixed, thanks!
it seems they are still all printed on one main central calendar is that right?
Yes, that's correct.
is it possible to have more than one "base/parent calendar"? i see the navigation widget at least that looks good, but we really need multiple separate/unconnected instances...the main landing page on these demos seems like its only one calendar option, with all sub/separate calendars listed there together.

anyone?
I'm not really sure what you're trying to do. There isn't currently a way to have the calendar view render events from one calendar, if that's what you're wanting. If you can clarify what you're trying to do, I can probably provide better guidance.
 
I'm not really sure what you're trying to do. There isn't currently a way to have the calendar view render events from one calendar, if that's what you're wanting. If you can clarify what you're trying to do, I can probably provide better guidance.
i think im about to find out but im guessing it may be a hopeful future feature, seems like its close but....ok heres the closest example i could see without trying the code myself..from one of the demos a member posted here..

calendar example.webp

its basically a parent, then sub calendars which i would expect SHOULD be printed all on the parent....

what id like to see is, more than one parent....therefore, more than one main calendar "index" for main page....its easy to visualize from the widget, just double that display for example, but the main page needs a way to switch between the 2 parents....does that help?

for example this guy has got an extensive ukulele thing going on.....but if they wanted to add a percussion calendar and keep it separate sub calendars, they wont be able to do that?

id really like to reduce the clutter so for another example if there are podcast schedules as a parent, they can be from many members, non members etc and really fill the thing up....then another just something totally unrelated entirely people wouldnt want that all jammed into one list....its basically like a filter....maybe thats another way it could be done idk....

kind regards
 
Naz updated Calendar with a new update entry:

Version 2.5.4

  • Send an email / alert when an event a user is watching / RSVP'd to is starting soon.
  • Add ability to clone events allowing users to create a new event with the same details.
  • Fix error shown when trying to RSVP to monthly recurring events.
  • Fix issue when trying to add the example calendar in the add-on installer.
  • Remove erroneously displayed "Warn" link.

Read the rest of this update entry...
 
i think im about to find out but im guessing it may be a hopeful future feature, seems like its close but....ok heres the closest example i could see without trying the code myself..from one of the demos a member posted here..

View attachment 314055

its basically a parent, then sub calendars which i would expect SHOULD be printed all on the parent....

what id like to see is, more than one parent....therefore, more than one main calendar "index" for main page....its easy to visualize from the widget, just double that display for example, but the main page needs a way to switch between the 2 parents....does that help?

for example this guy has got an extensive ukulele thing going on.....but if they wanted to add a percussion calendar and keep it separate sub calendars, they wont be able to do that?

id really like to reduce the clutter so for another example if there are podcast schedules as a parent, they can be from many members, non members etc and really fill the thing up....then another just something totally unrelated entirely people wouldnt want that all jammed into one list....its basically like a filter....maybe thats another way it could be done idk....

kind regards
The latest version should solve the issue you were getting so you can have a try. It sounds like you're after multiple calendars and the ability to categorise them which this does provide. There isn't currently a way to filter the actual "calendar" view though.
 
The latest version should solve the issue you were getting so you can have a try. It sounds like you're after multiple calendars and the ability to categorise them which this does provide. There isn't currently a way to filter the actual "calendar" view though.
i will have to just look and see....

unfortunately this still broke during install and now all my test sites are fully broken...........
 
i will have to just look and see....

unfortunately this still broke during install and now all my test sites are fully broken...........
You can just install this version over the top of it and it should be fine. If you need help, you can drop me a DM.
 
Sorry, I realised I mistakenly uploaded an old zip without the fix included instead of the zip with the fix included. :rolleyes:

I've sorted this so installing with the corrected zip should work fine now.
 
working now....im probably going to have a few questions as im looking into, but the first thing i noticed is the year not being respected in notifications....its listing as 1970 for some reason? event def lists 2024...

regards
 
oh for the event color bg, it would be really cool if we could use gradients/images....please please at the least gradients, solid colors are kind of an eye jerk :)

regarding the functionality i was talking about tho....i want to think about it more still but basically im happy to see many of these options i didnt know would be in here or not......the main one tho, im still not sure...

its that "main calendar" idea i think, or even grid etc.... where everything is listed that i want to avoid....i just want things to show on their own calendars when you click the "switch to calendar" link.....or child events of course as well...

its so close seriously.....let see if i can explain proper..

-so if i set it to homepage: calendar view then month(basic) for default home page, thats ok like a calendar with all the stuff from everything on it ok that makes sense enough for a landing page...
-then from there click the "list" button. that has a list of all events from all calendars, with links to the specific calendar name its indexed by, on the event node right there already....
-then when you click that link, from the list page, it will show a grid of ONLY that calendars events but no way to get to a calendar view with that..which seems like should be default if home page is calendar view...or else you click switch to calendar it dumps you back to the calendar with every event from every calendar listed on it....
-instead it should show a calendar(proper) with only those events.....if the main page calendar view is selected. for now it simply refreshes the page to the grid view when clicking the specific calendar link.

i cant seem to get a calendar looking calendar to only show the events FOR THAT calendar(plus childs). the way the grid view does.

im fine with the landing page acting that way, but still want to be able to nav to an improved isolated calendar display somehow....

kind regards
 
Last edited:
...one other idea could be nice for navigation is to allow "category only" calendars like xfmg does....which cant have events posted to them.

regards
 
Back
Top Bottom