safeGT Installationsfehler

Du hast Probleme beim Einbau oder bei der Benutzung eines Mods? In diesem Forum bist du richtig.
Forumsregeln
phpBB 3.0 hat das Ende seiner Lebenszeit überschritten
phpBB 3.0 wird nicht mehr aktiv unterstützt. Insbesondere werden - auch bei Sicherheitslücken - keine Patches mehr bereitgestellt. Der Einsatz von phpBB 3.0 erfolgt daher auf eigene Gefahr. Wir empfehlen einen Umstieg auf die neuste phpBB-Version, welches aktiv weiterentwickelt wird und für welches regelmäßig Updates zur Verfügung gestellt werden.
GameNowDE
Mitglied
Beiträge: 42
Registriert: 01.03.2014 13:55
Wohnort: Aachen
Kontaktdaten:

Re: safeGT Installationsfehler

Beitrag von GameNowDE »

Ich komme immerhin schonmal auf die ''Foren Erstellen'' Seite. Wenn ich aber tatsächlich den Namen vom Forum eingebe und es erstelle, kommt folgendes:

Code: Alles auswählen

[phpBB Debug] PHP Warning: in file [ROOT]/includes/acp/acp_forums.php on line 678: in_array() expects parameter 2 to be array, null given
[phpBB Debug] PHP Warning: in file [ROOT]/includes/acp/acp_forums.php on line 679: in_array() expects parameter 2 to be array, null given
[phpBB Debug] PHP Warning: in file [ROOT]/includes/acp/acp_forums.php on line 680: in_array() expects parameter 2 to be array, null given
[phpBB Debug] PHP Warning: in file [ROOT]/includes/acp/acp_forums.php on line 681: in_array() expects parameter 2 to be array, null given
[phpBB Debug] PHP Warning: in file [ROOT]/includes/acp/acp_forums.php on line 682: in_array() expects parameter 2 to be array, null given
[phpBB Debug] PHP Warning: in file [ROOT]/includes/acp/acp_forums.php on line 683: in_array() expects parameter 2 to be array, null given
[phpBB Debug] PHP Warning: in file [ROOT]/adm/index.php on line 150: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3887)
[phpBB Debug] PHP Warning: in file [ROOT]/adm/index.php on line 152: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3887)
[phpBB Debug] PHP Warning: in file [ROOT]/adm/index.php on line 153: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3887)
[phpBB Debug] PHP Warning: in file [ROOT]/adm/index.php on line 154: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3887)
Benutzeravatar
BNa
Valued Contributor
Beiträge: 3169
Registriert: 12.04.2010 23:51
Kontaktdaten:

Re: safeGT Installationsfehler

Beitrag von BNa »

Da ist ja ein Abfrage, die ich vorher garnicht gesehen habe:

if (strlen($forum_data['forum_password']) == 32)

Daher:

Finde

Code: Alles auswählen

                                        if (strlen($forum_data['forum_password']) == 32)
                                        {
                                                $errors[] = $user->lang['FORUM_PASSWORD_OLD'];
                                                                               
                                            // SAFE GT START
                                            if (!empty($forum_data['forum_gamertags']))
                                            {
                                                   $thegts = unserialize($forum_data['forum_gamertags']);
                                                   if ($thegts == null){
                                                   $thegts = array();
                                                   }
                                            }
                                            else
                                            {
                                                    $thegts = array();
                                            }
                                            // SAFE GT END
                                            }
ersetze mit

Code: Alles auswählen

                                        if (strlen($forum_data['forum_password']) == 32)
                                        {
                                                $errors[] = $user->lang['FORUM_PASSWORD_OLD'];
                                                                               
                                            // SAFE GT START
                                            if (!empty($forum_data['forum_gamertags']))
                                            {
                                                   $thegts = unserialize($forum_data['forum_gamertags']);
                                                   if ($thegts == null){
                                                   $thegts = array();
                                                   }
                                            }
                                            else
                                            {
                                                    $thegts = array();
                                            }
                                            // SAFE GT END
                                             $thegts = array();
                                            }
GameNowDE
Mitglied
Beiträge: 42
Registriert: 01.03.2014 13:55
Wohnort: Aachen
Kontaktdaten:

Re: safeGT Installationsfehler

Beitrag von GameNowDE »

Jetzt komme ich schon nicht mehr auf ''Foren Verwalten''

Code: Alles auswählen

Parse error: syntax error, unexpected 'case' (T_CASE) in /users/gamenowde/www/phpBB3/includes/acp/acp_forums.php on line 698
Benutzeravatar
BNa
Valued Contributor
Beiträge: 3169
Registriert: 12.04.2010 23:51
Kontaktdaten:

Re: safeGT Installationsfehler

Beitrag von BNa »

Dann wurde der komplette Block falsch eingefügt.

Also nochmal Kommando zurück und..

Finde

Code: Alles auswählen

                                        if (strlen($forum_data['forum_password']) == 32)
                                        {
                                                $errors[] = $user->lang['FORUM_PASSWORD_OLD'];
                                                                               
                                            // SAFE GT START
                                            if (!empty($forum_data['forum_gamertags']))
                                            {
                                                   $thegts = unserialize($forum_data['forum_gamertags']);
                                                   if ($thegts == null){
                                                   $thegts = array();
                                                   }
                                            }
                                            else
                                            {
                                                    $thegts = array();
                                            }
                                            // SAFE GT END
                                            }
