Jump to content

Error 500 after 7.2.1 Upgrade


Recommended Posts

Hello,

 

after update to 7.2.1 we get a Error 500 on the frontend.

Backend is working well, but our frontend isn´t working...

Error: exception 'Whoops\Exception\ErrorException' with message 'file(english.php): failed to open stream: No such file or directory' in /var/www/virtual/domain.tld/portal/htdocs/lang/langupdate.php:11 Stack trace: #0 [internal function]: Whoops\Run->handleError(2, 'file(english.ph...', '/var/www/virtua...', 11, Array) #1 /var/www/virtual/domain.tld/portal/htdocs/lang/langupdate.php(11): file('english.php') #2 /var/www/virtual/domain.tld/portal/htdocs/vendor/whmcs/whmcs-foundation/lib/Language/Loader/WhmcsLoader.php(0): unknown() #3 /var/www/virtual/domain.tld/portal/htdocs/vendor/symfony/translation/Translator.php(416): WHMCS\Language\Loader\WhmcsLoader->load('/var/www/virtua...', 'langupdate', 'messages') #4 /var/www/virtual/domain.tld/portal/htdocs/vendor/symfony/translation/Translator.php(427): Symfony\Component\Translation\Translator->doLoadCatalogue('langupdate') #5 /var/www/virtual/domain.tld/portal/htdocs/vendor/symfony/translation/Translator.php(312): Symfony\Component\Translation\Translator->loadFallbackCatalogues('override_langup...') #6 /var/www/virtual/domain.tld/portal/htdocs/vendor/symfony/translation/Translator.php(292): Symfony\Component\Translation\Translator->initializeCatalogue('override_langup...') #7 /var/www/virtual/domain.tld/portal/htdocs/vendor/symfony/translation/Translator.php(248): Symfony\Component\Translation\Translator->loadCatalogue('override_langup...') #8 /var/www/virtual/domain.tld/portal/htdocs/vendor/symfony/translation/Translator.php(209): Symfony\Component\Translation\Translator->getCatalogue(NULL) #9 /var/www/virtual/domain.tld/portal/htdocs/vendor/whmcs/whmcs-foundation/lib/Language/AbstractLanguage.php(0): Symfony\Component\Translation\Translator->trans() #10 /var/www/virtual/domain.tld/portal/htdocs/vendor/whmcs/whmcs-foundation/lib/Language/AbstractLanguage.php(0): WHMCS\Language\AbstractLanguage->getLanguageLocale() #11 /var/www/virtual/domain.tld/portal/htdocs/vendor/illuminate/support/Facades/Facade.php(215): WHMCS\Language\AbstractLanguage::getLocales() #12 /var/www/virtual/domain.tld/portal/htdocs/vendor/whmcs/whmcs-foundation/lib/ClientArea.php(0): Illuminate\Support\Facades\Facade::__callStatic('getLocales', Array) #13 /var/www/virtual/domain.tld/portal/htdocs/vendor/whmcs/whmcs-foundation/lib/ClientArea.php(0): WHMCS\ClientArea->outputWithoutExit() #14 /var/www/virtual/domain.tld/portal/htdocs/vendor/whmcs/whmcs-foundation/lib/Http/Message/AbstractViewableResponse.php(0): WHMCS\ClientArea->getOutputContent() #15 /var/www/virtual/domain.tld/portal/htdocs/vendor/middlewares/utils/src/CallableHandler.php(39): WHMCS\Http\Message\AbstractViewableResponse->getBody() #16 /var/www/virtual/domain.tld/portal/htdocs/vendor/middlewares/fast-route/src/FastRoute.php(96): Middlewares\Utils\CallableHandler::execute(Array, Array) #17 /var/www/virtual/domain.tld/portal/htdocs/vendor/whmcs/whmcs-foundation/lib/Route/RouteServiceProvider.php(0): Middlewares\FastRoute->process() #18 [internal function]: WHMCS\Route\RouteServiceProvider->WHMCS\Route\{closure}(Object(WHMCS\Http\Message\ServerRequest), Object(Middlewares\Utils\Delegate)) #19 /var/www/virtual/domain.tld/portal/htdocs/vendor/middlewares/utils/src/CallableHandler.php(26): call_user_func_array(Object(Closure), Array) #20 /var/www/virtual/domain.tld/portal/htdocs/vendor/middlewares/utils/src/CallableMiddleware.php(37): Middlewares\Utils\CallableHandler::execute(Object(Closure), Array) #21 /var/www/virtual/domain.tld/portal/htdocs/vendor/middlewares/utils/src/Dispatcher.php(76): Middlewares\Utils\CallableMiddleware->process(Object(WHMCS\Http\Message\ServerRequest), Object(Middlewares\Utils\Delegate)) #22 [internal function]: Middlewares\Utils\Dispatcher->Middlewares\Utils\{closure}(Object(WHMCS\Http\Message\ServerRequest)) #23 /var/www/virtual/domain.tld/portal/htdocs/vendor/middlewares/utils/src/Delegate.php(31): call_user_func(Object(Closure), Object(WHMCS\Http\Message\ServerRequest)) #24 /var/www/virtual/domain.tld/portal/htdocs/vendor/whmcs/whmcs-foundation/lib/Route/Middleware/RoutableAdminRequestUri.php(0): Middlewares\Utils\Delegate->process() #25 /var/www/virtual/domain.tld/portal/htdocs/vendor/middlewares/utils/src/Dispatcher.php(76): WHMCS\Route\Middleware\RoutableAdminRequestUri->process(Object(WHMCS\Http\Message\ServerRequest), Object(Middlewares\Utils\Delegate)) #26 [internal function]: Middlewares\Utils\Dispatcher->Middlewares\Utils\{closure}(Object(WHMCS\Http\Message\ServerRequest)) #27 /var/www/virtual/domain.tld/portal/htdocs/vendor/middlewares/utils/src/Delegate.php(31): call_user_func(Object(Closure), Object(WHMCS\Http\Message\ServerRequest)) #28 /var/www/virtual/domain.tld/portal/htdocs/vendor/whmcs/whmcs-foundation/lib/Route/Middleware/RoutableClientModuleRequest.php(0): Middlewares\Utils\Delegate->process() #29 /var/www/virtual/domain.tld/portal/htdocs/vendor/middlewares/utils/src/Dispatcher.php(76): WHMCS\Route\Middleware\RoutableClientModuleRequest->process(Object(WHMCS\Http\Message\ServerRequest), Object(Middlewares\Utils\Delegate)) #30 [internal function]: Middlewares\Utils\Dispatcher->Middlewares\Utils\{closure}(Object(WHMCS\Http\Message\ServerRequest)) #31 /var/www/virtual/domain.tld/portal/htdocs/vendor/middlewares/utils/src/Delegate.php(31): call_user_func(Object(Closure), Object(WHMCS\Http\Message\ServerRequest)) #32 /var/www/virtual/domain.tld/portal/htdocs/vendor/whmcs/whmcs-foundation/lib/Route/Middleware/RoutableRequestUri.php(0): Middlewares\Utils\Delegate->process() #33 /var/www/virtual/domain.tld/portal/htdocs/vendor/middlewares/utils/src/Dispatcher.php(76): WHMCS\Route\Middleware\RoutableRequestUri->process(Object(WHMCS\Http\Message\ServerRequest), Object(Middlewares\Utils\Delegate)) #34 [internal function]: Middlewares\Utils\Dispatcher->Middlewares\Utils\{closure}(Object(WHMCS\Http\Message\ServerRequest)) #35 /var/www/virtual/domain.tld/portal/htdocs/vendor/middlewares/utils/src/Delegate.php(31): call_user_func(Object(Closure), Object(WHMCS\Http\Message\ServerRequest)) #36 /var/www/virtual/domain.tld/portal/htdocs/vendor/whmcs/whmcs-foundation/lib/Route/Middleware/RoutableRequestQueryUri.php(0): Middlewares\Utils\Delegate->process() #37 /var/www/virtual/domain.tld/portal/htdocs/vendor/middlewares/utils/src/Dispatcher.php(76): WHMCS\Route\Middleware\RoutableRequestQueryUri->process(Object(WHMCS\Http\Message\ServerRequest), Object(Middlewares\Utils\Delegate)) #38 [internal function]: Middlewares\Utils\Dispatcher->Middlewares\Utils\{closure}(Object(WHMCS\Http\Message\ServerRequest)) #39 /var/www/virtual/domain.tld/portal/htdocs/vendor/middlewares/utils/src/Delegate.php(31): call_user_func(Object(Closure), Object(WHMCS\Http\Message\ServerRequest)) #40 /var/www/virtual/domain.tld/portal/htdocs/vendor/middlewares/utils/src/Dispatcher.php(56): Middlewares\Utils\Delegate->process(Object(WHMCS\Http\Message\ServerRequest)) #41 /var/www/virtual/domain.tld/portal/htdocs/index.php(0): Middlewares\Utils\Dispatcher->dispatch() #42 {main}

 

