Not a bug ParseError: src/vendor/minishlink/web-push/src/WebPush.php:24

au lait

Well-known member
Affected version
XF2.1 RC1
ParseError: syntax error, unexpected 'const' (T_CONST), expecting variable (T_VARIABLE) src/vendor/minishlink/web-push/src/WebPush.php:24

Code:
#0 src/vendor/composer/ClassLoader.php(322): Composer\Autoload\includeFile('/var/www/www-ro...')
#1 [internal function]: Composer\Autoload\ClassLoader->loadClass('Minishlink\\WebP...')
#2 src/XF/Service/PushNotification.php(274): spl_autoload_call('Minishlink\\WebP...')
#3 src/XF/Service/PushNotification.php(127): XF\Service\PushNotification->getWebPushObject()
#4 src/XF/Service/PusherTrait.php(64): XF\Service\PushNotification->sendNotifications()
#5 src/XF/Repository/UserAlert.php(147): XF\Service\Alert\Pusher->push()
#6 src/XF/Repository/UserAlert.php(111): XF\Repository\UserAlert->insertAlert(1, 701, 'mrnd', 'user', 1, 'following', Array)
#7 src/XF/Service/User/Follow.php(83): XF\Repository\UserAlert->alert(Object(SV\ModeratorEssentials\XF\Entity\User), 701, 'mrnd', 'user', 1, 'following')
#8 src/XF/Service/User/Follow.php(60): XF\Service\User\Follow->sendFollowingAlert()
#9 src/addons/xenMade/AFOR/XF/Pub/Controller/Register.php(26): XF\Service\User\Follow->follow()
#10 src/XF/Pub/Controller/Register.php(420): xenMade\AFOR\XF\Pub\Controller\Register->finalizeRegistration(Object(SV\ModeratorEssentials\XF\Entity\User))
#11 src/XF/Mvc/Dispatcher.php(321): XF\Pub\Controller\Register->actionRegister(Object(XF\Mvc\ParameterBag))
#12 src/XF/Mvc/Dispatcher.php(248): XF\Mvc\Dispatcher->dispatchClass('XF:Register', 'Register', Object(XF\Mvc\RouteMatch), Object(xenMade\AFOR\XF\Pub\Controller\Register), NULL)
#13 src/XF/Mvc/Dispatcher.php(100): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(xenMade\AFOR\XF\Pub\Controller\Register), NULL)
#14 src/XF/Mvc/Dispatcher.php(50): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#15 src/XF/App.php(2177): XF\Mvc\Dispatcher->run()
#16 src/XF.php(392): XF\App->run()
#17 index.php(20): XF::runApp('XF\\Pub\\App')
#18 {main}
 
That sounds like you are using a PHP version which is below the requirements for the push notification system (PHP 7.1). That isn't necessarily a bug, as push notifications can only be enabled if you have PHP 7.1 or above, but it would be good to understand how this has happened.

Were you running a version of PHP greater than 7.1 and have since downgraded it for some reason?
 
Ok, we'll close it then.

Can I ask why you're reporting issues on behalf of other users? That's not appropriate, when a bug is reported or support is required it should be the customer themselves that contact us directly so we have all of the information we require from the source and also check they're entitled to receive support.
 
Back
Top Bottom