Fehlermeldung nach Update auf 3.0.8

phpBB 3.0 hat sein "End of Life" erreicht. Eine Neu-Installation wird nicht mehr unterstützt.
Stonewoman
Mitglied
Beiträge: 313
Registriert: 10.07.2005 15:09
Wohnort: Vinnen
Kontaktdaten:

Fehlermeldung nach Update auf 3.0.8

Beitrag von Stonewoman »

Hallo Leute,
ich habe folgende Fehlermeldung:
Parse error: syntax error, unexpected T_IF, expecting T_FUNCTION in /www/htdocs/xxx/phpBB3/includes/session.php on line 1818
Hier der Code der session.php ab Line 1817:

Code: Alles auswählen

// Is load exceeded?
		if ($config['limit_load'] && $this->load !== false)
		{
			if ($this->load > floatval($config['limit_load']) && !defined('IN_LOGIN') && !defined('IN_ADMIN'))
			{
				// Set board disabled to true to let the admins/mods get the proper notification
				$config['board_disable'] = '1';

				if (!$auth->acl_gets('a_', 'm_') && !$auth->acl_getf_global('m_'))
					{
						send_status_line(503, 'Service Unavailable');
					}
					trigger_error('BOARD_UNAVAILABLE');
				}
			}
		}

		if (isset($this->data['session_viewonline']))
		{
Weiß jemand Rat?

Danke, Stoni.
http://forum.skoliose-op.info
phpBB-Version: 3.0.11 | Style: subsilver2
MODs: Board3Portalv1.0.2 | Auto-Groups-101 | Anti_double_post_v1.0.5 | Geomap-2.1.0 | Who_was_here_1.0.0-RC1 | Firefox 3 Password Management Fix 1.0.0. | Smilies Categories 1.0.3 | Tablemaker Standalone) | NV_advanced_last_topic_titles_1_2_8
Birne94
Mitglied
Beiträge: 129
Registriert: 22.02.2009 18:57
Kontaktdaten:

Re: Fehlermeldung nach Update auf 3.0.8

Beitrag von Birne94 »

Ein paar Zeilen weiter oben im Quelltext wären hilfreich, da der Fehler vermutlich weiter oben liegt...
Stonewoman
Mitglied
Beiträge: 313
Registriert: 10.07.2005 15:09
Wohnort: Vinnen
Kontaktdaten:

Re: Fehlermeldung nach Update auf 3.0.8

Beitrag von Stonewoman »

Hallo,

ok, Line 1781 bis 1815:

Code: Alles auswählen

// Call phpbb_user_session_handler() in case external application want to "bend" some variables or replace classes...
		// After calling it we continue script execution...
		phpbb_user_session_handler();

		// If this function got called from the error handler we are finished here.
		if (defined('IN_ERROR_HANDLER'))
		{
			return;
		}

		// Disable board if the install/ directory is still present
		// For the brave development army we do not care about this, else we need to comment out this everytime we develop locally
		if (!defined('DEBUG_EXTRA') && !defined('ADMIN_START') && !defined('IN_INSTALL') && !defined('IN_LOGIN') && file_exists($phpbb_root_path . 'install') && !is_file($phpbb_root_path . 'install'))
		{
			// Adjust the message slightly according to the permissions
			if ($auth->acl_gets('a_', 'm_') || $auth->acl_getf_global('m_'))
			{
				$message = 'REMOVE_INSTALL';
			}
			else
			{
				$message = (!empty($config['board_disable_msg'])) ? $config['board_disable_msg'] : 'BOARD_DISABLE';
			}
			trigger_error($message);
		}

		// Is board disabled and user not an admin or moderator?
		if ($config['board_disable'] && !defined('IN_LOGIN') && !$auth->acl_gets('a_', 'm_') && !$auth->acl_getf_global('m_'))
			{
				send_status_line(503, 'Service Unavailable');
			}

			$message = (!empty($config['board_disable_msg'])) ? $config['board_disable_msg'] : 'BOARD_DISABLE';
			trigger_error($message);
		}
