Jump to content
InvisionCommunity.de - Der Deutsche Invision Community Support
Sign in to follow this  
Baucherl

Einfach über Nacht :(

Recommended Posts

Hallo ihr lieben Supporter,

wenn ich meinen Spielebereich aufrufen möchte bekomme ich folgende Fehlermeldung:

Parse error: syntax error, unexpected T_TRY, expecting ')' in /usr/export/www/vhosts/funnetwork/hosting/baucherl/forum/lang/en/lang_Arcade.php on line 350

Schaue ich dort nach steht dort nur:

try => "Versuche",

Wie im Thementitel schon erwähnt passierte es einfach über Nacht, es wurde weder am Forum gebastelt noch wurde ein Mod installiert.

Bis gestern abend lief noch alles einwandfrei.

Woran könnte es liegen? :huh:

Gruß

Baucherl

Share this post


Link to post

created_on => "Erstellt am",

creator => "von",

which_game => "Für welches Spiel möchtest Du ein Turnier erstellen ?",

many_players => "Wie viele Mitspieler ?",

tries_each_round => "Wie viele Versuche ?",

try => "Versuche",

create_tourney => "Erstelle Turnier",

pm_tourney_full => " Turnier wurde erstellt :)",

pm_tourney_msg => "Das Turnier <strong><% GAME %></strong> ist vollzählig und kann starten :freu:. Viel Glück!! <br><br>______________________________________________<br> Das ist eine automatisch erstellte Nachricht, bitte <strong>nicht</strong> antworten ! ",

tournament_created => "Turnier erstellt",

tourney_reg_ok => "Tournament regisration is OK",

wie gesagt, es wurde nichts verändert.

Jetzt kommt noch hinzu das die Profile der Mitglieder nur noch eine weiße Seite anzeigen :o

Ich bin ratlos :(

Share this post


Link to post

Das Schlüsselwort Try wird eigentlich für Exceptions verwendet.

Ändere mal bitte die Zeile

try   => "Versuche",
in
'try' => "Versuche",

um und schau mal, ob es dann klappt.

Share this post


Link to post

Klasse :) , danke Dir Stefan.

Die Spiele sind wieder erreichbar *freu

Jetzt kommt im ACP / Arcade in der Rubrik "Game List" folgende Meldung:

Fatal error: Cannot use object of type admin_functions as array in /usr/export/www/vhosts/funnetwork/hosting/baucherl/forum/sources/Admin/ad_arcade.php on line 799

und dort steht:

$this_query = $DB->query("SELECT * FROM ibf_games_list ".$query_extra." ORDER BY gtitle");

while( $GAME = $DB->fetch_row($this_query) )

{

$top['score'] = "None";

$top['name'] = "None";

$score_query = $DB->query("SELECT * FROM ibf_games_champs WHERE champ_gid=".$GAME['gid']);

if( $DB->get_num_rows($score_query) )

{

$top = $DB->fetch_row();

$top['score'] = $this->t3h_format($top['champ_score']);

$top['name'] = "<a href='".$ADMIN['base_url']."index.php?showuser=".$top['champ_mid']."' target='_blank' title='".$top['champ_name']."s Profile'>".$top['champ_name']."</a>";

}

$status['play_link'] = ($GAME['active']) ? "<a href='".$ADMIN['base_url']."index.php?act=Arcade&amp;do=play&amp;gameid=".$GAME['gid']."' target='_blank'>".$GAME['gtitle']."</a>" : $GAME['gtitle'];

$ADMIN->html .= $SKIN->add_td_row( array( "<div align='center'><img src='".$INFO['base_url']."arcade/images/".$GAME['gname']."1.gif' alt='".$GAME['gtitle']."' title='".$GAME['gtitle']."' /></div>",

"<div align='center' style='font-weight: bold'>".$status['play_link']."</a></div><br />Top Score: ".$top['score']."<br />By: ".$top['name'],

$GAME['gwords'],

"<div align='center'>".$GAME['gcount']."</div>",

"<div align='center'>".$status['color'][$GAME['active']]."</div>",

"<div align='center'><a href='{$ADMIN->base_url}&amp;act=arcade&amp;code=edit&amp;gid=".$GAME['gid']."'>Game</a><hr style='color: red;' />

<a href='{$ADMIN->base_url}&amp;act=arcade&amp;code=scores&amp;do=game&amp;gid=".$GAME['gid']."'>Scores</a></div>",

"<div align='center'><a href='{$ADMIN->base_url}&amp;act=arcade&amp;code=del&amp;gid=".$GAME['gid']."'>Delete</a></div>",

"<div align='center'>".$SKIN->form_checkbox( "move_to[]" , 0 , $GAME['gid'] )."</div>"

));

}{

Und jetzt fängt der Shop auch an Probleme zu bereiten *grübel

Aber alles nacheinander und jetzt nicht gleichzeitig weitere Baustellen eröffnen ;)

Share this post


Link to post

Jetzt kommt noch hinzu das die Profile der Mitglieder nur noch eine weiße Seite anzeigen :o

Ich bin ratlos :(

Kleiner Zwischenbericht ;)

Profile sind wieder on, war ein PHP 5 Problem, dieser Beitrag konnte mir helfen :)

Jetzt besteht nur noch der Fehler im ACP.

Gruß

Baucherl

Share this post


Link to post

Stringliterals sollten bei Array-Assignments immer in Quotes gesetzt werden, s.a.

http://de3.php.net/manual/en/language.types.array.php

-> Array do's and don'ts, Why is $foo[bar] wrong?

This is what happened to u:

So why is it bad then?

At some point in the future, the PHP team might want to add another constant or keyword, or you may introduce another constant into your application, and then you get in trouble. For example, you already cannot use the words empty and default this way, since they are special reserved keywords.

Dein Server wurd ueber Nacht auf PHP5 umgestellt, T_TRY isn Tokenizer der Zend Engine und try das entsp. keyword. Eigentlich musstest du alle Array Indices in Quotes (except Constantes + Variablen) setzen für ein sichere Zukunft mit PHP5.

//EDIT:

Jetzt besteht nur noch der Fehler im ACP.

Scroll weiter runter in http://www.ipbsupport.de/board/index.php?s...amp;#entry29058

Edited by Actron

Share this post


Link to post

Wie erwähnt, liegt das an PHP5. Gibst es ggf. eine neuere Version der Modifikation, die du verwenden kannst?

Ansonsten häng mal die ad_arcade.php hier an und ich schau mal drüber, wenn ich die Zeit finde.

Share this post


Link to post

Jetzt kommt im ACP / Arcade in der Rubrik "Game List" folgende Meldung:

Fatal error: Cannot use object of type admin_functions as array in /usr/export/www/vhosts/funnetwork/hosting/baucherl/forum/sources/Admin/ad_arcade.php on line 799

und dort steht:

$this_query = $DB->query("SELECT * FROM ibf_games_list ".$query_extra." ORDER BY gtitle");

while( $GAME = $DB->fetch_row($this_query) )

{

$top['score'] = "None";

$top['name'] = "None";

$score_query = $DB->query("SELECT * FROM ibf_games_champs WHERE champ_gid=".$GAME['gid']);

if( $DB->get_num_rows($score_query) )

{

$top = $DB->fetch_row();

$top['score'] = $this->t3h_format($top['champ_score']);

$top['name'] = "<a href='".$ADMIN['base_url']."index.php?showuser=".$top['champ_mid']."' target='_blank' title='".$top['champ_name']."s Profile'>".$top['champ_name']."</a>";

}

$status['play_link'] = ($GAME['active']) ? "<a href='".$ADMIN['base_url']."index.php?act=Arcade&amp;do=play&amp;gameid=".$GAME['gid']."' target='_blank'>".$GAME['gtitle']."</a>" : $GAME['gtitle'];

$ADMIN->html .= $SKIN->add_td_row( array( "<div align='center'><img src='".$INFO['base_url']."arcade/images/".$GAME['gname']."1.gif' alt='".$GAME['gtitle']."' title='".$GAME['gtitle']."' /></div>",

"<div align='center' style='font-weight: bold'>".$status['play_link']."</a></div><br />Top Score: ".$top['score']."<br />By: ".$top['name'],

$GAME['gwords'],

"<div align='center'>".$GAME['gcount']."</div>",

"<div align='center'>".$status['color'][$GAME['active']]."</div>",

"<div align='center'><a href='{$ADMIN->base_url}&amp;act=arcade&amp;code=edit&amp;gid=".$GAME['gid']."'>Game</a><hr style='color: red;' />

<a href='{$ADMIN->base_url}&amp;act=arcade&amp;code=scores&amp;do=game&amp;gid=".$GAME['gid']."'>Scores</a></div>",

"<div align='center'><a href='{$ADMIN->base_url}&amp;act=arcade&amp;code=del&amp;gid=".$GAME['gid']."'>Delete</a></div>",

"<div align='center'>".$SKIN->form_checkbox( "move_to[]" , 0 , $GAME['gid'] )."</div>"

));

}{

...und wieder einen Schritt weiter.

$ADMIN['base_url'] (siehe grün markiertes) musste geändert werden in $ADMIN->base_url

Und da es im ad_arcade.php mehrere $ADMIN['base_url'] gibt müssen bzw.musste ich diese auch ändern und schon gings :)

Gruß

Baucherl

Share this post


Link to post

Einfach über Nacht die Zweite ;)

Seit gut einer Woche quäle ich mich durch die Skins und css dateien und finde den Fehler einfach nicht :o

Dienstags lief das Forum noch wie gewünscht und Mittwochs ist es in die Breite gegangen.

Dazu kommt, das die Foren inkl. Beiträge alle zentriert waren.

Das Zentrierte konnte ich beheben aber die Breite bleibt.

Ich habe wirklich schoch einiges versucht, z.B. aufspielen der Sicherrungskopie. Nichts hilft.

Spiele ich die saubere css auf ist alles wieder mittig.

Seitdem das Forum im "16:9" Format ist, funktioniert das PM System nicht mehr. In wie weit das alles zusammenhängt weiß ich nicht, bekomme dann immer folgende Meldung

Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /usr/export/www/vhosts/funnetwork/hosting/baucherl/forum/lang/en/lang_error.php on line 26

Dort steht nur:

linie26hv5.png

In wie weit das PM System mit der Breite des Forums zusammenhängt weiß ich nicht *grübel*

Wäre für einen kleinen Ideenschupser dankbar ;)

Lg

Baucherl

Share this post


Link to post

Danke Stefan :) :) , super schnelle Antwort :clap:

kleine Ursache mit einer großen Wirkung.

Nur frage ich mich grad, wie Anführungszeichen sich über Nacht verabschieden können und keine Nachricht hinterlassen *gg

Jetzt bleibt nur noch das Problem "Breite".

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×