XF 2.1 An error occurs when a user publishes a thread.

dadpuberty

Member
Server error log
  • ErrorException: [E_USER_WARNING] [WebPush] gmp extension is not loaded but is required for sending push notifications with payload or for VAPID authentication. You can fix this in your php.ini.
  • src/vendor/minishlink/web-push/src/WebPush.php:72
  • By: Tea Time
  • 1:22 pm on 19nj
Stack trace
#0 [internal function]: XF::handlePhpError(512, '[E_USER_WARNING...', '/var/www/guf/fo...', 72, Array)
#1 src/vendor/minishlink/web-push/src/WebPush.php(72): trigger_error('[WebPush] gmp e...', 512)
#2 src/XF/Service/PushNotification.php(274): Minishlink\WebPush\WebPush->__construct(Array, Array, 10, Array)
#3 src/addons/MobileApps/XF/Service/PushNotification.php(73): XF\Service\PushNotification->getWebPushObject()
#4 src/XF/Service/PusherTrait.php(87): MobileApps\XF\Service\PushNotification->sendNotifications()
#5 src/addons/MobileApps/XF/Repository/UserAlert.php(36): XF\Service\Alert\Pusher->push()
#6 src/XF/Repository/UserAlert.php(111): MobileApps\XF\Repository\UserAlert->insertAlert(1, 32, '티타임', 'post', 139, 'insert', Array)
#7 src/XF/Notifier/AbstractNotifier.php(55): XF\Repository\UserAlert->alert(Object(ThemeHouse\ImageOptimizer\XF\Entity\User), 32, '티타임', 'post', 139, 'insert', Array)
#8 src/XF/Notifier/Post/AbstractWatch.php(104): XF\Notifier\AbstractNotifier->basicAlert(Object(ThemeHouse\ImageOptimizer\XF\Entity\User), 32, '티타임', 'post', 139, 'insert')
#9 src/XF/Service/AbstractNotifier.php(86): XF\Notifier\Post\AbstractWatch->sendAlert(Object(ThemeHouse\ImageOptimizer\XF\Entity\User))
#10 src/XF/Service/AbstractNotifier.php(44): XF\Service\AbstractNotifier->notifyType(Object(XF\Notifier\Post\ForumWatch), Array, G)
#11 src/XF/Service/AbstractNotifier.php(56): XF\Service\AbstractNotifier->notify(3)
#12 src/XF/Service/Thread/Creator.php(328): XF\Service\AbstractNotifier->notifyAndEnqueue(3)
#13 src/XF/Pub/Controller/Forum.php(593): XF\Service\Thread\Creator->sendNotifications()
#14 src/XF/Pub/Controller/Forum.php(751): XF\Pub\Controller\Forum->finalizeThreadCreate(Object(XF\Service\Thread\Creator))
#15 src/addons/VideoUploads/XF/Pub/Controller/Forum.php(11): XF\Pub\Controller\Forum->actionPostThread(Object(XF\Mvc\ParameterBag))
#16 src/XF/Mvc/Dispatcher.php(321): VideoUploads\XF\Pub\Controller\Forum->actionPostThread(Object(XF\Mvc\ParameterBag))
#17 src/XF/Mvc/Dispatcher.php(248): XF\Mvc\Dispatcher->dispatchClass('XF:Forum', 'PostThread', Object(XF\Mvc\RouteMatch), Object(VideoUploads\XF\Pub\Controller\Forum), NULL)
#18 src/XF/Mvc/Dispatcher.php(100): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(VideoUploads\XF\Pub\Controller\Forum), NULL)
#19 src/XF/Mvc/Dispatcher.php(50): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#20 src/XF/App.php(2177): XF\Mvc\Dispatcher->run()
#21 src/XF.php(390): XF\App->run()
#22 index.php(20): XF::runApp('XF\\Pub\\App')
#23 {main}
Request Status
array(4) {
["url"] => string(84) "/forum/forums/%EC%A0%9C%EC%95%88-%EB%B0%8F-%ED%94%BC%EB%93%9C%EB%B0%B1.3/post-thread"
["referrer"] => string(101) "https://guf.co.kr/forum/forums/제안-및-피드백.3/post-thread"
["_GET"] => array(1) {
["/forum/forums/제안-및-피드백_3/post-thread"] => string(0) ""
}
["_POST"] => array(14) {
["title"] => string(6) "ㅇㅇ"
["message_html"] => string(13) "<p>ㅇㅇ</p>"
["attachment_hash"] => string(32) "725de2e85a79f47b48af0ee10201b6b6"
["attachment_hash_combined"] => string(81) "{"type":"post","context":{"node_id":3},"hash":"725de2e85a79f47b48af0ee10201b6b6"}"
["watch_thread"] => string(1) "1"
["watch_thread_email"] => string(1) "1"
["_xfSet"] => array(3) {
["watch_thread"] => string(1) "1"
["discussion_open"] => string(1) "1"
["sticky"] => string(1) "1"
}
["discussion_open"] => string(1) "1"
["sticky"] => string(1) "1"
["poll"] => array(5) {
["question"] => string(0) ""
 
The screenshot is the contents of the following path.
src / vendor / minishlink / web-push / src / WebPush.php: 72

I do not have the knowledge to make corrections.
I need help.

Situation explanation:
The administrator ID can normally post threads.

An error occurred when posting a thread with a user ID.
 
after installing

ErrorException: [VAPID] Public key should be 65 bytes long when decoded. src / vendor / minishlink / web-push / src / VAPID.php: 74

An error occurs.

I can not find a solution. I would appreciate your attention.
 
Back
Top Bottom