Install PHP 8.1.0 on Mamp Pro 6.6 = Errors in phpmyadmin window?

All MAMP discussions around troubleshooting and anything related to MAMP. Be as detailed as possible here when posting an issue.
Post Reply
Chacapamac
Posts: 3
Joined: Sun Nov 12, 2023 2:33 pm

Install PHP 8.1.0 on Mamp Pro 6.6 = Errors in phpmyadmin window?

Post by Chacapamac »

I Install PHP 8.1.0 on Mamp Pro 6.6 and, in the phpMyAdmin window i get first a warning —> “Some errors have been detected on the server! — Please look at the bottom of this window.”

These errors disappear when I return to PHP 8.0.8

The errors are:
———————————————————————————————————————
Deprecation Notice in ./vendor/twig/twig/src/Loader/FilesystemLoader.php#40
realpath(): Passing null to parameter #1 ($path) of type string is deprecated

Backtrace
FilesystemLoader.php#40: realpath(NULL)
Template.php#56: Twig\Loader\FilesystemLoader->__construct(string '/Library/Application Support/appsolute/MAMP PRO/phpMyAdmin5//templates/')
Theme.php#101: PhpMyAdmin\Template->__construct()
Theme.php#174: PhpMyAdmin\Theme->__construct()
ThemeManager.php#307: PhpMyAdmin\Theme::load(
string './themes/metro',
string '/Library/Application Support/appsolute/MAMP PRO/phpMyAdmin5/./themes/metro/',
)
ThemeManager.php#79: PhpMyAdmin\ThemeManager->loadThemes()
ThemeManager.php#121: PhpMyAdmin\ThemeManager->__construct()
ThemeManager.php#385: PhpMyAdmin\ThemeManager::getInstance()
common.inc.php#232: PhpMyAdmin\ThemeManager::initializeTheme()
index.php#16: require_once(./libraries/common.inc.php)
———————————————————————————————————————

Deprecation Notice in ./vendor/twig/twig/src/Markup.php#35
Return type of Twig\Markup::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice

Backtrace
ClassLoader.php#444: include(./vendor/twig/twig/src/Markup.php)
ClassLoader.php#322: Composer\Autoload\includeFile(string '/Library/Application Support/appsolute/MAMP PRO/phpMyAdmin5/vendor/composer/../twig/twig/src/Markup.php')
9f06a098221d83b3129f350aee17b34bca84bdd0fb0e575a474786d4e7f0c458.php#59: Composer\Autoload\ClassLoader->loadClass(string 'Twig\\Markup')
Template.php#405: __TwigTemplate_28f1ad3dd78793e736ef9b3e4dc9125f1e6efba870ef2001a8d7cc262b766844->doDisplay(
array,
array,
)
Template.php#378: Twig\Template->displayWithErrorHandling(
array,
array,
)
Template.php#390: Twig\Template->display(array)
TemplateWrapper.php#45: Twig\Template->render(
array,
array,
)
Template.php#129: Twig\TemplateWrapper->render(array)
Header.php#715: PhpMyAdmin\Template->render(
string 'javascript/variables',
array,
)
Header.php#194: PhpMyAdmin\Header->getVariablesForJavaScript()
Header.php#142: PhpMyAdmin\Header->addDefaultScripts()
Response.php#184: PhpMyAdmin\Header->__construct()
Response.php#215: PhpMyAdmin\Response->__construct()
common.inc.php#288: PhpMyAdmin\Response::getInstance()
index.php#16: require_once(./libraries/common.inc.php)

———————————————————————————————————————
Deprecation Notice in ./vendor/twig/twig/src/Markup.php#40
Return type of Twig\Markup::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice

Backtrace
ClassLoader.php#444: include(./vendor/twig/twig/src/Markup.php)
ClassLoader.php#322: Composer\Autoload\includeFile(string '/Library/Application Support/appsolute/MAMP PRO/phpMyAdmin5/vendor/composer/../twig/twig/src/Markup.php')
9f06a098221d83b3129f350aee17b34bca84bdd0fb0e575a474786d4e7f0c458.php#59: Composer\Autoload\ClassLoader->loadClass(string 'Twig\\Markup')
Template.php#405: __TwigTemplate_28f1ad3dd78793e736ef9b3e4dc9125f1e6efba870ef2001a8d7cc262b766844->doDisplay(
array,
array,
)
Template.php#378: Twig\Template->displayWithErrorHandling(
array,
array,
)
Template.php#390: Twig\Template->display(array)
TemplateWrapper.php#45: Twig\Template->render(
array,
array,
)
Template.php#129: Twig\TemplateWrapper->render(array)
Header.php#715: PhpMyAdmin\Template->render(
string 'javascript/variables',
array,
)
Header.php#194: PhpMyAdmin\Header->getVariablesForJavaScript()
Header.php#142: PhpMyAdmin\Header->addDefaultScripts()
Response.php#184: PhpMyAdmin\Header->__construct()
Response.php#215: PhpMyAdmin\Response->__construct()
common.inc.php#288: PhpMyAdmin\Response::getInstance()
index.php#16: require_once(./libraries/common.inc.php)

———————————————————————————————————————

Deprecation Notice in ./libraries/classes/Dbal/DbiMysqli.php#400
Method mysqli::get_client_info() is deprecated

Backtrace
DatabaseInterface.php#2142: PhpMyAdmin\Dbal\DbiMysqli->getClientInfo()
HomeController.php#180: PhpMyAdmin\DatabaseInterface->getClientInfo()
Routing.php#186: PhpMyAdmin\Controllers\HomeController->index(array)
index.php#19: PhpMyAdmin\Routing::callControllerForRoute(
string '/',
,
,
)

———————————————————————————————————————

Deprecation Notice in ./libraries/classes/Util.php#1920
Function strftime() is deprecated

Backtrace
Header.php#583: PhpMyAdmin\Util::expandUserString(string '@HTTP_HOST@ / @VSERVER@ | @PHPMYADMIN@')
Header.php#460: PhpMyAdmin\Header->getPageTitle()
Response.php#331: PhpMyAdmin\Header->getDisplay()
Response.php#345: PhpMyAdmin\Response->getDisplay()
Response.php#507: PhpMyAdmin\Response->htmlResponse()
PhpMyAdmin\Response->response()

———————————————————————————————————————

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
ClassLoader.php#444: include(./vendor/twig/twig/src/Node/Node.php)
ClassLoader.php#322: Composer\Autoload\includeFile(string '/Library/Application Support/appsolute/MAMP PRO/phpMyAdmin5/vendor/composer/../twig/twig/src/Node/Node.php')
Composer\Autoload\ClassLoader->loadClass(string 'Twig\\Node\\Node')
TwigFilter.php#150: class_exists(string 'Twig\\Node\\Node')
ClassLoader.php#444: include(./vendor/twig/twig/src/TwigFilter.php)
ClassLoader.php#322: Composer\Autoload\includeFile(string '/Library/Application Support/appsolute/MAMP PRO/phpMyAdmin5/vendor/composer/../twig/twig/src/TwigFilter.php')
CoreExtension.php#214: Composer\Autoload\ClassLoader->loadClass(string 'Twig\\TwigFilter')
ExtensionSet.php#433: Twig\Extension\CoreExtension->getFilters()
ExtensionSet.php#423: Twig\ExtensionSet->initExtension()
ExtensionSet.php#243: Twig\ExtensionSet->initExtensions()
Environment.php#797: Twig\ExtensionSet->getFilter(string 'error')
e2cfee5ccffb2b4956f52a5982af66029177e3760ca515c38c27b6704e42331a.php#160: Twig\Environment->getFilter(string 'error')
Template.php#405: __TwigTemplate_8aeb41e5448f577a81107957f1e72aa1cea9d38fe0581856bc0cd6e5bf17c0f4->doDisplay(
array,
array,
)
Template.php#378: Twig\Template->displayWithErrorHandling(
array,
array,
)
Template.php#390: Twig\Template->display(array)
TemplateWrapper.php#45: Twig\Template->render(
array,
array,
)
Template.php#129: Twig\TemplateWrapper->render(array)
Header.php#472: PhpMyAdmin\Template->render(
string 'header',
array,
)
Response.php#331: PhpMyAdmin\Header->getDisplay()
Response.php#345: PhpMyAdmin\Response->getDisplay()
Response.php#507: PhpMyAdmin\Response->htmlResponse()
PhpMyAdmin\Response->response()

———————————————————————————————————————

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
ClassLoader.php#444: include(./vendor/twig/twig/src/Node/Node.php)
ClassLoader.php#322: Composer\Autoload\includeFile(string '/Library/Application Support/appsolute/MAMP PRO/phpMyAdmin5/vendor/composer/../twig/twig/src/Node/Node.php')
Composer\Autoload\ClassLoader->loadClass(string 'Twig\\Node\\Node')
TwigFilter.php#150: class_exists(string 'Twig\\Node\\Node')
ClassLoader.php#444: include(./vendor/twig/twig/src/TwigFilter.php)
ClassLoader.php#322: Composer\Autoload\includeFile(string '/Library/Application Support/appsolute/MAMP PRO/phpMyAdmin5/vendor/composer/../twig/twig/src/TwigFilter.php')
CoreExtension.php#214: Composer\Autoload\ClassLoader->loadClass(string 'Twig\\TwigFilter')
ExtensionSet.php#433: Twig\Extension\CoreExtension->getFilters()
ExtensionSet.php#423: Twig\ExtensionSet->initExtension()
ExtensionSet.php#243: Twig\ExtensionSet->initExtensions()
Environment.php#797: Twig\ExtensionSet->getFilter(string 'error')
e2cfee5ccffb2b4956f52a5982af66029177e3760ca515c38c27b6704e42331a.php#160: Twig\Environment->getFilter(string 'error')
Template.php#405: __TwigTemplate_8aeb41e5448f577a81107957f1e72aa1cea9d38fe0581856bc0cd6e5bf17c0f4->doDisplay(
array,
array,
)
Template.php#378: Twig\Template->displayWithErrorHandling(
array,
array,
)
Template.php#390: Twig\Template->display(array)
TemplateWrapper.php#45: Twig\Template->render(
array,
array,
)
Template.php#129: Twig\TemplateWrapper->render(array)
Header.php#472: PhpMyAdmin\Template->render(
string 'header',
array,
)
Response.php#331: PhpMyAdmin\Header->getDisplay()
Response.php#345: PhpMyAdmin\Response->getDisplay()
Response.php#507: PhpMyAdmin\Response->htmlResponse()
PhpMyAdmin\Response->response()
Post Reply