XF 2.2 base and exponent overflow

ehd

Well-known member
HI,

as of today I get a lot of errors:

What could that cause?

Thanks!

#0 src/vendor/web-token/jwt-util-ecc/Math.php(53): gmp_pow(Object(GMP), 2)
#1 src/vendor/web-token/jwt-util-ecc/Curve.php(110): Jose\Component\Core\Util\Ecc\Math::pow(Object(GMP), 2)
#2 src/vendor/web-token/jwt-util-ecc/Curve.php(81): Jose\Component\Core\Util\Ecc\Curve->contains(Object(GMP), Object(GMP))
#3 src/vendor/web-token/jwt-util-ecc/Curve.php(101): Jose\Component\Core\Util\Ecc\Curve->getPoint(Object(GMP), Object(GMP))
#4 src/vendor/minishlink/web-push/src/Encryption.php(96): Jose\Component\Core\Util\Ecc\Curve->getPublicKeyFrom(Object(GMP), Object(GMP))
#5 src/vendor/minishlink/web-push/src/Encryption.php(59): Minishlink\WebPush\Encryption::deterministicEncrypt('{"title":"Neuer...', [invalid], [invalid], 'aes128gcm', Array, [invalid])
#6 src/vendor/minishlink/web-push/src/WebPush.php(220): Minishlink\WebPush\Encryption::encrypt('{"title":"Neuer...', 'BLq2b6mHEU3gqwC...', 'mEsfchTMVhS896n...', 'aes128gcm')
#7 src/vendor/minishlink/web-push/src/WebPush.php(168): Minishlink\WebPush\WebPush->prepare(Array)
#8 src/XF/Service/PushNotification.php(209): Minishlink\WebPush\WebPush->flush()
#9 src/XF/Service/PushNotification.php(179): XF\Service\PushNotification->handleResults(Object(Generator))
#10 src/XF/Service/PusherTrait.php(194): XF\Service\PushNotification->sendNotifications()
#11 src/XF/Repository/UserAlert.php(165): XF\Service\Alert\Pusher->push()
#12 src/XF/Repository/UserAlert.php(103): XF\Repository\UserAlert->insertAlert(78370, 37665, '...', 'post', 6137333, 'reaction', Array, Array)
#13 src/addons/Truonglv/IgnoreContent/XF/Repository/UserAlert.php(81): XF\Repository\UserAlert->alertFromUser(Object(SV\DailyStatistics\XF\Entity\User), Object(SV\DailyStatistics\XF\Entity\User), 'post', 6137333, 'reaction', Array, Array)
#14 src/XF/Reaction/AbstractHandler.php(187): Truonglv\IgnoreContent\XF\Repository\UserAlert->alertFromUser(Object(SV\DailyStatistics\XF\Entity\User), Object(SV\DailyStatistics\XF\Entity\User), 'post', 6137333, 'reaction', Array)
#15 src/XF/Repository/Reaction.php(203): XF\Reaction\AbstractHandler->sendReactionAlert(Object(SV\DailyStatistics\XF\Entity\User), Object(SV\DailyStatistics\XF\Entity\User), 6137333, Object(SV\ElasticSearchEssentials\XF\Entity\Post), 1)
#16 src/XF/Repository/Reaction.php(143): XF\Repository\Reaction->insertReaction(1, 'post', 6137333, Object(SV\DailyStatistics\XF\Entity\User), true, false)
#17 src/XF/ControllerPlugin/Reaction.php(62): XF\Repository\Reaction->reactToContent(1, 'post', 6137333, Object(SV\DailyStatistics\XF\Entity\User), true)
#18 src/XF/ControllerPlugin/Reaction.php(21): XF\ControllerPlugin\Reaction->actionToggleReaction(Object(SV\ElasticSearchEssentials\XF\Entity\Post), 'posts/reactions', 'posts')
#19 src/XF/ControllerPlugin/Reaction.php(14): XF\ControllerPlugin\Reaction->actionReact(Object(SV\ElasticSearchEssentials\XF\Entity\Post), 'posts', 'posts/react', 'posts/reactions')
#20 src/XF/Pub/Controller/Post.php(381): XF\ControllerPlugin\Reaction->actionReactSimple(Object(SV\ElasticSearchEssentials\XF\Entity\Post), 'posts')
#21 src/XF/Mvc/Dispatcher.php(352): XF\Pub\Controller\Post->actionReact(Object(XF\Mvc\ParameterBag))
#22 src/XF/Mvc/Dispatcher.php(258): XF\Mvc\Dispatcher->dispatchClass('XF:Post', 'React', Object(XF\Mvc\RouteMatch), Object(SV\UserEssentials\XF\Pub\Controller\Post), NULL)
#23 src/XF/Mvc/Dispatcher.php(115): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(SV\UserEssentials\XF\Pub\Controller\Post), NULL)
#24 src/XF/Mvc/Dispatcher.php(57): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#25 src/XF/App.php(2485): XF\Mvc\Dispatcher->run()
#26 src/XF.php(524): XF\App->run()
#27 index.php(20): XF::runApp('XF\\Pub\\App')
#28 {main}
Status der Anfrage
array(4) {
["url"] => string(40) "/forum/posts/6137333/react?reaction_id=1"
["referrer"] => string(91) "...page-10780"
["_GET"] => array(1) {
["reaction_id"] => string(1) "1"
}
["_POST"] => array(4) {
["_xfRequestUri"] => string(60) "/forum/.../page-10780"
["_xfWithData"] => string(1) "1"
["_xfToken"] => string(8) "********"
["_xfResponseType"] => string(4) "json"
}
}
 
XF 2.2 is not compatible with PHP 8.2.

Are you actually running 2.2.0 or a later version of 2.2?

If PHP was recently upgraded then that would likely account for the errors if they started then.
 
Here we go:

 
Also got errors on 8.2.26 but i cant switch to previous minor version so i ended up going to 8.1
I guess we need to wait for next minor 8.2 version to make errors go away? Is it PHP or XF issue? My xf ver is 2.2.16
 
Last edited:
We suddenly started to get this error as of 06:15 this morning, worked fine up to now.
The only thing I've noticed is cPanel updated at some point to 124.0.17 but not sure exactly when.

XF 8.2.26
PHP 2.2.16

I've reverted back to an earlier version of php temporarily
 
I'm getting hammered with these today, and every reply to a thread generates a new error:


Code:
ValueError: base and exponent overflow in src/vendor/web-token/jwt-util-ecc/Math.php at line 53
[LIST=1]
[*]gmp_pow() in src/vendor/web-token/jwt-util-ecc/Math.php at line 53
[*]Jose\Component\Core\Util\Ecc\Math::pow() in src/vendor/web-token/jwt-util-ecc/Curve.php at line 110
[*]Jose\Component\Core\Util\Ecc\Curve->contains() in src/vendor/web-token/jwt-util-ecc/Curve.php at line 81
[*]Jose\Component\Core\Util\Ecc\Curve->getPoint() in src/vendor/web-token/jwt-util-ecc/Curve.php at line 101
[*]Jose\Component\Core\Util\Ecc\Curve->getPublicKeyFrom() in src/vendor/minishlink/web-push/src/Encryption.php at line 96
[*]Minishlink\WebPush\Encryption::deterministicEncrypt() in src/vendor/minishlink/web-push/src/Encryption.php at line 59
[*]Minishlink\WebPush\Encryption::encrypt() in src/vendor/minishlink/web-push/src/WebPush.php at line 220
[*]Minishlink\WebPush\WebPush->prepare() in src/vendor/minishlink/web-push/src/WebPush.php at line 168
[*]Minishlink\WebPush\WebPush->flush() in src/addons/DigitalPoint/PWA/XF/Service/PushNotification.php at line 21
[*]DigitalPoint\PWA\XF\Service\PushNotification->handleResults() in src/XF/Service/PushNotification.php at line 179
[*]XF\Service\PushNotification->sendNotifications() in src/XF/Service/PusherTrait.php at line 194
[*]XF\Service\Alert\Pusher->push() in src/XF/Repository/UserAlert.php at line 165
[*]XF\Repository\UserAlert->insertAlert() in src/addons/SV/AlertImprovements/XF/Repository/UserAlertAutoReadPatch.php at line 18
[*]SV\AlertImprovements\XF\Repository\UserAlertAutoReadPatch->insertAlert() in src/XF/Repository/UserAlert.php at line 116
[*]XF\Repository\UserAlert->alert() in src/addons/SV/UserMentionsImprovements/XF/Repository/UserAlert.php at line 21
[*]SV\UserMentionsImprovements\XF\Repository\UserAlert->alert() in src/XF/Notifier/AbstractNotifier.php at line 62
[*]XF\Notifier\AbstractNotifier->basicAlert() in src/XF/Notifier/Post/ForumWatch.php at line 57
[*]XF\Notifier\Post\ForumWatch->sendAlert() in src/XF/Service/AbstractNotifier.php at line 88
[*]XF\Service\AbstractNotifier->notifyType() in src/XF/Service/AbstractNotifier.php at line 46
[*]XF\Service\AbstractNotifier->notify() in src/addons/SV/UserMentionsImprovements/XF/Service/Post/Notifier.php at line 100
[*]SV\UserMentionsImprovements\XF\Service\Post\Notifier->notify() in src/addons/SV/UserMentionsImprovements/XF/Service/Post/Notifier.php at line 84
[*]SV\UserMentionsImprovements\XF\Service\Post\Notifier->notifyAndEnqueue() in src/XF/Service/Thread/Replier.php at line 252
[*]XF\Service\Thread\Replier->sendNotifications() in src/XF/Pub/Controller/Thread.php at line 459
[*]XF\Pub\Controller\Thread->finalizeThreadReply() in src/addons/SV/UserEssentials/XF/Pub/Controller/Thread.php at line 46
[*]SV\UserEssentials\XF\Pub\Controller\Thread->finalizeThreadReply() in src/XF/Pub/Controller/Thread.php at line 618
[*]XF\Pub\Controller\Thread->actionAddReply() in src/XF/Mvc/Dispatcher.php at line 352
[*]XF\Mvc\Dispatcher->dispatchClass() in src/XF/Mvc/Dispatcher.php at line 258
[*]XF\Mvc\Dispatcher->dispatchFromMatch() in src/XF/Mvc/Dispatcher.php at line 115
[*]XF\Mvc\Dispatcher->dispatchLoop() in src/XF/Mvc/Dispatcher.php at line 57
[*]XF\Mvc\Dispatcher->run() in src/XF/App.php at line 2485
[*]XF\App->run() in src/XF.php at line 524
[*]XF::runApp() in index.php at line 20
[/LIST]

Rolled PHP back to 8.1.31 and the errors stopped.
 
We get on average 400+ posts a day and between 6:15 and 12:00 today had three pages of errors, approx 55 errors. So not every post generating errors, just some.
Currently rolled back to php 8.1.31 and no issues other than the XF nag in ACP saying that php8.2 is recommended :)

Hopefully a new build will be rolled out to fix the issue in the near future.
 
My SysAdmin says it's related to Push Notifications, specific to PHP 8.2.26 (my server auto-updated from 8.2.25 at 3:15a this morning, and the errors began)

I seemed to pick that up in the error as well but thought it was PWA related maybe.

Wonder if there is a method for us to just temporarily disable them across the board without impacting anyones settings?
 
Back
Top Bottom