XF 2.1 Server errors after upgrading server - not sure if they are related

Alternadiv

Well-known member
I just upgraded from shared hosting to a VPS. Something I wasn't expecting to happen is the mess it caused as far as DNS propagation goes. We are almost 24 hours later now and some devices/browsers are still seeing old and broken versions of the website. And that is even with clearing cache and flushing system DNS. I didn't change hosting providers so I wasn't expecting problems.

Now that some of us are able to see the website on the new server and without weird errors in the layout (missing CSS), there are server errors being thrown when making a post/message/submitting anything really. I am hoping this is because the DNS propagation isn't done but I do want to make sure these errors aren't something more severe that are going to continue for a while.

Code:
    ParseError: syntax error, unexpected 'const' (T_CONST), expecting variable (T_VARIABLE) src/vendor/minishlink/web-push/src/WebPush.php:24

    Generated by: Mr. Nobody May 30, 2019 at 8:37 AM

Stack trace

#0 src/vendor/composer/ClassLoader.php(322): Composer\Autoload\includeFile('/home/tacomagc/...')
#1 [internal function]: Composer\Autoload\ClassLoader->loadClass('Minishlink\\WebP...')
#2 src/XF/Service/PushNotification.php(278): spl_autoload_call('Minishlink\\WebP...')
#3 src/XF/Service/PushNotification.php(127): XF\Service\PushNotification->getWebPushObject()
#4 src/XF/Service/PusherTrait.php(159): 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, 184, 'Mr. Nobody', 'post', 34978, 'quote', Array)
#7 src/XF/Notifier/AbstractNotifier.php(55): XF\Repository\UserAlert->alert(Object(XF\Entity\User), 184, 'Mr. Nobody', 'post', 34978, 'quote', Array)
#8 src/XF/Notifier/Post/Quote.php(30): XF\Notifier\AbstractNotifier->basicAlert(Object(XF\Entity\User), 184, 'Mr. Nobody', 'post', 34978, 'quote')
#9 src/XF/Service/AbstractNotifier.php(86): XF\Notifier\Post\Quote->sendAlert(Object(XF\Entity\User))
#10 src/XF/Service/AbstractNotifier.php(44): XF\Service\AbstractNotifier->notifyType(Object(XF\Notifier\Post\Quote), Array, G)
#11 src/XF/Service/AbstractNotifier.php(56): XF\Service\AbstractNotifier->notify(3)
#12 src/XF/Service/Thread/Replier.php(205): XF\Service\AbstractNotifier->notifyAndEnqueue(3)
#13 src/XF/Pub/Controller/Thread.php(330): XF\Service\Thread\Replier->sendNotifications()
#14 src/XF/Pub/Controller/Thread.php(463): XF\Pub\Controller\Thread->finalizeThreadReply(Object(XF\Service\Thread\Replier))
#15 src/XF/Mvc/Dispatcher.php(321): XF\Pub\Controller\Thread->actionAddReply(Object(XF\Mvc\ParameterBag))
#16 src/XF/Mvc/Dispatcher.php(248): XF\Mvc\Dispatcher->dispatchClass('XF:Thread', 'AddReply', Object(XF\Mvc\RouteMatch), Object(SV\AlertImprovements\XF\Pub\Controller\Thread), NULL)
#17 src/XF/Mvc/Dispatcher.php(100): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(SV\AlertImprovements\XF\Pub\Controller\Thread), NULL)
#18 src/XF/Mvc/Dispatcher.php(50): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#19 src/XF/App.php(2177): XF\Mvc\Dispatcher->run()
#20 src/XF.php(390): XF\App->run()
#21 index.php(20): XF::runApp('XF\\Pub\\App')
#22 {main}

Request state

array(4) {
  ["url"] => string(61) "/threads/unexpected-downtime-today-may-29-2019.8796/add-reply"
  ["referrer"] => string(72) "https://tacoma3g.com/threads/unexpected-downtime-today-may-29-2019.8796/"
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(9) {
    ["message_html"] => string(278) "<p>[QUOTE="Tyler, post: 34977, member: 1"]</p><p>This really sucks. If I knew this was going to happen I would’ve waited until Saturday when the site is less busy.</p><p>[/QUOTE]</p><p><br></p><p>It's all good @Tyler !! You meant well, sometimes s**t happens 🤷‍♂️</p>"
    ["attachment_hash"] => string(32) "d5576d4aebeffdcf9f6a5d4e2240c041"
    ["attachment_hash_combined"] => string(86) "{"type":"post","context":{"thread_id":8796},"hash":"d5576d4aebeffdcf9f6a5d4e2240c041"}"
    ["last_date"] => string(10) "1559189517"
    ["last_known_date"] => string(10) "1559189517"
    ["_xfToken"] => string(8) "********"
    ["_xfRequestUri"] => string(52) "/threads/unexpected-downtime-today-may-29-2019.8796/"
    ["_xfWithData"] => string(1) "1"
    ["_xfResponseType"] => string(4) "json"
  }
}
 
