Seite 3 von 5

Re: safeGT Installationsfehler

Verfasst: 02.03.2014 14:01
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)

Re: safeGT Installationsfehler

Verfasst: 02.03.2014 14:11
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();
                                            }

Re: safeGT Installationsfehler

Verfasst: 02.03.2014 14:14
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

Re: safeGT Installationsfehler

Verfasst: 02.03.2014 14:16
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    

Re: safeGT Installationsfehler

Verfasst: 02.03.2014 14:17
von GameNowDE
Wenn ich den ganzen Code-Block markiere findet NotePad ++ nichts.

Re: safeGT Installationsfehler

Verfasst: 02.03.2014 14:18
von BNa

Re: safeGT Installationsfehler

Verfasst: 02.03.2014 14:21
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) : '',

Re: safeGT Installationsfehler

Verfasst: 02.03.2014 14:23
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

Re: safeGT Installationsfehler

Verfasst: 02.03.2014 14:25
von GameNowDE
Nach

Code: Alles auswählen

 // SAFE GT END
steht bei mir

Code: Alles auswählen

 $thegts = array();
und danach erst

Re: safeGT Installationsfehler

Verfasst: 02.03.2014 14:26
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