Page 1 of 1

Fehlermeldung Mod Versions Check

Posted: 15. September 2009 07:18
by Huchinotte
Deine Portal Version: 1.0.3
Typ Deines phpBB Forums: Standard phpBB3
MODs installiert: Ja
Dein Wissensstand: Grundwissen

Was hast Du gemacht, bevor das Problem aufgetreten ist?


Was hast Du bereits versucht um das Problem zu lösen?
Diskussion mit Author von "Who was here"

Fehlerbeschreibung und Nachricht
Hi .........

bei aktivierten Debug Modus bekomme ich im ACP bei "Auf Mod updates prüfen" folgende Fehlermeldung:

Code: Select all

[phpBB Debug] PHP Notice: in file /includes/acp/acp_version_check.php on line 186: Undefined index: value
[phpBB Debug] PHP Notice: in file /includes/acp/acp_version_check.php on line 84: Undefined index: description
[phpBB Debug] PHP Notice: in file /adm/index.php on line 153: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3247)
[phpBB Debug] PHP Notice: in file /adm/index.php on line 155: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3247)
[phpBB Debug] PHP Notice: in file /adm/index.php on line 156: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3247)
[phpBB Debug] PHP Notice: in file /adm/index.php on line 157: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3247)
Ich hatte erst den "NV_Who_was_here" Mod in verdacht aber der Mod-Author sieht keine Probleme mit seinem Mod. Da jetzt ein 2ter User das selbe Problem hat, sind wir darauf gekommen das es eventuell mit dem Board3 Portal zusammenhängt. Warum?
Nimm ich die nv_wwh_version check raus fällt diese Fehlermeldung weg und nur noch die anderen bleiben bestehen.

Code: Select all

[phpBB Debug] PHP Notice: in file /includes/acp/acp_version_check.php on line 186: Undefined index: value
Nimm ich nur die board3_portal_check_version rausnehme dann fällt diese Meldung weg

Code: Select all

[phpBB Debug] PHP Notice: in file /includes/acp/acp_version_check.php on line 84: Undefined index: description
Und das kuriose nehme ich beide Versionschecks raus sprich die wwh und die Portal dann erhalte ich keine Fehlermeldung mehr und "auf Mod updates prüfen" funktioniert einwandfrei.
Irgendwie scheint da was nicht ganz zu passen.

Gruß Huch[/i]

Re: Fehlermeldung Mod Versions Check

Posted: 15. September 2009 23:13
by Christian_N
k.A. wieso du die Meldung erhälst, ich erhalte komischerweise keine Fehlermeldungen.
Aber das Problem hatte jem. auch bei der phpBB Gallery von NV (zum Beitrag).

Wie dem auch sei, hab mal sicherheitshalber in der *.xml Datei noch

Code: Select all

		<description lang="en">Adds a portal to your forum.
It has several boxes wich can be turned on an off in the ACP and certain settings.</description>
eingefügt, kannst ja mal prüfen ob die Meldung:
[phpBB Debug] PHP Notice: in file /includes/acp/acp_version_check.php on line 84: Undefined index: description
weg ist jetzt, wenn in adm/mods/ nur die board3_portal_check_version.php Datei ist und keine andere mehr.

Ansonsten weiß ich auch kein Rat mehr dann.

Re: Fehlermeldung Mod Versions Check

Posted: 16. September 2009 07:34
by Huchinotte
Hi Christian_N,
Wie dem auch sei, hab mal sicherheitshalber in der *.xml Datei noch

Code: Select all

          <description lang="en">Adds a portal to your forum.
    It has several boxes wich can be turned on an off in the ACP and certain settings.</description>

eingefügt, kannst ja mal prüfen ob die Meldung:
Wo soll ich das einfügen?
Vielleicht mal noch nen Anhaltspunkt, vermute sogar das dies mit gewissen Servereinstellungen zu tun haben kann, denn ich hab mal zu Hause auf meiner Localen Installation meinens Boards geschaut und da bekomme ich die Fehlermeldung nicht. Nur mit welcher Einstellung soll das zu tun haben?

Gruß Huch

Re: Fehlermeldung Mod Versions Check

Posted: 16. September 2009 07:41
by Kevin
Hi Huch,

ersetze mal bitte den Inhalt der root/adm/mods/board3_portal_check_version.php
mit diesem:

