WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: phpMyAdmin  (Read 1671 times)

Offline MrToga

  • Full Member
  • ***
  • Posts: 142
phpMyAdmin
« on: June 10, 2022, 10: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 :
Code: [Select]
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 ?
« Last Edit: June 10, 2022, 10:17:10 AM by MrToga »
It's fine

Online Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11694
Re: phpMyAdmin
« Reply #1 on: June 10, 2022, 11:40:58 AM »
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:
Code: [Select]
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

Offline MrToga

  • Full Member
  • ***
  • Posts: 142
Re: phpMyAdmin
« Reply #2 on: June 13, 2022, 07:26:04 AM »
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
It's fine

Online Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11694
Re: phpMyAdmin
« Reply #3 on: June 13, 2022, 08:36:32 AM »
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.