CINXE.COM
phpBB.de • [3.3] Sporadische php-Fehler - Seite 10
<!DOCTYPE html> <html dir="ltr" lang="de"> <head> <meta charset="utf-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="robots" content="noindex" /> <title>phpBB.de • [3.3] Sporadische php-Fehler - Seite 10</title> <link href="./styles/phpBBdev1/theme/print.css" rel="stylesheet"> </head> <body id="phpbb" class="ltr"> <div id="wrap" class="wrap"> <a id="top" class="top-anchor" accesskey="t"></a> <div id="page-header"> <h1>phpBB.de</h1> <p>phpBB.de - Die deutsche phpBB-Community<br /><a href="https://www.phpbb.de/community/">https://www.phpbb.de/community/</a></p> <h2>[3.3] Sporadische php-Fehler</h2> <p><a href="https://www.phpbb.de/community/viewtopic.php?t=246913">https://www.phpbb.de/community/viewtopic.php?t=246913</a></p> </div> <div id="page-body" class="page-body"> <div class="page-number">Seite <strong>10</strong> von <strong>12</strong></div> <div class="post"> <h3>Re: [3.3] Sporadische php-Fehler</h3> <div class="date">Verfasst: <strong>18.11.2024 13:41</strong></div> <div class="author">von <strong>LukeWCS</strong></div> <div class="content">Alles klar, habs, merci. Ich melde mich heute Abend dazu.</div> </div> <hr /> <div class="post"> <h3>Re: [3.3] Sporadische php-Fehler</h3> <div class="date">Verfasst: <strong>21.11.2024 20:04</strong></div> <div class="author">von <strong>LukeWCS</strong></div> <div class="content">Mit Versp盲tung...<br> <br> Man kann im Log prima sehen, dass der entsprechende Vorgang meistens problemlos klappt und nur sporadisch zu dem Fehler f眉hrt. Und es ist f眉r mich jetzt auch "ziemlich" klar, das meine Vermutung wohl zutrifft: das ist kein Versionsproblem und es ist auch kein Problem mit PHP 8, sondern es ist definitiv eine nicht reagierende DB mit zwangsl盲ufig auftretenden PHP Fehlern, weil diese Situation offensichtlich nicht von phpBB abgefangen wird.<br> <br> Salopp formuliert: Die PHP Version ist hier lediglich insofern relevant, weil PHP 7 in dem Fall quasi nur leise vor sich hin jammert - so das es niemand h枚rt - und PHP 8 schon deutlich lautstark protestiert. Aber definitiv <span style="text-decoration:underline">beide</span> PHPs sind mit der Gesamtsituation unzufrieden. <img class="smilies" src="./images/smilies/icon_e_wink.gif" width="15" height="17" alt=";)" title="Zwinkern"><br> <br> Ich habe mir das auch weiter angeschaut, das ist jenseits meiner Kenntnisse. Ich kann nur wiederholen was ich schon mal schrieb: das auf phpBB.com melden, vielleicht erstmal im Support Forum.</div> </div> <hr /> <div class="post"> <h3>Re: [3.3] Sporadische php-Fehler</h3> <div class="date">Verfasst: <strong>29.11.2024 19:47</strong></div> <div class="author">von <strong>guenniguenzelsen</strong></div> <div class="content">Hallo Luke,<br> mit etwas Versp盲tung auch eine R眉ckmeldung von mir.<br> Ich habe mich entschlossen den Provider zu wechseln und habe heute den Umzug vollzogen.<br> <br> Ich werde den Error-Log beobachten und hier nochmal eine R眉ckmeldung geben.<br> <br> Gru脽<br> Thomas</div> </div> <hr /> <div class="post"> <h3>Re: [3.3] Sporadische php-Fehler</h3> <div class="date">Verfasst: <strong>29.11.2024 20:37</strong></div> <div class="author">von <strong>LukeWCS</strong></div> <div class="content">nAbend Thomas<br> <br> Okay, danke f眉r die R眉ckmeldung. Dann schauen wir mal, wie es sich entwickelt.</div> </div> <hr /> <div class="post"> <h3>Re: [3.3] Sporadische php-Fehler</h3> <div class="date">Verfasst: <strong>30.11.2024 12:01</strong></div> <div class="author">von <strong>guenniguenzelsen</strong></div> <div class="content">So, meine R眉ckmeldung, nachdem das Forum jetzt 眉ber Nacht mal gelaufen ist.<br> Das Error-Log ist wieder gef眉llt mit den Fehlern.<br> <div class="codebox"><p>Code: <a href="#" onclick="selectCode(this); return false;">Alles ausw盲hlen</a></p><pre><code>[Sat Nov 30 11:15:55.014720 2024] [proxy_fcgi:error] [pid 628712:tid 140555367380736] [client 52.167.144.183:11624] AH01071: Got error 'PHP message: PHP Warning: Undefined array key "user_type" in /var/www/vhosts/nummer.web303.dogado.net/verzeichnis/phpBB3/phpbb/auth/auth.php on line 424; PHP message: PHP Warning: Undefined array key "user_type" in /var/www/vhosts/nummer.web303.dogado.net/verzeichnis/phpBB3/includes/functions.php on line 3978; PHP message: PHP Warning: Undefined array key "user_type" in /var/www/vhosts/nummer.web303.dogado.net/verzeichnis/phpBB3/phpbb/notification/method/board.php on line 147; PHP message: PHP Warning: Undefined array key "user_form_salt" in /var/www/vhosts/nummer.web303.dogado.net/verzeichnis/phpBB3/includes/functions.php on line 2014; PHP message: PHP Warning: Undefined array key "user_form_salt" in /var/www/vhosts/nummer.web303.dogado.net/verzeichnis/phpBB3/includes/functions.php on line 2043; PHP message: PHP Warning: Undefined array key "avatar" in /var/www/vhosts/nummer.web303.dogado.net/verzeichnis/phpBB3/includes/functions.php on line 3723; PHP message: PHP Warning: Undefined array key "avatar_width" in /var/www/vhosts/nummer.web303.dogado.net/verzeichnis/phpBB3/includes/functions.php on line 3724; PHP message: PHP Warning: Undefined array key "avatar_height" in /var/www/vhosts/nummer.web303.dogado.net/verzeichnis/phpBB3/includes/functions.php on line 3725; PHP message: PHP Warning: Undefined array key "avatar_type" in /var/www/vhosts/nummer.web303.dogado.net/verzeichnis/phpBB3/includes/functions.php on line 3730; PHP message: PHP Warning: Undefined array key "username" in /var/www/vhosts/nummer.web303.dogado.net/verzeichnis/phpBB3/includes/functions.php on line 4030; PHP message: PHP Warning: Undefined array key "user_colour" in /var/www/vhosts/nummer.web303.dogado.net/verzeichnis/phpBB3/includes/functions.php on line 4030; PHP message: PHP Warning: Undefined array key "username" in /var/www/vhosts/nummer.web303.dogado.net/verzeichnis/phpBB3/includes/functions.php on line 4031; PHP message: PHP Warning: Undefined array key "user_colour" in /var/www/vhosts/nummer.web303.dogado.net/verzeichnis/phpBB3/includes/functions.php on line 4031; PHP message: PHP Warning: Undefined array key "user_new_privmsg" in /var/www/vhosts/nummer.web303.dogado.net/verzeichnis/phpBB3/includes/functions.php on line 4039; PHP message: PHP Warning: Undefined array key "user_unread_privmsg" in /var/www/vhosts/nummer.web303.dogado.net/verzeichnis/phpBB3/includes/functions.php on line 4040; PHP message: PHP Warning: Undefined array key "user_new" in /var/www/vhosts/nummer.web303.dogado.net/verzeichnis/phpBB3/includes/functions.php on line 4041; PHP message: PHP Warning: Undefined array key "username" in /var/www/vhosts/nummer.web303.dogado.net/verzeichnis/phpBB3/includes/functions.php on line 4064; PHP message: PHP Warning: Undefined array key "user_colour" in /var/www/vhosts/nummer.web303.dogado.net/verzeichnis/phpBB3/includes/functions.php on line 4064; PHP message: PHP Warning: Undefined array key "user_perm_from" in /var/www/vhosts/nummer.web303.dogado.net/verzeichnis/phpBB3/includes/functions.php on line 4078; PHP message: PHP Warning: Undefined array key "username" in /var/www/vhosts/nummer.web303.dogado.net/verzeichnis/phpBB3/includes/functions.php on line 4088'</code></pre></div> Was mir noch in den Sinn kommt:<br> Ist es m枚glich, dass meine Datenbank oder ein Teil einer Tabelle fehlerhaft ist und dieser Fehler auch durch Import- Export immer weiter mitgef眉hrt wird?<br> in 2021 hat jemand aus dem SQL-Dump des Vorg盲ngerforums (andere Forensoftware) das phpBB-Forum aufgesetzt. Diese Daten眉bernahme war wohl teils h盲ndisch. Genaues zum Vorgehen meines Vorg盲ngers wei脽 ich allerdings nicht.</div> </div> <hr /> <div class="post"> <h3>Re: [3.3] Sporadische php-Fehler</h3> <div class="date">Verfasst: <strong>30.11.2024 12:03</strong></div> <div class="author">von <strong>chris1278</strong></div> <div class="content">Dann scheint es aber nicht am anbieter zu liegen.<br> <br> Frage hast du als datenbank mysql8 oger mysql5 da ausgew盲hlt.</div> </div> <hr /> <div class="post"> <h3>Re: [3.3] Sporadische php-Fehler</h3> <div class="date">Verfasst: <strong>30.11.2024 12:08</strong></div> <div class="author">von <strong>guenniguenzelsen</strong></div> <div class="content">Ich habe mysql 8 ausgew盲hlt und PHP 8.3 eingestellt.<br> <br> Siehe auch noch die Erg盲nzung meines Beitrages (zeitgleich zu Deiner Antwort).<br> K枚nnen Teile der Datenbank inkorrekt sein. Bspw durch die h盲ndische 脺bernahme von Daten aus einem alten SQL-Dump einer Fremdforensoftware?</div> </div> <hr /> <div class="post"> <h3>Re: [3.3] Sporadische php-Fehler</h3> <div class="date">Verfasst: <strong>30.11.2024 12:08</strong></div> <div class="author">von <strong>LukeWCS</strong></div> <div class="content">Mahlzeit<br> <blockquote cite="./viewtopic.php?p=1429549&sid=1bccddda30a3e572950f368f67530f16#p1429549"><div><cite><a href="./memberlist.php?mode=viewprofile&u=208175&sid=1bccddda30a3e572950f368f67530f16">guenniguenzelsen</a> hat geschrieben: <a href="./viewtopic.php?p=1429549&sid=1bccddda30a3e572950f368f67530f16#p1429549" aria-label="Zitierten Beitrag anzeigen" data-post-id="1429549" onclick="if(document.getElementById(hash.substr(1)))href=hash"><i class="icon fa-arrow-circle-up fa-fw" aria-hidden="true"></i></a><span class="responsive-hide">30.11.2024 12:01</span></cite> Ist es m枚glich, dass meine Datenbank oder ein Teil einer Tabelle fehlerhaft ist? </div></blockquote> Ich kann es mir ehrlich gesagt nicht vorstellen, denn du hast ja jetzt einen Umzug gemacht, also hast du die Tabellen exportiert und wieder importiert. H盲tte die DB einen Schuss gehabt, h盲tte es sicher Fehler beim Export gegeben und der Import h盲tte vermutlich auch nicht fehlerfrei geklappt.<br> <br> edit:<br> <blockquote cite="./viewtopic.php?p=1429549&sid=1bccddda30a3e572950f368f67530f16#p1429549"><div><cite><a href="./memberlist.php?mode=viewprofile&u=208175&sid=1bccddda30a3e572950f368f67530f16">guenniguenzelsen</a> hat geschrieben: <a href="./viewtopic.php?p=1429549&sid=1bccddda30a3e572950f368f67530f16#p1429549" aria-label="Zitierten Beitrag anzeigen" data-post-id="1429549" onclick="if(document.getElementById(hash.substr(1)))href=hash"><i class="icon fa-arrow-circle-up fa-fw" aria-hidden="true"></i></a><span class="responsive-hide">30.11.2024 12:01</span></cite> in 2021 hat jemand aus dem SQL-Dump des Vorg盲ngerforums (andere Forensoftware) das phpBB-Forum aufgesetzt. Diese Daten眉bernahme war wohl teils h盲ndisch. Genaues zum Vorgehen meines Vorg盲ngers wei脽 ich allerdings nicht. </div></blockquote> Diese Info hast du bisher noch nicht hier gegeben, oder? Denn wenn das urspr眉nglich mal eine andere Forensoft war und schon damals bei der Konvertierung nicht alles sauber vonstatten ging und die Probleme daher r眉hren, dann suchen wir hier an den v枚llig falschen Stellen. Aber das ist nur eine Vermutung von mir, denn bisher sah es so aus, als ob die DB nicht reagieren w眉rde. Wenn aber aufgrund einer unsauberen Konvertierung ung眉ltige Daten an den Server geschickt werden, dann w盲re das mal eine weitere potentielle Fehlerquelle.</div> </div> <hr /> <div class="post"> <h3>Re: [3.3] Sporadische php-Fehler</h3> <div class="date">Verfasst: <strong>30.11.2024 12:14</strong></div> <div class="author">von <strong>Mike-on-Tour</strong></div> <div class="content">Diese nicht definierten array keys sind alles Spalten aus der USERS_TABLE, sieht f眉r mich so aus, als w盲re die unvollst盲ndig und beim Session Start k枚nnen dem Benutzer diese Daten nicht zugewiesen werden. <br> Es gab mal auf .com eine Aufstellung aller phpBB-Tabellen, finde die aber momentan nicht (bin unterwegs und arbeite gerade mit Smartphone). Vielleicht findest du die ja und kannst mal die Spalten deiner Tabelle(n) mit den Originalen vergleichen.</div> </div> <hr /> <div class="post"> <h3>Re: [3.3] Sporadische php-Fehler</h3> <div class="date">Verfasst: <strong>30.11.2024 13:59</strong></div> <div class="author">von <strong>chris1278</strong></div> <div class="content">Du kannst ja mal folgendes versuchen um zu vergleichen.<br> <br> 脰ffne bei dir das phpmyadmin und exportiere dir die phpbb_users tabelle-<br> <br> Dann 枚ffne diese mit einem Programm. F眉r windows solltest du notepad++ nutzen.<br> <br> und vergleiche die werte mal mit diesem hier:<br> <div class="codebox"><p>Code: <a href="#" onclick="selectCode(this); return false;">Alles ausw盲hlen</a></p><pre><code>-- phpMyAdmin SQL Dump -- version 5.2.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Erstellungszeit: 30. Nov 2024 um 13:52 -- Server-Version: 10.4.32-MariaDB -- PHP-Version: 8.3.11 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8mb4 */; -- -- Datenbank: `testforum` -- dverse zeilen insert befehler die sind aber irrelevant -- -------------------------------------------------------- -- -- Tabellenstruktur f眉r Tabelle `phpbb_users` -- CREATE TABLE `phpbb_users` ( `user_id` int(10) UNSIGNED NOT NULL, `user_type` tinyint(2) NOT NULL DEFAULT 0, `group_id` mediumint(8) UNSIGNED NOT NULL DEFAULT 3, `user_permissions` mediumtext NOT NULL, `user_perm_from` mediumint(8) UNSIGNED NOT NULL DEFAULT 0, `user_ip` varchar(40) NOT NULL DEFAULT '', `user_regdate` int(11) UNSIGNED NOT NULL DEFAULT 0, `username` varchar(255) NOT NULL DEFAULT '', `username_clean` varchar(255) NOT NULL DEFAULT '', `user_password` varchar(255) NOT NULL DEFAULT '', `user_passchg` int(11) UNSIGNED NOT NULL DEFAULT 0, `user_email` varchar(100) NOT NULL DEFAULT '', `user_birthday` varchar(10) NOT NULL DEFAULT '', `user_lastvisit` int(11) UNSIGNED NOT NULL DEFAULT 0, `user_last_active` int(11) UNSIGNED NOT NULL DEFAULT 0, `user_lastmark` int(11) UNSIGNED NOT NULL DEFAULT 0, `user_lastpost_time` int(11) UNSIGNED NOT NULL DEFAULT 0, `user_lastpage` varchar(200) NOT NULL DEFAULT '', `user_last_confirm_key` varchar(10) NOT NULL DEFAULT '', `user_last_search` int(11) UNSIGNED NOT NULL DEFAULT 0, `user_warnings` tinyint(4) NOT NULL DEFAULT 0, `user_last_warning` int(11) UNSIGNED NOT NULL DEFAULT 0, `user_login_attempts` tinyint(4) NOT NULL DEFAULT 0, `user_inactive_reason` tinyint(2) NOT NULL DEFAULT 0, `user_inactive_time` int(11) UNSIGNED NOT NULL DEFAULT 0, `user_posts` mediumint(8) UNSIGNED NOT NULL DEFAULT 0, `user_lang` varchar(30) NOT NULL DEFAULT '', `user_timezone` varchar(100) NOT NULL DEFAULT '', `user_dateformat` varchar(64) NOT NULL DEFAULT 'd M Y H:i', `user_style` mediumint(8) UNSIGNED NOT NULL DEFAULT 0, `user_rank` mediumint(8) UNSIGNED NOT NULL DEFAULT 0, `user_colour` varchar(6) NOT NULL DEFAULT '', `user_new_privmsg` int(4) NOT NULL DEFAULT 0, `user_unread_privmsg` int(4) NOT NULL DEFAULT 0, `user_last_privmsg` int(11) UNSIGNED NOT NULL DEFAULT 0, `user_message_rules` tinyint(1) UNSIGNED NOT NULL DEFAULT 0, `user_full_folder` int(11) NOT NULL DEFAULT -3, `user_emailtime` int(11) UNSIGNED NOT NULL DEFAULT 0, `user_topic_show_days` smallint(4) UNSIGNED NOT NULL DEFAULT 0, `user_topic_sortby_type` varchar(1) NOT NULL DEFAULT 't', `user_topic_sortby_dir` varchar(1) NOT NULL DEFAULT 'd', `user_post_show_days` smallint(4) UNSIGNED NOT NULL DEFAULT 0, `user_post_sortby_type` varchar(1) NOT NULL DEFAULT 't', `user_post_sortby_dir` varchar(1) NOT NULL DEFAULT 'a', `user_notify` tinyint(1) UNSIGNED NOT NULL DEFAULT 0, `user_notify_pm` tinyint(1) UNSIGNED NOT NULL DEFAULT 1, `user_notify_type` tinyint(4) NOT NULL DEFAULT 0, `user_allow_pm` tinyint(1) UNSIGNED NOT NULL DEFAULT 1, `user_allow_viewonline` tinyint(1) UNSIGNED NOT NULL DEFAULT 1, `user_allow_viewemail` tinyint(1) UNSIGNED NOT NULL DEFAULT 1, `user_allow_massemail` tinyint(1) UNSIGNED NOT NULL DEFAULT 1, `user_options` int(11) UNSIGNED NOT NULL DEFAULT 230271, `user_avatar` varchar(255) NOT NULL DEFAULT '', `user_avatar_type` varchar(255) NOT NULL DEFAULT '', `user_avatar_width` smallint(4) UNSIGNED NOT NULL DEFAULT 0, `user_avatar_height` smallint(4) UNSIGNED NOT NULL DEFAULT 0, `user_sig` mediumtext NOT NULL, `user_sig_bbcode_uid` varchar(8) NOT NULL DEFAULT '', `user_sig_bbcode_bitfield` varchar(255) NOT NULL DEFAULT '', `user_jabber` varchar(255) NOT NULL DEFAULT '', `user_actkey` varchar(32) NOT NULL DEFAULT '', `user_actkey_expiration` int(11) UNSIGNED NOT NULL DEFAULT 0, `reset_token` varchar(64) NOT NULL DEFAULT '', `reset_token_expiration` int(11) UNSIGNED NOT NULL DEFAULT 0, `user_newpasswd` varchar(255) NOT NULL DEFAULT '', `user_form_salt` varchar(32) NOT NULL DEFAULT '', `user_new` tinyint(1) UNSIGNED NOT NULL DEFAULT 1, `user_reminded` tinyint(4) NOT NULL DEFAULT 0, `user_reminded_time` int(11) UNSIGNED NOT NULL DEFAULT 0 ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; -- -- Daten f眉r Tabelle `phpbb_users` -- -- -- Indizes der exportierten Tabellen -- -- -- Indizes f眉r die Tabelle `phpbb_users` -- ALTER TABLE `phpbb_users` ADD PRIMARY KEY (`user_id`), ADD UNIQUE KEY `username_clean` (`username_clean`), ADD KEY `user_birthday` (`user_birthday`), ADD KEY `user_type` (`user_type`), ADD KEY `user_email` (`user_email`); -- -- AUTO_INCREMENT f眉r exportierte Tabellen -- -- -- AUTO_INCREMENT f眉r Tabelle `phpbb_users` -- ALTER TABLE `phpbb_users` MODIFY `user_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=58; COMMIT; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; </code></pre></div> Das w盲re jetzt mal eine exportierung einer leeren standard phpbb installation. <br> <br> Mir geht es darum ob die art der Tabelle also die werte der spalten etc. abweichen oder nicht. <br> <br> z.B. <br> <br> die spalte user_type sollte den wert so haben: <code class="inline">tinyint(2) NOT NULL DEFAULT 0,</code><br> <br> Es k枚nnte ja durchaus sein das diese werte nicht 眉berall 眉bereinstimmen. Ist jetzt aber nur eine Vermutung. <br> <br> Nat眉rlich kann ich hier nur den code einer blanko user tabelle posten deine k枚nnten noch weitere spalten haben von evtl. erweiterungen oder wenn noch 盲lter modifizierungen.</div> </div> <hr /> </div> <div id="page-footer" class="page-footer"> <div class="page-number">Alle Zeiten sind <span title="Europa/Berlin">UTC+01:00</span><br />Seite <strong>10</strong> von <strong>12</strong></div> <div class="copyright"> <p>Powered by <a href="https://www.phpbb.com/">phpBB</a>® Forum Software © phpBB Limited </p> <p>Deutsche 脺bersetzung durch <a href="https://www.phpbb.de/">phpBB.de</a> </p> </div> </div> </div> </body> </html>