Another thing I'm noticing is seeing members viewing specific threads even though the board is currently closed. That must mean they are able to see those threads on the broken version of the site at the old IP address.
 
DNS propagation can take up to 72 hours - or even longer with certain ISPs, especially mobile ISPs.

You can check the progress of DNS propagation at


or

Yes, but the checker websites are showing the new IP address across the board. Also, is that what this server error is about?
 
Yes, but the checker websites are showing the new IP address across the board. Also, is that what this server error is about?
I was responding to this part of your OP:

I just upgraded from shared hosting to a VPS. Something I wasn't expecting to happen is the mess it caused as far as DNS propagation goes. We are almost 24 hours later now and some devices/browsers are still seeing old and broken versions of the website.

The quoted errors look to me like either moving to the VPS also changed the active PHP version which is creating conflicts, perhapzx with addons, and/or not all of your files were transferred.
 
I was responding to this part of your OP:



The quoted errors look to me like either moving to the VPS also changed the active PHP version which is creating conflicts, perhapzx with addons, and/or not all of your files were transferred.
The PHP version before the move was the latest, after the move it was 7.0 or 7.1 (already forgot), and now because you said that I moved it back to 7.3. Hopefully that was the issue. Thank you.
 
Dang, now this one:

Code:
    XF\CssRenderException: Error rendering template public:app.less: ParseError: Unexpected input in public:app.less on line 6981, column 3 (on or near line 6981) src/XF/CssRenderException.php:87

    Generated by: Unknown account May 30, 2019 at 9:48 AM

Stack trace

 6978 |         color: rgb(75, 78, 65);
 6979 |     background: rgb(234, 236, 227);
 6980 |     border-color: rgb(199, 202, 189);
*6981*|         a { color: #998A6C; } { color: #998A6C; }
 6982 |     }
 6983 |     .shareButtons-button.shareButtons-button--instagram:hover {    background-color: #8a3ab9; }
 6984 |     .shareButtons-button.shareButtons-button--email:hover {    background-color: #6f6f6f; }
------------

#0 src/XF/CssRenderer.php(408): XF\CssRenderException::createFromLessException(Object(Less_Exception_Chunk), 'public:app.less', '// Note that th...')
#1 src/XF/CssRenderer.php(342): XF\CssRenderer->renderToCss('public:app.less', '// Note that th...')
#2 src/XF/CssRenderer.php(250): XF\CssRenderer->renderTemplate('public:app.less', NULL)
#3 src/XF/CssRenderer.php(116): XF\CssRenderer->renderTemplates(Array, Array, Array)
#4 src/XF/CssWriter.php(53): XF\CssRenderer->render(Array)
#5 css.php(30): XF\CssWriter->run(Array, 4, 1, '9df9bc9b2a89930...')
#6 {main}

-------------

Previous Less_Exception_Chunk: ParseError: Unexpected input in anonymous-file-0.less on line 6981, column 3
6979|     background: rgb(234, 236, 227);
6980|     border-color: rgb(199, 202, 189);
6981|         a { color: #998A6C; } { color: #998A6C; }
6982|     }
6983|     .shareButtons-button.shareButtons-button--instagram:hover {    background-color: #8a3ab9; }
6984|     .shareButtons-button.shareButtons-button--email:hover {    background-color: #6f6f6f; } - src/vendor/oyejorge/less.php/lib/Less/Parser.php:677
#0 src/vendor/oyejorge/less.php/lib/Less/Parser.php(621): Less_Parser->GetRules(NULL)
#1 src/vendor/oyejorge/less.php/lib/Less/Parser.php(449): Less_Parser->_parse()
#2 src/XF/CssRenderer.php(404): Less_Parser->parse('// Note that th...')
#3 src/XF/CssRenderer.php(342): XF\CssRenderer->renderToCss('public:app.less', '// Note that th...')
#4 src/XF/CssRenderer.php(250): XF\CssRenderer->renderTemplate('public:app.less', NULL)
#5 src/XF/CssRenderer.php(116): XF\CssRenderer->renderTemplates(Array, Array, Array)
#6 src/XF/CssWriter.php(53): XF\CssRenderer->render(Array)
#7 css.php(30): XF\CssWriter->run(Array, 4, 1, '9df9bc9b2a89930...')
#8 {main}

Request state

array(4) {
  ["url"] => string(140) "/css.php?css=public%3Anormalize.css%2Cpublic%3Acore.less%2Cpublic%3Aapp.less&s=4&l=1&d=1559234905&k=9df9bc9b2a89930fb56d759d99b3fabab547ddc4"
  ["referrer"] => string(85) "https://tacoma3g.com/threads/help-me-pick-out-some-leafs-icon-rxt-2-vs-dakar-hd.1020/"
  ["_GET"] => array(5) {
    ["css"] => string(53) "public:normalize.css,public:core.less,public:app.less"
    ["s"] => string(1) "4"
    ["l"] => string(1) "1"
    ["d"] => string(10) "1559234905"
    ["k"] => string(40) "9df9bc9b2a89930fb56d759d99b3fabab547ddc4"
  }
  ["_POST"] => array(0) {
  }
}
 
Top Bottom