Code: Select all

<?php
/**
*
* @package acp
* @version $Id: board3_portal_check_version.php 525 2009-08-28 13:01:35Z christian_n $
* @copyright (c) 2007 StarTrekGuide
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*
*/

/**
* @package mod_version_check
*/

if (!defined('IN_PHPBB'))
{
    exit;
}

class board3_portal_check_version
{
    function version()
    {
        global $portal_config, $phpbb_root_path, $phpEx;
        if (!function_exists('obtain_portal_config'))
        {
            include($phpbb_root_path . 'portal/includes/functions.' . $phpEx);
        }
        $portal_config = obtain_portal_config();

        return array(
            'author'    => 'Saint_hh',
            'title'        => 'Board3 Portal',
            'tag'        => 'board3_portal',
            'version'    => $portal_config['portal_version'],
            'file'        => array('board3.de', 'updatecheck', 'board3_portal.xml'),
        );
    }
}

?>
Und schau ob die Fehlermeldung noch kommt.

Gruß

Kevin

Re: Fehlermeldung Mod Versions Check

Posted: 16. September 2009 09:20
by Huchinotte
Hi ............ und moin

also mit der geänderten Version erhalte ich nur noch diese Meldung:

Code: Select all

[phpBB Debug] PHP Notice: in file /includes/acp/acp_version_check.php on line 186: Undefined index: value
[phpBB Debug] PHP Notice: in file /adm/index.php on line 153: Cannot modify header information - headers already sent by (output started at /adm/mods/board3_portal_check_version.php:1)
[phpBB Debug] PHP Notice: in file /adm/index.php on line 155: Cannot modify header information - headers already sent by (output started at /adm/mods/board3_portal_check_version.php:1)
[phpBB Debug] PHP Notice: in file /adm/index.php on line 156: Cannot modify header information - headers already sent by (output started at /adm/mods/board3_portal_check_version.php:1)
[phpBB Debug] PHP Notice: in file /adm/index.php on line 157: Cannot modify header information - headers already sent by (output started at /adm/mods/board3_portal_check_version.php:1)
und wenn ich die NV_wwh_version rausnehme erhalte ich diese

Code: Select all

[phpBB Debug] PHP Notice: in file /adm/index.php on line 153: Cannot modify header information - headers already sent by (output started at /adm/mods/board3_portal_check_version.php:1)
[phpBB Debug] PHP Notice: in file /adm/index.php on line 155: Cannot modify header information - headers already sent by (output started at /adm/mods/board3_portal_check_version.php:1)
[phpBB Debug] PHP Notice: in file /adm/index.php on line 156: Cannot modify header information - headers already sent by (output started at /adm/mods/board3_portal_check_version.php:1)
[phpBB Debug] PHP Notice: in file /adm/index.php on line 157: Cannot modify header information - headers already sent by (output started at /adm/mods/board3_portal_check_version.php:1)
Gruß Huch

Re: Fehlermeldung Mod Versions Check

Posted: 16. September 2009 09:26
by Kevin
Hm, angeblich gleich in Zeile 1.
Ich schätze das da evtl ein Leerzeichen nun mit rein gerutscht ist.
Um sicher zu gehen - nimm mal bitte diese fertige Datei:
board3_portal_check_version.zip
(608 Bytes) Downloaded 1349 times

Re: Fehlermeldung Mod Versions Check

Posted: 16. September 2009 10:12
by Huchinotte
Hi Kevin,

mit der neuen Version bekomme ich wieder folgende Meldung:

Code: Select all

[phpBB Debug] PHP Notice: in file /includes/acp/acp_version_check.php on line 186: Undefined index: value
[phpBB Debug] PHP Notice: in file /adm/index.php on line 153: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3247)
[phpBB Debug] PHP Notice: in file /adm/index.php on line 155: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3247)
[phpBB Debug] PHP Notice: in file /adm/index.php on line 156: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3247)
[phpBB Debug] PHP Notice: in file /adm/index.php on line 157: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3247)
Nimm ich nun wieder die nv_wwh_version raus ist diese Fehlermeldung weg und alles funktioniert. Liegt nun noch ein Fehler der nv_wwh_version vor oder wie kann ich das verstehen?

Gruß Huch

Re: Fehlermeldung Mod Versions Check

Posted: 16. September 2009 14:03
by HEADLINE
Hallo,

