리눅스맨

phpmyadmin error

phpMyAdmin error deprecation notice in . vendor twig twig src loader filesystemloader.php#40

phpMyAdmin Errors

phpMyAdmin Install

phpMyAdmin install
#Solution Script - linux

rm -rf phpMyAdmin-5.2.1-all-languages.zip

mkdir /var/www/backup

cd /var/www/backup
wget https://vlog.tion.co.kr/app/phpMyAdmin/phpMyAdmin-5.2.1-all-languages.zip
unzip phpMyAdmin-5.2.1-all-languages.zip
rm -rf phpMyAdmin-5.2.1-all-languages.zip

rm -rf /var/www/phpMyAdmin
mv phpMyAdmin-5.2.1-all-languages/ /var/www/phpMyAdmin


cd /var/www/phpMyAdmin
rm -rf config.inc.php
rm -rf config.sample.inc.php
wget -O config.inc.php https://vlog.tion.co.kr/html/phpmyadmin/config.inc.php?isDownload=1
ll


phpMyAdmin error

phpMyAdmin deprecation notice in . vendor twig twig src loader filesystemloader.php#40

phpmyadmin error
phpMyAdmin error deprecation notice in . vendor twig twig src loader filesystemloader.php#40 7
phpmyadmin error
phpMyAdmin error deprecation notice in . vendor twig twig src loader filesystemloader.php#40 8
phpmyadmin error
phpMyAdmin error deprecation notice in . vendor twig twig src loader filesystemloader.php#40 9

The solution is to reinstall phpMyAdmin 5.2.x or later.

DOWNLOAD

phpmyadmin error
phpMyAdmin error deprecation notice in . vendor twig twig src loader filesystemloader.php#40 10
Deprecation Notice in ./vendor/twig/twig/src/Loader/FilesystemLoader.php#40
 realpath(): Passing null to parameter #1 ($path) of type string is deprecated

Backtrace

./vendor/twig/twig/src/Loader/FilesystemLoader.php#40: realpath(NULL)
./libraries/classes/Template.php#59: Twig\Loader\FilesystemLoader->__construct(string '/var/www/phpMyAdmin//templates/')
./libraries/classes/Theme.php#103: PhpMyAdmin\Template->__construct()
./libraries/classes/Theme.php#174: PhpMyAdmin\Theme->__construct()
./libraries/classes/ThemeManager.php#306: PhpMyAdmin\Theme::load(
string './themes/metro',
string '/var/www/phpMyAdmin/./themes/metro/',
)
./libraries/classes/ThemeManager.php#89: PhpMyAdmin\ThemeManager->loadThemes()
./libraries/classes/ThemeManager.php#129: PhpMyAdmin\ThemeManager->__construct()
./libraries/classes/ThemeManager.php#397: PhpMyAdmin\ThemeManager::getInstance()
./libraries/common.inc.php#315: PhpMyAdmin\ThemeManager::initializeTheme()
./index.php#23: require_once(./libraries/common.inc.php)
Deprecation Notice in ./vendor/twig/twig/src/Node/Node.php#161
 Return type of Twig\Node\Node::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice

Backtrace

./vendor/composer/ClassLoader.php#444: include(./vendor/twig/twig/src/Node/Node.php)
./vendor/composer/ClassLoader.php#322: Composer\Autoload\includeFile(string '/var/www/phpMyAdmin/vendor/composer/../twig/twig/src/Node/Node.php')
Composer\Autoload\ClassLoader->loadClass(string 'Twig\\Node\\Node')
./vendor/twig/twig/src/TwigFilter.php#150: class_exists(string 'Twig\\Node\\Node')
./vendor/composer/ClassLoader.php#444: include(./vendor/twig/twig/src/TwigFilter.php)
./vendor/composer/ClassLoader.php#322: Composer\Autoload\includeFile(string '/var/www/phpMyAdmin/vendor/composer/../twig/twig/src/TwigFilter.php')
./vendor/twig/twig/src/Extension/CoreExtension.php#214: Composer\Autoload\ClassLoader->loadClass(string 'Twig\\TwigFilter')
./vendor/twig/twig/src/ExtensionSet.php#433: Twig\Extension\CoreExtension->getFilters()
./vendor/twig/twig/src/ExtensionSet.php#423: Twig\ExtensionSet->initExtension()
./vendor/twig/twig/src/ExtensionSet.php#397: Twig\ExtensionSet->initExtensions()
./vendor/twig/twig/src/Environment.php#966: Twig\ExtensionSet->getUnaryOperators()
./vendor/twig/twig/src/Lexer.php#459: Twig\Environment->getUnaryOperators()
./vendor/twig/twig/src/Lexer.php#110: Twig\Lexer->getOperatorRegex()
./vendor/twig/twig/src/Environment.php#539: Twig\Lexer->__construct()
./vendor/twig/twig/src/Environment.php#595: Twig\Environment->tokenize()
./vendor/twig/twig/src/Environment.php#408: Twig\Environment->compileSource()
./vendor/twig/twig/src/Environment.php#381: Twig\Environment->loadClass(
string '__TwigTemplate_5e4a7429ac6200a1f609bf802387b12eb0ea958b9f1bd4f816fec01d6b87b66a',
string 'login/header.twig',
NULL,
)
./vendor/twig/twig/src/Environment.php#359: Twig\Environment->loadTemplate(string 'login/header.twig')
./libraries/classes/Template.php#100: Twig\Environment->load(string 'login/header.twig')
./libraries/classes/Template.php#134: PhpMyAdmin\Template->load(string 'login/header')
./libraries/classes/Plugins/Auth/AuthenticationCookie.php#144: PhpMyAdmin\Template->render(
string 'login/header',
array,
)
./libraries/classes/Plugins/AuthenticationPlugin.php#268: PhpMyAdmin\Plugins\Auth\AuthenticationCookie->showLoginForm()
./libraries/common.inc.php#365: PhpMyAdmin\Plugins\AuthenticationPlugin->authenticate()
./index.php#23: require_once(./libraries/common.inc.php)
Deprecation Notice in ./vendor/twig/twig/src/Node/Node.php#166
 Return type of Twig\Node\Node::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice

Backtrace

./vendor/composer/ClassLoader.php#444: include(./vendor/twig/twig/src/Node/Node.php)
./vendor/composer/ClassLoader.php#322: Composer\Autoload\includeFile(string '/var/www/phpMyAdmin/vendor/composer/../twig/twig/src/Node/Node.php')
Composer\Autoload\ClassLoader->loadClass(string 'Twig\\Node\\Node')
./vendor/twig/twig/src/TwigFilter.php#150: class_exists(string 'Twig\\Node\\Node')
./vendor/composer/ClassLoader.php#444: include(./vendor/twig/twig/src/TwigFilter.php)
./vendor/composer/ClassLoader.php#322: Composer\Autoload\includeFile(string '/var/www/phpMyAdmin/vendor/composer/../twig/twig/src/TwigFilter.php')
./vendor/twig/twig/src/Extension/CoreExtension.php#214: Composer\Autoload\ClassLoader->loadClass(string 'Twig\\TwigFilter')
./vendor/twig/twig/src/ExtensionSet.php#433: Twig\Extension\CoreExtension->getFilters()
./vendor/twig/twig/src/ExtensionSet.php#423: Twig\ExtensionSet->initExtension()
./vendor/twig/twig/src/ExtensionSet.php#397: Twig\ExtensionSet->initExtensions()
./vendor/twig/twig/src/Environment.php#966: Twig\ExtensionSet->getUnaryOperators()
./vendor/twig/twig/src/Lexer.php#459: Twig\Environment->getUnaryOperators()
./vendor/twig/twig/src/Lexer.php#110: Twig\Lexer->getOperatorRegex()
./vendor/twig/twig/src/Environment.php#539: Twig\Lexer->__construct()
./vendor/twig/twig/src/Environment.php#595: Twig\Environment->tokenize()
./vendor/twig/twig/src/Environment.php#408: Twig\Environment->compileSource()
./vendor/twig/twig/src/Environment.php#381: Twig\Environment->loadClass(
string '__TwigTemplate_5e4a7429ac6200a1f609bf802387b12eb0ea958b9f1bd4f816fec01d6b87b66a',
string 'login/header.twig',
NULL,
)
./vendor/twig/twig/src/Environment.php#359: Twig\Environment->loadTemplate(string 'login/header.twig')
./libraries/classes/Template.php#100: Twig\Environment->load(string 'login/header.twig')
./libraries/classes/Template.php#134: PhpMyAdmin\Template->load(string 'login/header')
./libraries/classes/Plugins/Auth/AuthenticationCookie.php#144: PhpMyAdmin\Template->render(
string 'login/header',
array,
)
./libraries/classes/Plugins/AuthenticationPlugin.php#268: PhpMyAdmin\Plugins\Auth\AuthenticationCookie->showLoginForm()
./libraries/common.inc.php#365: PhpMyAdmin\Plugins\AuthenticationPlugin->authenticate()
./index.php#23: require_once(./libraries/common.inc.php)

phpmyadmin error
phpMyAdmin error deprecation notice in . vendor twig twig src loader filesystemloader.php#40 11

게시됨

카테고리

, ,

작성자

태그: