{"id":1669,"date":"2022-02-01T02:06:00","date_gmt":"2022-02-01T02:06:00","guid":{"rendered":"https:\/\/www.qworqs.com\/?p=1669"},"modified":"2022-09-30T17:47:37","modified_gmt":"2022-09-30T17:47:37","slug":"blank-page-running-phpmyadmin-on-nginx-with-php-8-1-pfm","status":"publish","type":"post","link":"https:\/\/www.voodoo.business\/blog\/2022\/02\/01\/blank-page-running-phpmyadmin-on-nginx-with-php-8-1-pfm\/","title":{"rendered":"Blank page running PhpMyAdmin on nginx with PHP 8.1 pfm"},"content":{"rendered":"\n<p>After an apt-get upgrade, phpmyadmin stopped working, I would see a blank page that sets a session cookie but does not show a login screen , just a blank page and the source of the page is also blank<\/p>\n\n\n\n<p>So, i added the following line to my config.inc.php<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$cfg['environment'] = 'development';<\/pre>\n\n\n\n<p>An right after, the following appeared<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">Array ( [type] =&gt; 1 [message] =&gt; Uncaught TypeError: PhpMyAdmin\\ConfigStorage\\Relation::__construct(): Argument #1 ($dbi) must be of type PhpMyAdmin\\DatabaseInterface, null given, called in \/var\/www\/html\/pma2\/libraries\/classes\/Twig\/RelationExtension.php on line 22 and defined in \/var\/www\/html\/pma2\/libraries\/classes\/ConfigStorage\/Relation.php:62 Stack trace: #0 \/var\/www\/html\/pma2\/libraries\/classes\/Twig\/RelationExtension.php(22): PhpMyAdmin\\ConfigStorage\\Relation-&gt;__construct() #1 \/var\/www\/html\/pma2\/vendor\/twig\/twig\/src\/ExtensionSet.php(426): PhpMyAdmin\\Twig\\RelationExtension-&gt;getFunctions() #2 \/var\/www\/html\/pma2\/vendor\/twig\/twig\/src\/ExtensionSet.php(411): Twig\\ExtensionSet-&gt;initExtension() #3 \/var\/www\/html\/pma2\/vendor\/twig\/twig\/src\/ExtensionSet.php(385): Twig\\ExtensionSet-&gt;initExtensions() #4 \/var\/www\/html\/pma2\/vendor\/twig\/twig\/src\/Environment.php(810): Twig\\ExtensionSet-&gt;getUnaryOperators() #5 \/var\/www\/html\/pma2\/vendor\/twig\/twig\/src\/Lexer.php(457): Twig\\Environment-&gt;getUnaryOperators() #6 \/var\/www\/html\/pma2\/vendor\/twig\/twig\/src\/Lexer.php(108): Twig\\Lexer-&gt;getOperatorRegex() #7 \/var\/www\/html\/pma2\/vendor\/twig\/twig\/src\/Environment.php(466): Twig\\Lexer-&gt;__construct() #8 \/var\/www\/html\/pma2\/vendor\/twig\/twig\/src\/Environment.php(516): Twig\\Environment-&gt;tokenize() #9 \/var\/www\/html\/pma2\/vendor\/twig\/twig\/src\/Environment.php(348): Twig\\Environment-&gt;compileSource() #10 \/var\/www\/html\/pma2\/vendor\/twig\/twig\/src\/Environment.php(309): Twig\\Environment-&gt;loadTemplate() #11 \/var\/www\/html\/pma2\/libraries\/classes\/Template.php(123): Twig\\Environment-&gt;load() #12 \/var\/www\/html\/pma2\/libraries\/classes\/Template.php(156): PhpMyAdmin\\Template-&gt;load() #13 \/var\/www\/html\/pma2\/libraries\/classes\/Core.php(145): PhpMyAdmin\\Template-&gt;render() #14 \/var\/www\/html\/pma2\/libraries\/classes\/Config.php(684): PhpMyAdmin\\Core::fatalError() #15 \/var\/www\/html\/pma2\/libraries\/classes\/Common.php(169): PhpMyAdmin\\Config-&gt;checkPermissions() #16 \/var\/www\/html\/pma2\/index.php(48): PhpMyAdmin\\Common::run() #17 {main} thrown [file] =&gt; \/var\/www\/html\/pma2\/libraries\/classes\/ConfigStorage\/Relation.php [line] =&gt; 62 ) <\/pre>\n\n\n\n<p>Turns out, this is an incompatibility (related to session storage) that has only been fixed in the 5.2 snapshot, download that version of phpmyadmin and everything should be fine<\/p>\n","protected":false},"excerpt":{"rendered":"<p>After an apt-get upgrade, phpmyadmin stopped working, I would see a blank page that sets a session cookie but does not show a login screen , just a blank page and the source of the page is also blank So, i added the following line to my config.inc.php $cfg[&#8216;environment&#8217;] = &#8216;development&#8217;; An right after, the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1669","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/posts\/1669","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/comments?post=1669"}],"version-history":[{"count":2,"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/posts\/1669\/revisions"}],"predecessor-version":[{"id":1848,"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/posts\/1669\/revisions\/1848"}],"wp:attachment":[{"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/media?parent=1669"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/categories?post=1669"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/tags?post=1669"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}