Calendar crashes any search

Third Party Plugins to CMSimple - how to install, use and create plugins

Moderator: Tata

Post Reply
swammerdam
Posts: 9
Joined: Mon May 17, 2021 8:32 pm

Calendar crashes any search

Post by swammerdam » Fri May 21, 2021 3:38 pm

Uncaught Error: Call to undefined method Calendar\EditEventsController::doDefaultAction() in /home/efialt/web/spsy.eedd.cc/public_html/plugins/calendar/classes/Plugin.php:232
Stack trace:
#0 /home/efialt/web/spsy.eedd.cc/public_html/plugins/calendar/classes/Plugin.php(83) : eval()'d code(2): Calendar\Plugin::editEvents()
#1 /home/efialt/web/spsy.eedd.cc/public_html/cmsimple/functions.php(242) : eval()'d code(1): editevents()
#2 /home/efialt/web/spsy.eedd.cc/public_html/cmsimple/functions.php(242): eval()
#3 /home/efialt/web/spsy.eedd.cc/public_html/cmsimple/functions.php(202): XH_evaluateSinglePluginCall()
#4 /home/efialt/web/spsy.eedd.cc/public_html/cmsimple/classes/Search.php(134): evaluate_plugincall()
#5 /home/efialt/web/spsy.eedd.cc/public_html/cmsimple/classes/Search.php(102): XH\Search->prepareContent()
#6 /home/efialt/web/spsy.eedd.cc/public_html/cmsimple/classes/Search.php(182): XH\Search->search()
#7 /home/efialt/web/spsy.eedd.cc/public_html/cmsimple/classes/Controller.php(54): XH\Search->render()
# in /home/efialt/web/spsy.eedd.cc/public_html/plugins/calendar/classes/Plugin.php on line 232

swammerdam
Posts: 9
Joined: Mon May 17, 2021 8:32 pm

Re: Calendar crashes any search

Post by swammerdam » Fri May 21, 2021 4:32 pm

Fixed by creating a copy of function defaultAction and naming it doDefaultAction.
I understand that it is not a solution, just "die Krücke".

cmb
Posts: 13696
Joined: Tue Jun 21, 2011 11:04 am
Location: Mü-Sa, RLP, DE
Contact:

Re: Calendar crashes any search

Post by cmb » Fri May 21, 2021 10:16 pm

swammerdam wrote:
Fri May 21, 2021 3:38 pm
Uncaught Error: Call to undefined method Calendar\EditEventsController::doDefaultAction() in
Apparently, you are using a search functionality which sends a POST request; I had not anticipated that (the standard search functionality of CMSimple_XH makes a GET request). While I don't think that a POST request makes sense here, I can imagine that there are templates and custom search forms which POST, so I need to think about a solution. For now, your workaround should be fine.
Christoph M. Becker – Plugins for CMSimple_XH

cmb
Posts: 13696
Joined: Tue Jun 21, 2011 11:04 am
Location: Mü-Sa, RLP, DE
Contact:

Re: Calendar crashes any search

Post by cmb » Mon May 24, 2021 4:01 pm

This is fixed in Calendar_XH 2.2. Thnaks for reporting the bug!
Christoph M. Becker – Plugins for CMSimple_XH

Post Reply