• Priority: 0
  • Status: Closed
  • Theme: Alysum
  • Assigned To: Fred
  • Private: No
  • Open Date: 19.01.23, 08:59
  • Opened by: Bianca Mitrea
  • Closed by: Anonymous Submitter
  • Closed on:
  • Reason: Not a bug

Ticket #24180 - Error 500 in backend after updating Prestashop to version 8.0.1

Hello, basically i have version 1.7.7 and upgraded with 1ClickUpgrade module to Prestashop 8.0.1

The problem is now that i cannot acces the backend. The error that im getting is:

Unable to generate a URL for the named route “admin_pkthemesettings_configuration_get” as such route does not exist.

What ive tryed so far:

  • disabled the module
  • deleting the module
  • deleting cache
  • changed to the default Prestashop theme

CRITICAL
20:13:36
php	Uncaught Exception: Unable to generate a URL for the named route "admin_pkthemesettings_configuration_get" as such route does not exist.
{
    "exception": {}
}
CRITICAL
20:13:37
request	Uncaught PHP Exception Symfony\Component\Routing\Exception\RouteNotFoundException: "Unable to generate a URL for the named route "admin_pkthemesettings_configuration_get" as such route does not exist." at /home/c0945442/public_html/vendor/symfony/symfony/src/Symfony/Component/Routing/Generator/CompiledUrlGenerator.php line 50
{
    "exception": {}

Comments

Bianca Mitrea 19 Jan 2023, 09:01

The website is climatizareonline.ro and the backend details are in the account

Fred 19 Jan 2023, 09:06

Hi, Bianca Mitrea.
That’s known prestashop problem. Try to delete manually cache folders

/var/cache/dev
/var/cache/prod
Bianca Mitrea 19 Jan 2023, 09:11

ok, i will try again

Bianca Mitrea 19 Jan 2023, 09:28

i managed to log in, but theme settings are looking weird and some options in Prestashop give me 500 error

Bianca Mitrea 19 Jan 2023, 09:45

Also now in frontend it gives me this error:

Fatal error: Uncaught PrestaShop\PrestaShop\Core\Exception\ContainerNotFoundException: Kernel Container is not available in /home/c0945442/public_html/src/Adapter/ContainerFinder.php:77 Stack trace: #0 /home/c0945442/public_html/classes/module/Module.php(1669): PrestaShop\PrestaShop\Adapter\ContainerFinder->getContainer() #1 /home/c0945442/public_html/classes/module/Module.php(1658): ModuleCore::getModuleRepository() #2 /home/c0945442/public_html/classes/Hook.php(811): ModuleCore::getNativeModuleList() #3 /home/c0945442/public_html/classes/Dispatcher.php(586): HookCore::exec('moduleRoutes', Array, NULL, true, false) #4 /home/c0945442/public_html/classes/Dispatcher.php(243): DispatcherCore->loadRoutes() #5 /home/c0945442/public_html/classes/Dispatcher.php(201): DispatcherCore->__construct(Object(Symfony\Component\HttpFoundation\Request)) #6 /home/c0945442/public_html/index.php(28): DispatcherCore::getInstance() #7 {main} thrown in /home/c0945442/public_html/src/Adapter/ContainerFinder.php on line 77
Fred 19 Jan 2023, 10:18

Never seen such error before.
I have found some customers also reported that https://www.prestashop.com/forums/topic/1052034-php-fatal-error-kernel-container-is-not-available-in-varwwwhtmlwwwsrcadaptercontainerfinderphp77/

Do you have an option to reinstall Prestashop from scratch?

Bianca Mitrea 19 Jan 2023, 10:19

And this error when im trying to acces „hooks”

CRITICAL
11:18:11
request	Uncaught PHP Exception Symfony\Component\ErrorHandler\Error\UndefinedMethodError: "Attempted to call an undefined method named "jsonDecode" of class "Tools"." at /home/c0945442/public_html/modules/pkheaderitems/pkheaderitems.php line 373
{
    "exception": {}
}
CRITICAL
11:18:11
php	Uncaught Error: Call to undefined method Tools::jsonDecode()
{
    "exception": {}
}
Bianca Mitrea 19 Jan 2023, 10:36

i cannot reinstall Prestashop from scratch

Fred 19 Jan 2023, 10:51

But it doesn’t work correctly. I would advise you to do that.
What is the problem with reinstalling? Do you need assistance?

Bianca Mitrea 19 Jan 2023, 10:59

EDITED

Fred 19 Jan 2023, 20:10

Do you have any progress with that?

Bianca Mitrea 20 Jan 2023, 14:43

i succeeded into downgrading Prestashop, now the frontend works (most of it) but now i cannot acces the backend with a different error

CRITICAL
15:42:34
php	Uncaught Exception: Unable to generate a URL for the named route "admin_security" as such route does not exist.
CRITICAL
15:42:34
request	Uncaught PHP Exception Symfony\Component\Routing\Exception\RouteNotFoundException: "Unable to generate a URL for the named route "admin_security" as such route does not exist." at /home/c0945442/public_html/var/cache/dev/appDevDebugProjectContainerUrlGenerator.php line 614
  • deleted the cache/cookies
  • deleted browser cache and changer the browser also
Fred 20 Jan 2023, 21:16

The error you have is not related to the theme or modules, something wrong with server configuration.
I have tried to login to your back office https://climatizareonline.ro/backend but it doesn’t work so I’m not able to see the issue

Bianca Mitrea 20 Jan 2023, 22:16

it works now, ive restored again the backup

Fred 20 Jan 2023, 22:26

great!

Fred 20 Jan 2023, 22:38

I don’t understand what’s going on, but that’s definitely not related to our theme.
I assume something wrong with server configuration, because Prestashop usually works fine

Bianca Mitrea 21 Jan 2023, 11:48

the strange thing is that after the update (the theme update to the latest version) and the Prestashop Core update, everything worked just fine.

Fred 21 Jan 2023, 13:56

Can you try to update once more? Maybe to the latest Prestashop version 8.0?

Bianca Mitrea 24 Jan 2023, 09:26

So yea… I didn’t reache any conclusion. I migreted the website to WordPress. Where can I get a refund?

Fred 24 Jan 2023, 11:14

Go to your themeforest account that request refund there