Skip to main content
Post - Make_Event error Started by ScottJB · · Read 89 times 0 Members and 1 Guest are viewing this topic.

Post - Make_Event error

This was originally caused by a search engine, and I followed the link and got the error.
However, not too sue if anyone would ever get just action=post as usually shows a board.
I do not have calendar enabled, so no idea why make event is even called for.


Code: [Copy]
Type of error: Undefined
 Warning: Undefined array key "make_event"
 /index.php?action=post
 File: /sources/ElkArte/Controller/Post.php—Line:205

Code: [Copy]
Warning: Undefined array key "make_event"
#0: {closure:ElkArte\Errors\ErrorHandler::__construct():53}()
Called from: /sources/ElkArte/Controller/Post.php line: 205
#1: _beforePrepareContext()
Called from: /sources/ElkArte/Controller/Post.php line: 117
#2: action_post()
Called from: /sources/ElkArte/Controller/Post.php line: 83
#3: action_index()
Called from: /sources/ElkArte/SiteDispatcher.php line: 421
#4: dispatch()
Called from: /index.php line: 143
#5: elk_main()
Called from: /index.php line: 71

Re: Post - Make_Event error

Reply #1

Bots having fun ... that line is about to give them the boot as well.  Lets make a small edit:

from
if (empty($board) && !$context['make_event'])
to
if (empty($board) && empty($context['make_event']))

Should prevent that error, I'd need to check on some other things in a bit.