http://forum.skoliose-op.info
phpBB-Version: 3.0.11 | Style: subsilver2
MODs: Board3Portalv1.0.2 | Auto-Groups-101 | Anti_double_post_v1.0.5 | Geomap-2.1.0 | Who_was_here_1.0.0-RC1 | Firefox 3 Password Management Fix 1.0.0. | Smilies Categories 1.0.3 | Tablemaker Standalone) | NV_advanced_last_topic_titles_1_2_8
Birne94
Mitglied
Beiträge: 129
Registriert: 22.02.2009 18:57
Kontaktdaten:

Re: Fehlermeldung nach Update auf 3.0.8

Beitrag von Birne94 »

Zeile 1807(?):

Code: Alles auswählen

      // Is board disabled and user not an admin or moderator?
      if ($config['board_disable'] && !defined('IN_LOGIN') && !$auth->acl_gets('a_', 'm_') && !$auth->acl_getf_global('m_'))
         {
            send_status_line(503, 'Service Unavailable');
         }
An der Stelle stehen bei mir noch ein paar mehr Zeilen:

Code: Alles auswählen

		// Is board disabled and user not an admin or moderator?
		if ($config['board_disable'] && !defined('IN_LOGIN') && !$auth->acl_gets('a_', 'm_') && !$auth->acl_getf_global('m_'))
		{
			if ($this->data['is_bot'])
			{
				send_status_line(503, 'Service Unavailable');
			}
Eventuell ist da etwas abhanden gekommen...
Stonewoman
Mitglied
Beiträge: 313
Registriert: 10.07.2005 15:09
Wohnort: Vinnen
Kontaktdaten:

Re: Fehlermeldung nach Update auf 3.0.8

Beitrag von Stonewoman »

Hallo,

wenn ich die fehlende Passage hinzu füge kommt folgende Fehlermeldung:
Parse error: syntax error, unexpected T_IF, expecting T_FUNCTION in /www/htdocs/catty/phpBB3/includes/session.php on line 1836
Line 1836 ist: if (isset($this->data['session_viewonline']))

Code: Alles auswählen

// Set board disabled to true to let the admins/mods get the proper notification
				$config['board_disable'] = '1';

				if (!$auth->acl_gets('a_', 'm_') && !$auth->acl_getf_global('m_'))
					{
						send_status_line(503, 'Service Unavailable');
					}
					trigger_error('BOARD_UNAVAILABLE');
				}
			}
		}

		if (isset($this->data['session_viewonline']))
		{
			// Make sure the user is able to hide his session
			if (!$this->data['session_viewonline'])
			{
				// Reset online status if not allowed to hide the session...
				if (!$auth->acl_get('u_hideonline'))
				{
					$sql = 'UPDATE ' . SESSIONS_TABLE . '
						SET session_viewonline = 1
						WHERE session_user_id = ' . $this->data['user_id'];
					$db->sql_query($sql);
					$this->data['session_viewonline'] = 1;
				}
			}
			else if (!$this->data['user_allow_viewonline'])
			{
http://forum.skoliose-op.info
phpBB-Version: 3.0.11 | Style: subsilver2
MODs: Board3Portalv1.0.2 | Auto-Groups-101 | Anti_double_post_v1.0.5 | Geomap-2.1.0 | Who_was_here_1.0.0-RC1 | Firefox 3 Password Management Fix 1.0.0. | Smilies Categories 1.0.3 | Tablemaker Standalone) | NV_advanced_last_topic_titles_1_2_8
Benutzeravatar
Elsensee
Ehemaliges Teammitglied
Beiträge: 832
Registriert: 19.05.2010 15:14
Wohnort: Hamburg
Kontaktdaten:

Re: Fehlermeldung nach Update auf 3.0.8

Beitrag von Elsensee »

Anstelle von

Code: Alles auswählen

            if (!$auth->acl_gets('a_', 'm_') && !$auth->acl_getf_global('m_'))
               {
                  send_status_line(503, 'Service Unavailable');
               }
               trigger_error('BOARD_UNAVAILABLE'); 
steht im Original-Code das:

Code: Alles auswählen

            if (!$auth->acl_gets('a_', 'm_') && !$auth->acl_getf_global('m_'))
            {
               if ($this->data['is_bot'])
               {
                  send_status_line(503, 'Service Unavailable');
               }
               trigger_error('BOARD_UNAVAILABLE'); 
:)
Posts mostly powered by GitHub and phpBB.de Cross-Reference

2015-03-20 - Never forget 8)
Stonewoman
Mitglied
Beiträge: 313
Registriert: 10.07.2005 15:09
Wohnort: Vinnen
Kontaktdaten:

