Upgrade from 2.3.5 or 3.0.0 to 3.0.1 error
Posted: Mon Jan 31, 2022 8:03 am
Hi All,
When I try upgrading the site it fails.
I used the following: https://www.formalms.org/reference-guid ... ade-2.html
Then once the upgrade finishes I get the following:
Fatal error: Uncaught RuntimeException: Unable to create the cache directory (C:\inetpub\wwwroot\FormaLMS301/files/cache/twig/43). in C:\inetpub\wwwroot\FormaLMS301\vendor\twig\twig\src\Cache\FilesystemCache.php:57 Stack trace: #0 C:\inetpub\wwwroot\FormaLMS301\vendor\twig\twig\src\Environment.php(409): Twig\Cache\FilesystemCache->write() #1 C:\inetpub\wwwroot\FormaLMS301\vendor\twig\twig\src\Environment.php(381): Twig\Environment->loadClass() #2 C:\inetpub\wwwroot\FormaLMS301\vendor\twig\twig\src\Environment.php(359): Twig\Environment->loadTemplate() #3 C:\inetpub\wwwroot\FormaLMS301\vendor\twig\twig\src\Environment.php(318): Twig\Environment->load() #4 C:\inetpub\wwwroot\FormaLMS301\appCore\Template\TwigManager.php(113): Twig\Environment->render() #5 C:\inetpub\wwwroot\FormaLMS301\lib\mvc\lib.controller.php(152): appCore\Template\TwigManager->render() #6 C:\inetpub\wwwroot\FormaLMS301\appCore\controllers\HomepageAdmController.php(95): Controller->render() #7 C:\inetpub\wwwroot\FormaLMS301\lib\mvc\lib.controller.php(58): in C:\inetpub\wwwroot\FormaLMS301\vendor\twig\twig\src\Cache\FilesystemCache.php on line 57
Also once you ran the upgrade and try and run it again it fails.
Please in future when running upgrades let the script be smart enough that when the new table exits not to fail but rather check it and upgrade if necessary. This will help a lot in the attempt to run the upgrade the second time.
I am now unable to continue. I tried upgrading from version 2.3.0 to 3.0.1 and also from 3.0.0 to 3.0.1
I get the same result.
When I try upgrading the site it fails.
I used the following: https://www.formalms.org/reference-guid ... ade-2.html
Then once the upgrade finishes I get the following:
Fatal error: Uncaught RuntimeException: Unable to create the cache directory (C:\inetpub\wwwroot\FormaLMS301/files/cache/twig/43). in C:\inetpub\wwwroot\FormaLMS301\vendor\twig\twig\src\Cache\FilesystemCache.php:57 Stack trace: #0 C:\inetpub\wwwroot\FormaLMS301\vendor\twig\twig\src\Environment.php(409): Twig\Cache\FilesystemCache->write() #1 C:\inetpub\wwwroot\FormaLMS301\vendor\twig\twig\src\Environment.php(381): Twig\Environment->loadClass() #2 C:\inetpub\wwwroot\FormaLMS301\vendor\twig\twig\src\Environment.php(359): Twig\Environment->loadTemplate() #3 C:\inetpub\wwwroot\FormaLMS301\vendor\twig\twig\src\Environment.php(318): Twig\Environment->load() #4 C:\inetpub\wwwroot\FormaLMS301\appCore\Template\TwigManager.php(113): Twig\Environment->render() #5 C:\inetpub\wwwroot\FormaLMS301\lib\mvc\lib.controller.php(152): appCore\Template\TwigManager->render() #6 C:\inetpub\wwwroot\FormaLMS301\appCore\controllers\HomepageAdmController.php(95): Controller->render() #7 C:\inetpub\wwwroot\FormaLMS301\lib\mvc\lib.controller.php(58): in C:\inetpub\wwwroot\FormaLMS301\vendor\twig\twig\src\Cache\FilesystemCache.php on line 57
Also once you ran the upgrade and try and run it again it fails.
Please in future when running upgrades let the script be smart enough that when the new table exits not to fail but rather check it and upgrade if necessary. This will help a lot in the attempt to run the upgrade the second time.
I am now unable to continue. I tried upgrading from version 2.3.0 to 3.0.1 and also from 3.0.0 to 3.0.1
I get the same result.