Tiny Core Linux
Tiny Core Base => Raspberry Pi => Topic started by: MrToga on June 10, 2022, 07:15:08 AM
-
Hello guys :
I'm triyng to install and make persistent phpMyAdmin on my rasp but I run into a strange error.
When I first installed phpMyAdmin and run it on my apache server it worked but when I reboot it and use the same phpMyAdmin repertory I get this error on my index.php :
Fatal error: Uncaught Error: Class 'Twig\Cache\NullCache' not found in /usr/local/apache2/htdocs/phpMyAdmin-4.9.10-all-languages/vendor/twig/twig/src/Environment.php:302 Stack trace: #0 /usr/local/apache2/htdocs/phpMyAdmin-4.9.10-all-languages/vendor/twig/twig/src/Environment.php(146): Twig\Environment->setCache(false) #1 /usr/local/apache2/htdocs/phpMyAdmin-4.9.10-all-languages/libraries/classes/Template.php(68): Twig\Environment->__construct(Object(Twig\Loader\FilesystemLoader), Array) #2 /usr/local/apache2/htdocs/phpMyAdmin-4.9.10-all-languages/libraries/classes/Template.php(102): PhpMyAdmin\Template->__construct('login/header') #3 /usr/local/apache2/htdocs/phpMyAdmin-4.9.10-all-languages/libraries/classes/Plugins/Auth/AuthenticationCookie.php(111): PhpMyAdmin\Template::get('login/header') #4 /usr/local/apache2/htdocs/phpMyAdmin-4.9.10-all-languages/libraries/classes/Plugins/AuthenticationPlugin.php(247): PhpMyAdmin\Plugins\Auth\AuthenticationCookie->showLoginForm() #5 /usr/local/apache2/htdocs/phpMyAdmin-4.9.10-all-la in /usr/local/apache2/htdocs/phpMyAdmin-4.9.10-all-languages/vendor/twig/twig/src/Environment.php on line 302
Any thoughts ?
-
Hi MrToga
Sorry, I don't have an answer for you. I just wanted to post a copy of your error message with some linefeeds
inserted to make it easier to read:
Fatal error: Uncaught Error: Class 'Twig\Cache\NullCache' not found
in /usr/local/apache2/htdocs/phpMyAdmin-4.9.10-all-languages/vendor/twig/twig/src/Environment.php:302
Stack trace:
#0 /usr/local/apache2/htdocs/phpMyAdmin-4.9.10-all-languages/vendor/twig/twig/src/Environment.php(146): Twig\Environment->setCache(false)
#1 /usr/local/apache2/htdocs/phpMyAdmin-4.9.10-all-languages/libraries/classes/Template.php(68): Twig\Environment->__construct(Object(Twig\Loader\FilesystemLoader), Array)
#2 /usr/local/apache2/htdocs/phpMyAdmin-4.9.10-all-languages/libraries/classes/Template.php(102): PhpMyAdmin\Template->__construct('login/header')
#3 /usr/local/apache2/htdocs/phpMyAdmin-4.9.10-all-languages/libraries/classes/Plugins/Auth/AuthenticationCookie.php(111): PhpMyAdmin\Template::get('login/header')
#4 /usr/local/apache2/htdocs/phpMyAdmin-4.9.10-all-languages/libraries/classes/Plugins/AuthenticationPlugin.php(247): PhpMyAdmin\Plugins\Auth\AuthenticationCookie->showLoginForm()
#5 /usr/local/apache2/htdocs/phpMyAdmin-4.9.10-all-la in /usr/local/apache2/htdocs/phpMyAdmin-4.9.10-all-languages/vendor/twig/twig/src/Environment.php on line 302
-
Update :
I found out that when you reboot all the file or repertory that are named "Cache" are deleted even with a backup and place in a persistent repertory that's why phpMyAdmin didn't work because in phpMyAdmin/vendor/twig/twig/lib/Twig/Cache and phpMyAdmin/vendor/twig/twig/src/Cache there are this two repertory that have Cache's repertory so I just take this two file in a persistent repertory, rename them and replace them on boot.
I'm using phpMyAdmin version 4.9.10
-
Hi MrToga
The caches are omitted from backups because they can become quite large making backups incredibly slow,
The /opt/.xfiletool.lst file controls what to omit from backups.