Ersetze mit

Code: Alles auswählen

                                        if (strlen($forum_data['forum_password']) == 32)
                                        {
                                                $errors[] = $user->lang['FORUM_PASSWORD_OLD'];
                                            }
                                                                               
                                            // SAFE GT START
                                            if (!empty($forum_data['forum_gamertags']))
                                            {
                                                   $thegts = unserialize($forum_data['forum_gamertags']);
                                                   if ($thegts == null){
                                                   $thegts = array();
                                                   }
                                            }
                                            else
                                            {
                                                    $thegts = array();
                                            }
                                            // SAFE GT END    
Zuletzt geändert von BNa am 02.03.2014 14:18, insgesamt 1-mal geändert.
GameNowDE
Mitglied
Beiträge: 42
Registriert: 01.03.2014 13:55
Wohnort: Aachen
Kontaktdaten:

Re: safeGT Installationsfehler

Beitrag von GameNowDE »

Wenn ich den ganzen Code-Block markiere findet NotePad ++ nichts.
Benutzeravatar
BNa
Valued Contributor
Beiträge: 3169
Registriert: 12.04.2010 23:51
Kontaktdaten:

Re: safeGT Installationsfehler

Beitrag von BNa »

GameNowDE
Mitglied
Beiträge: 42
Registriert: 01.03.2014 13:55
Wohnort: Aachen
Kontaktdaten:

Re: safeGT Installationsfehler

Beitrag von GameNowDE »

Um Zeile 600 ist das:

Code: Alles auswählen

	$s_show_display_on_index = false;

				if ($forum_data['parent_id'] > 0)
				{
					// if this forum is a subforum put the "display on index" checkbox
					if ($parent_info = $this->get_forum_info($forum_data['parent_id']))
					{
						if ($parent_info['parent_id'] > 0 || $parent_info['forum_type'] == FORUM_CAT)
						{
							$s_show_display_on_index = true;
						}
					}
				}


                                        {
                                                $thegts = array();
                                        }
                                        // SAFE GT END
                                       
                                       
                }

				$template->assign_vars(array(
					'S_EDIT_FORUM'		=> true,
					'S_ERROR'			=> (sizeof($errors)) ? true : false,
					'S_PARENT_ID'		=> $this->parent_id,
					'S_FORUM_PARENT_ID'	=> $forum_data['parent_id'],
					'S_ADD_ACTION'		=> ($action == 'add') ? true : false,

					'U_BACK'		=> $this->u_action . '&parent_id=' . $this->parent_id,
					'U_EDIT_ACTION'	=> $this->u_action . "&parent_id={$this->parent_id}&action=$action&f=$forum_id",

					'L_COPY_PERMISSIONS_EXPLAIN'	=> $user->lang['COPY_PERMISSIONS_' . strtoupper($action) . '_EXPLAIN'],
					'L_TITLE'						=> $user->lang[$this->page_title],
					'ERROR_MSG'						=> (sizeof($errors)) ? implode('<br />', $errors) : '',
Benutzeravatar
BNa
Valued Contributor
Beiträge: 3169
Registriert: 12.04.2010 23:51
Kontaktdaten:

Re: safeGT Installationsfehler

Beitrag von BNa »

guck mal den link zu deiner eingefügten datei.

deinen jetzt gezeigten ausschnitt finde ich nicht, der ist nun total durch

dein letzter pastebin link (zeile 591-608)

https://www.phpbb.de/support/pastebin.p ... iew&s=1403

Code: Alles auswählen

                                if (strlen($forum_data['forum_password']) == 32)
                                {
                                        $errors[] = $user->lang['FORUM_PASSWORD_OLD'];
                                                                       
                                    // SAFE GT START
                                    if (!empty($forum_data['forum_gamertags']))
                                    {
                                           $thegts = unserialize($forum_data['forum_gamertags']);
                                           if ($thegts == null){
                                           $thegts = array();
                                           }
                                    }
                                    else
                                    {
                                            $thegts = array();
                                    }
                                    // SAFE GT END
                                    } 
so und an diesem ausschnitt mache die in meinem letzten post angesagte änderung
Zuletzt geändert von BNa am 02.03.2014 14:25, insgesamt 1-mal geändert.
GameNowDE
Mitglied
Beiträge: 42
Registriert: 01.03.2014 13:55
Wohnort: Aachen
Kontaktdaten:

Re: safeGT Installationsfehler

Beitrag von GameNowDE »

Nach

Code: Alles auswählen

 // SAFE GT END
steht bei mir

Code: Alles auswählen

 $thegts = array();
und danach erst
Benutzeravatar
BNa
Valued Contributor
Beiträge: 3169
Registriert: 12.04.2010 23:51
Kontaktdaten:

Re: safeGT Installationsfehler

Beitrag von BNa »

mache natürlich alle dazwischen angesagten änderungen rückgängig
oder füge einfach nur den inhalt hier
https://www.phpbb.de/support/pastebin.p ... iew&s=1403
in deine datei

und mache dann die hier angesagte änderung
viewtopic.php?f=86&t=230795&p=1319425#p1319419
Antworten

Zurück zu „[3.0.x] Mod Support“