We´ve running php 5.6 and only updated the whmcs.

 

greetings

xister

Edited by xister
Link to comment
Share on other sites

It seems that you missed some files in the update proccess. Try to restore them from backups

 

I´ve downloaded the full package and reuploaded them today, but the files like langupdate.php aren´t included in the 721 zip.

Link to comment
Share on other sites

I´ve downloaded the full package and reuploaded them today, but the files like langupdate.php aren´t included in the 721 zip.

 

I had the same issue - and found that the lang files were all identical, so I removed langupdate.php(based on it not being in the 7.2.1 full package).

I also noted the following files had a version in them from 7.0.2, while the full update package had 7.2.1, so I copied from the full package, overwriting my local copy:

 

downloads.php

vendor/whmcs/whmcs-foundation/lib/Installer/Composer/Hooks/ComposerInstallerHook.php

vendor/whmcs/whmcs-foundation/lib/Installer/Composer/Hooks/ComposerInstaller.php

vendor/whmcs/whmcs-foundation/lib/Installer/Composer/Hooks/UpdateConfig.php

Link to comment
Share on other sites

I had the same issue - and found that the lang files were all identical, so I removed langupdate.php(based on it not being in the 7.2.1 full package).

 

I can´t find this file. where you removed it?

 

 

I also noted the following files had a version in them from 7.0.2, while the full update package had 7.2.1, so I copied from the full package, overwriting my local copy:

 

downloads.php

vendor/whmcs/whmcs-foundation/lib/Installer/Composer/Hooks/ComposerInstallerHook.php

vendor/whmcs/whmcs-foundation/lib/Installer/Composer/Hooks/ComposerInstaller.php

vendor/whmcs/whmcs-foundation/lib/Installer/Composer/Hooks/UpdateConfig.php

 

I´ve copied the full 7.2.1 package several times (ascii and binary mode), but it doesn´t work :(

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated