【環境情報】
・baserCMSのバージョン:(例)4.2.1
・レンタルサーバー名:Xserver (PHP 7.4.33)
・使用テーマ:オリジナル
・PHPスキル(自己評価):D
すでにあったお問い合わせフォームを複製して、別のフォームページ(スラッグ:recruit-form)を作成したんですが、送信時に下記エラーが表示されます。
「Error: The request sent to the address ‘/recruit-form/confirm’ was invalid.」
デバッグモード1に切り替えると
以下の表示が出ます。
何らかの理由でメールが送信できませんでした。
Error: The request sent to the address '/recruit-form/confirm' was invalid.
Stack Trace
CORE/Baser/Event/CakeEventManager.php line 243 → EnableReCaptchaControllerEventListener->mailMailBeforeRender(CakeEvent)
if ($listener['passParams'] === true) {
$result = call_user_func_array($listener['callable'], $event->data);
} else {
$result = call_user_func($listener['callable'], $event);
}
CORE/Baser/Event/BcEventDispatcher.php line 64 → CakeEventManager->dispatch(CakeEvent)
$event = new CakeEvent($evnetName, $subject, $params);
$event->modParams = $modParams;
$EventManager->dispatch($event);
CORE/Baser/Controller/BcAppController.php line 1579 → BcEventDispatcher::dispatch(string, MailController, null, array)
'class' => $this->name
], $options);
App::uses('BcEventDispatcher', 'Event');
return BcEventDispatcher::dispatch($name, $this, $params, $options);
}
CORE/Baser/Event/BcControllerEventDispatcher.php line 81 → BcAppController->dispatchEvent(string, null)
if(!method_exists($event->subject(), 'dispatchEvent')) {
return;
}
$event->subject->dispatchEvent('beforeRender', $event->data);
}
CORE/Baser/Event/CakeEventManager.php line 243 → BcControllerEventDispatcher->beforeRender(CakeEvent)
if ($listener['passParams'] === true) {
$result = call_user_func_array($listener['callable'], $event->data);
} else {
$result = call_user_func($listener['callable'], $event);
}
CORE/Cake/Controller/Controller.php line 941 → CakeEventManager->dispatch(CakeEvent)
*/
public function render($view = null, $layout = null) {
$event = new CakeEvent('Controller.beforeRender', $this);
$this->getEventManager()->dispatch($event);
if ($event->isStopped()) {
CORE/Baser/Plugin/Mail/Controller/MailController.php line 294 → Controller->render(string)
$this->set('editLink', ['admin' => true, 'plugin' => 'mail', 'controller' => 'mail_contents', 'action' => 'edit', $this->dbDatas['mailContent']['MailContent']['id']]);
}
$this->set('mailContent', $this->dbDatas['mailContent']);
$this->render($this->dbDatas['mailContent']['MailContent']['form_template'] . DS . 'confirm');
}
[internal function] → MailController->confirm()
CORE/Cake/Controller/Controller.php line 499 → ReflectionMethod->invokeArgs(MailController, array)
'action' => $request->params['action']
));
}
return $method->invokeArgs($this, $request->params['pass']);
CORE/Cake/Routing/Dispatcher.php line 193 → Controller->invokeAction(CakeRequest)
$response = $controller->response;
$render = true;
$result = $controller->invokeAction($request);
if ($result instanceof CakeResponse) {
CORE/Cake/Routing/Dispatcher.php line 167 → Dispatcher->_invoke(MailController, CakeRequest)
));
}
$response = $this->_invoke($controller, $request);
if (isset($request->params['return'])) {
ROOT/index.php line 158 → Dispatcher->dispatch(CakeRequest, CakeResponse)
$Dispatcher = new Dispatcher();
$Dispatcher->dispatch(
new CakeRequest(),
new CakeResponse()
);```
どこに原因があるのか分からず困っております。
エラーの理由をご教授いただけると幸いです。
よろしくお願いします。