ich hatte auch das Problem! Mit dem Austausch ist die Fehlermeldung für Board3 Portal jetzt weg!
Jedoch bekomme ich noch eine von: addon_gallery_block_version.php
Kann man da auch etwas in der Datei ändern damit die Meldung verschwindet.

Bei nickvergessen war auch eine Meldung, er hat bei sich/php4 in die Beschreibung "none" eingegeben, da diese nicht leer sein darf!?
Zum Thema: http://www.phpbb.de/community/viewtopic ... 5#p1131785

Gruß, HEADLINE

Re: Fehlermeldung Mod Versions Check

Posted: 16. September 2009 17:26
by Christian_N
@Huchinotte: Die Änderung von mir hättest nirgends machen können, die hab ich auf board3.de in der board_portal.xml Datei gemacht den dort hatte das gefehlt, deshalb vermuten ich das die Meldung kam sprich "Undefined index: description" die Datei von Kevin ist jetzt die aus B3P 1.0.4 :D

@HEADLINE:
HEADLINE wrote:Jedoch bekomme ich noch eine von: addon_gallery_block_version.php
Was bemkommst da genau? Schätze mal auch "Undefined index: description" weil das in der *.xml auf meinem Server fehlt, werde es mal einfügen. :D

P.S. in der adm/mods/addon_gallery_block_version.php könntest folgendes aber sicherheitshalber ändern:
Finde:

Code: Select all

            if (!function_exists('obtain_portal_config'))
            {
                include($phpbb_root_path . 'portal/includes/functions.' . $phpEx);
                $portal_config = obtain_portal_config();
            } 
Ersetzen mit:

Code: Select all

        if (!function_exists('obtain_portal_config'))
        {
            include($phpbb_root_path . 'portal/includes/functions.' . $phpEx);
        }
        $portal_config = obtain_portal_config(); 
Wenn mein Download Block installiert ist auch hier am beste in adm/mods/addon_dl_block_version.php
Finde:

Code: Select all

            include_once($phpbb_root_path . 'portal/includes/functions.' . $phpEx);
            $portal_config = obtain_portal_config(); 
Ersetzen mit:

Code: Select all

        if (!function_exists('obtain_portal_config'))
        {
            include($phpbb_root_path . 'portal/includes/functions.' . $phpEx);
        }
        $portal_config = obtain_portal_config(); 
EDIT: So hab bei mir auf den Webspace in der mymods.xml jetzt noch
<description lang="en">Gallery block for your board3 Portal.</description> bzw. <description lang="en">Download block for your board3 Portal.</description> jetzt sollt die Meldung dementsprechend auch behoben sein. :)

Re: Fehlermeldung Mod Versions Check

Posted: 16. September 2009 18:09
by HEADLINE
Christian_N wrote:
HEADLINE wrote:Jedoch bekomme ich noch eine von: addon_gallery_block_version.php
Was bemkommst da genau? Schätze mal auch "Undefined index: description" weil das in der *.xml auf meinem Server fehlt, werde es mal einfügen. :D
Genau das hatte ich:

Code: Select all

[phpBB Debug] PHP Notice: in file /includes/acp/acp_version_check.php on line 84: Undefined index: description
Ist jetzt aber weg! Vielen Dank! :)

Ist es zu empfehlen trotzdem die oben angegebenen Änderungen durchzuführen?

Gruß, HEADLINE

Re: Fehlermeldung Mod Versions Check

Posted: 16. September 2009 18:33
by Christian_N
Christian_N wrote: P.S. in der adm/mods/addon_gallery_block_version.php könntest folgendes aber sicherheitshalber ändern:
solltest du und wenn den DL-Block installiert hast dort auch.
In der nächste Version wirds auf jeden Fall so dann sein. ;)

Re: Fehlermeldung Mod Versions Check

Posted: 16. September 2009 18:44
by HEADLINE
Prima! Hab`s erledigt! Danke!

Re: Fehlermeldung Mod Versions Check

Posted: 16. September 2009 19:32
by Christian_N
Ok, den es hätte sonst u.a. zu einen "Undefined index: portal_config" kommen können, wenn die Datei bereits schon andersweitig includiert wurden ist. deshalb hab ich das $portal_config = obtain_portal_config(); ausserhalb der if()-Bedingung gesetzt jetzt. :)