Re: Fehlermeldung nach Update auf 3.0.8

Beitrag von Stonewoman »

Hallo,

sorry, aber das ist doch das Selbe was Birne94 schon geschrieben hatte...
http://forum.skoliose-op.info
phpBB-Version: 3.0.11 | Style: subsilver2
MODs: Board3Portalv1.0.2 | Auto-Groups-101 | Anti_double_post_v1.0.5 | Geomap-2.1.0 | Who_was_here_1.0.0-RC1 | Firefox 3 Password Management Fix 1.0.0. | Smilies Categories 1.0.3 | Tablemaker Standalone) | NV_advanced_last_topic_titles_1_2_8
Benutzeravatar
gloriosa
Mitglied
Beiträge: 13770
Registriert: 04.01.2005 20:23
Wohnort: Landeshauptstadt Erfurt

Re: Fehlermeldung nach Update auf 3.0.8

Beitrag von gloriosa »

Hallo,
benenne doch einfach die jetzige session.php um, transferiere eine "frische" aus dem 3.0.8er Installationspaket auf den Webspace und schau was passiert.... :wink:
Viele Grüße - gloriosa :D
Die einen schützen sich vor frischem Wind, während die anderen ihn nutzen.
Kein kostenloser MOD-Einbau usw. bzw. Support via PN, Email oder IRC !
Stonewoman
Mitglied
Beiträge: 313
Registriert: 10.07.2005 15:09
Wohnort: Vinnen
Kontaktdaten:

Re: Fehlermeldung nach Update auf 3.0.8

Beitrag von Stonewoman »

Hallo Gloria,

wenn ich das mache, erscheint das Forum zwar, aber ich kann mich nicht anmelden, es erscheint:
Parse error: syntax error, unexpected $end in /www/htdocs/xxx/phpBB3/includes/functions_user.php on line 3615
http://forum.skoliose-op.info
phpBB-Version: 3.0.11 | Style: subsilver2
MODs: Board3Portalv1.0.2 | Auto-Groups-101 | Anti_double_post_v1.0.5 | Geomap-2.1.0 | Who_was_here_1.0.0-RC1 | Firefox 3 Password Management Fix 1.0.0. | Smilies Categories 1.0.3 | Tablemaker Standalone) | NV_advanced_last_topic_titles_1_2_8
Benutzeravatar
Elsensee
Ehemaliges Teammitglied
Beiträge: 832
Registriert: 19.05.2010 15:14
Wohnort: Hamburg
Kontaktdaten:

Re: Fehlermeldung nach Update auf 3.0.8

Beitrag von Elsensee »

Stonewoman hat geschrieben:Hallo,

sorry, aber das ist doch das Selbe was Birne94 schon geschrieben hatte...
Nein, meins kam nach

Code: Alles auswählen

            $config['board_disable'] = '1'; 
Posts mostly powered by GitHub and phpBB.de Cross-Reference

2015-03-20 - Never forget 8)
Gesperrt

Zurück zu „[3.0.x] Installation, Update und Konvertierung“