前提・実現したいこと
Apache2の設定がおかしくなってしまったのでApache2を再インストールし、設定ファイル類を初期化しました
そうしたところ、Wordpressの画面が真っ白になっていたのでデバッグモードをオンにしたところ、以下のようなエラーが出ました
PHPのエラーっぽいのですがPHPは少しかじった程度なので全くわかりません
解決方法を教えてほしいです
よろしくおねがいします
発生している問題・エラーメッセージ
Notice: Constant AUTH_KEY already defined in /home/hayao/www/wordpress/wp-config.php on line 96 Notice: Constant SECURE_AUTH_KEY already defined in /home/hayao/www/wordpress/wp-config.php on line 97 Notice: Constant LOGGED_IN_KEY already defined in /home/hayao/www/wordpress/wp-config.php on line 98 Notice: Constant NONCE_KEY already defined in /home/hayao/www/wordpress/wp-config.php on line 99 Notice: Constant AUTH_SALT already defined in /home/hayao/www/wordpress/wp-config.php on line 100 Notice: Constant SECURE_AUTH_SALT already defined in /home/hayao/www/wordpress/wp-config.php on line 101 Notice: Constant LOGGED_IN_SALT already defined in /home/hayao/www/wordpress/wp-config.php on line 102 Notice: Constant NONCE_SALT already defined in /home/hayao/www/wordpress/wp-config.php on line 103 Fatal error: Uncaught RuntimeException: The gmp or bcmath extension must be installed to read this database. in /home/hayao/www/wordpress/wp-content/plugins/wp-slimstat/maxmind.php:574 Stack trace: #0 /home/hayao/www/wordpress/wp-content/plugins/wp-slimstat/maxmind.php(447): MaxMindDecoder->decodeBigUint('[;\xE9U', 4) #1 /home/hayao/www/wordpress/wp-content/plugins/wp-slimstat/maxmind.php(413): MaxMindDecoder->decodeByType('uint64', 3450633, 4) #2 /home/hayao/www/wordpress/wp-content/plugins/wp-slimstat/maxmind.php(509): MaxMindDecoder->decode(3450633) #3 /home/hayao/www/wordpress/wp-content/plugins/wp-slimstat/maxmind.php(420): MaxMindDecoder->decodeMap(9, 3450631) #4 /home/hayao/www/wordpress/wp-content/plugins/wp-slimstat/maxmind.php(413): MaxMindDecoder->decodeByType('map', 3450560, 9) #5 /home/hayao/www/wordpress/wp-content/plugins/wp-slimstat/maxmind.php(90): MaxMindDecoder->decode(3450560) #6 /home/hayao/www/wordpress/wp-content/plugins/wp-slimstat/maxmind.php(20): MaxMindReader->__construct('/home/hayao/www...') # in /home/hayao/www/wordpress/wp-content/plugins/wp-slimstat/maxmind.php on line 574
該当のソースコード
どうやら、wp-config.phpとmaxmind.php(が原因のようだったのでリンクを載せておきます
https://www.dropbox.com/s/63dr44gi1tw7bdv/maxmind.php?dl=0
https://www.dropbox.com/s/kr2e9qyyng1gda3/wp-config.php?dl=0
試したこと
全く意味がわからなかったのでなにも試していません
また、導入したのが
補足情報(FW/ツールのバージョンなど)
PHP 最新版
Apache 2.4
Ubuntu 16.04 LTS Server
回答1件
あなたの回答
tips
プレビュー