{"id":2423,"date":"2018-12-28T20:51:21","date_gmt":"2018-12-28T19:51:21","guid":{"rendered":"https:\/\/www.techmedia.pl\/blog\/?p=2423"},"modified":"2018-12-28T21:17:16","modified_gmt":"2018-12-28T20:17:16","slug":"phpmyadmin-methods-with-the-same-name-as-their-class-error","status":"publish","type":"post","link":"https:\/\/www.techmedia.pl\/blog\/phpmyadmin-methods-with-the-same-name-as-their-class-error\/","title":{"rendered":"phpMyAdmin &#8211; Methods with the same name as their class &#8211; error"},"content":{"rendered":"<p>Poni\u017csze b\u0142\u0119dy wyst\u0119puj\u0105 w Ubuntu 16.04 z wersj\u0105 PHP 7.0+<\/p>\n<p>Methods with the same name as their class will not be constructors in a future version of PHP; StringReader has a deprecated constructor.<\/p>\n<p>Sposobem na tymczasowe pozbycie si\u0119 ich jest r\u0119czna edycja 2 plik\u00f3w. Drug\u0105 opcj\u0105 jest czekanie na wydanie poprawionej wersji. Poni\u017cej rozwi\u0105zanie dla os\u00f3b, kt\u00f3re lubi\u0105 szybko pozby\u0107 si\u0119 problemu.<!--more--><\/p>\n<p>Nale\u017cy otworzy\u0107 do edycji plik <span style=\"color: #ff0000;\"><em>\/usr\/share\/php\/php-gettext\/streams.php<\/em><\/span> i zmieni\u0107 poni\u017csze linie:<\/p>\n<pre>root@server:\/# <strong>vim \/usr\/share\/php\/php-gettext\/streams.php<\/strong><\/pre>\n<p>W linii 52 zmieniamy:<\/p>\n<pre>function StringReader ($str='') {\r\nna\r\nfunction __construct($str='') {<\/pre>\n<p>W linii 90 zmieniamy:<\/p>\n<pre>function FileReader($filename) {\r\nna\r\nfunction __construct($filename) {<\/pre>\n<p>W linii 146 zmieniamy:<\/p>\n<pre>function CachedFileReader($filename) {\r\nna\r\nfunction __construct($filename) {<\/pre>\n<p>Nast\u0119pnie otwieramy do edycji plik\u00a0<span style=\"color: #ff0000;\"><em>\/usr\/share\/php\/php-gettext\/gettext.php<\/em><\/span><\/p>\n<pre>root@server:\/# <strong>vim \/usr\/share\/php\/php-gettext\/gettext.php<\/strong><\/pre>\n<p>i zmieniamy lini\u0119 101:<\/p>\n<pre>function gettext_reader($Reader, $enable_cache = true) {\r\nna\r\nfunction __construct($Reader, $enable_cache = true) {<\/pre>\n<p>Na zako\u0144czenie warto zrestartowa\u0107 apache&#8217;a:<\/p>\n<pre>root@server:\/# <strong>service apache2 restart<\/strong><\/pre>\n<p>lub<\/p>\n<pre>root@server:\/# <strong>systemctl restart apache2.service<\/strong><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Poni\u017csze b\u0142\u0119dy wyst\u0119puj\u0105 w Ubuntu 16.04 z wersj\u0105 PHP 7.0+ Methods with the same name as their class will not be constructors in a future version of PHP; StringReader has a deprecated constructor. Sposobem na tymczasowe pozbycie si\u0119 ich jest r\u0119czna edycja 2 plik\u00f3w. Drug\u0105 opcj\u0105 jest czekanie na wydanie poprawionej wersji. Poni\u017cej rozwi\u0105zanie dla [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[4,142],"tags":[62,161,106],"yst_prominent_words":[],"_links":{"self":[{"href":"https:\/\/www.techmedia.pl\/blog\/wp-json\/wp\/v2\/posts\/2423"}],"collection":[{"href":"https:\/\/www.techmedia.pl\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.techmedia.pl\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.techmedia.pl\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.techmedia.pl\/blog\/wp-json\/wp\/v2\/comments?post=2423"}],"version-history":[{"count":3,"href":"https:\/\/www.techmedia.pl\/blog\/wp-json\/wp\/v2\/posts\/2423\/revisions"}],"predecessor-version":[{"id":2426,"href":"https:\/\/www.techmedia.pl\/blog\/wp-json\/wp\/v2\/posts\/2423\/revisions\/2426"}],"wp:attachment":[{"href":"https:\/\/www.techmedia.pl\/blog\/wp-json\/wp\/v2\/media?parent=2423"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.techmedia.pl\/blog\/wp-json\/wp\/v2\/categories?post=2423"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.techmedia.pl\/blog\/wp-json\/wp\/v2\/tags?post=2423"},{"taxonomy":"yst_prominent_words","embeddable":true,"href":"https:\/\/www.techmedia.pl\/blog\/wp-json\/wp\/v2\/yst_prominent_words?post=2423"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}