Accueil
LimeSurvey Forums
Welcome, Guest
Please Login or Register.    Lost Password?
Re:JPGraph Problem (1 viewing) (1) Guest
Go to bottom Favoured: 0
TOPIC: Re:JPGraph Problem
#13816
MoMonika (User)
Fresh Lemon
Posts: 3
graphgraph
User Offline Click here to see the profile of this user
[done] JPGraph Problem 6 Months, 1 Week ago Karma: 0  
Hallo,

wir bekommen folgende fehlermeldung nach installation:

Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /www/htdocs/w008cceb/limesurvey/src/jpgraph.php on line 275

JPGraph Installationsdatei haben wir nach anweisung installiert und nicht geändert. PHP, JPGraph (Version: 2.3) und Limesurvey versionen passen.

Danke für die Hilfe!
 
Logged Logged  
 
Last Edit: 2008/09/08 14:28 By Mazi.
  The administrator has disabled public write access.
#13839
Mazi (Moderator)
Moderator Lime
Posts: 3349
graph
User Offline Click here to see the profile of this user
Re:JPGraph Problem 6 Months, 1 Week ago Karma: 28  
Poste mal bitte die JPGraph Einstellungen aus eurer config.php/config-defaults.php.
 
Logged Logged  
 
Best regards,
Mazi
______________________
Need help? I can: set up Limesurvey for you / create your survey / implement additional features / design your template / offer premium support -> Contact.
  The administrator has disabled public write access.
#13841
MoMonika (User)
Fresh Lemon
Posts: 3
graphgraph
User Offline Click here to see the profile of this user
Re:JPGraph Problem 6 Months, 1 Week ago Karma: 0  
ist enabled...


$usejpgraph = 1; //Set to 1 to enable
$jpgraphdir = dirname(__FILE__).'/src';
/$rootDir="C:\Inetpub\wwwroot\jpgraph"
$jpgraphfont = "FF_ARIAL";
$jpgraphfontdir = "";


lg, Monika
 
Logged Logged  
  The administrator has disabled public write access.
#13895
Mazi (Moderator)
Moderator Lime
Posts: 3349
graph
User Offline Click here to see the profile of this user
Re:JPGraph Problem 6 Months, 1 Week ago Karma: 28  
Vielleicht liegt es daran.

Falls die dort beschriebene Anpassung das Problem nicht löst, bitte mal die Zeilen 260 - 290 aus der JPGraph.php hier posten (als Zitat, damit man es wegen der Zeilnumbrüche besser lesen kann).
 
Logged Logged  
 
Best regards,
Mazi
______________________
Need help? I can: set up Limesurvey for you / create your survey / implement additional features / design your template / offer premium support -> Contact.
  The administrator has disabled public write access.
#13942
MoMonika (User)
Fresh Lemon
Posts: 3
graphgraph
User Offline Click here to see the profile of this user
Re:JPGraph Problem 6 Months, 1 Week ago Karma: 0  
danke - die schrift wars leider nicht.

hier der code ze 260-290 aus jpgraph.php

}
else {
$fname = substr($fname,0,strlen($fname)-4).'.'.$img_format;
}
return $fname;
}


//===================================================
// CLASS JpgTimer
// Description: General timing utility class to handle
// time measurement of generating graphs. Multiple
// timers can be started.
//===================================================
class JpgTimer {
private $start, $idx;
//---------------
// CONSTRUCTOR
function JpgTimer() {
$this->idx=0;
}

//---------------
// PUBLIC METHODS

// Push a new timer start on stack
function Push() {
list($ms,$s)=explode(" ",microtime());
$this->start[$this->idx++]=floor($ms*1000) + 1000*$s;
}
 
Logged Logged  
  The administrator has disabled public write access.
#13947
Mazi (Moderator)
Moderator Lime
Posts: 3349
graph
User Offline Click here to see the profile of this user
Re:JPGraph Problem 6 Months, 1 Week ago Karma: 28  
Hmm, schwierig...

Schau dir noch mal die Pfadangaben an. Die Fehlermeldung bezieht sich auf
limesurvey/src/jpgraph.php

Du hast in der konfigurationsdatei angegeben
/$rootDir="C:\Inetpub\wwwroot\jpgraph"

Da fehlt das schließende Semikolon and vor der Zeile steht ein Slash. Copy/Paste Fehler?

Außerdem stimmen die Pfade anscheinend nicht überein, da die jpgraph.php in /jpgraphinstallfolder/src/jpgraph.php liegen müsste, nach der Fehlermeldung hast du aber die jpgraphdateien direkt in /limesurvey installiert?!
 
Logged Logged  
 
Best regards,
Mazi
______________________
Need help? I can: set up Limesurvey for you / create your survey / implement additional features / design your template / offer premium support -> Contact.
  The administrator has disabled public write access.
#17946
Re:JPGraph Problem 3 Months, 1 Week ago  
Habe das gleiche Problem,
Pfad stimmt bei mir, sonst gibt es eine andere Fehlermeldung.

Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /mnt/webx/xx/xx/xxxxxxxx/htdocs/jpgraph2_3_3_src/jpgraph.php on line 285

gibt es schon eine Lösung?
 
Logged Logged  
  The administrator has disabled public write access.
#17947
Mein Name ist Hase (Visitor)

Re:JPGraph Problem 3 Months, 1 Week ago  
Alles klar.... Strato macht mist mit der php Version. Für JPGRAPH war php 5.x eingestellt. Lief aber alles erst nachdem ich auch beim Limesurvey Verzeichnis alles auf php 5.x gestellt hatte. Jetzt noch das Problem mit den Fonts und alles klar
 
Logged Logged  
  The administrator has disabled public write access.
#17985
CoreKeeper (User)
Fresh Lemon
Posts: 14
graphgraph
User Offline Click here to see the profile of this user
Re:JPGraph Problem 3 Months, 1 Week ago Karma: 0  
Mein Name ist Hase wrote:
Alles klar.... Strato macht mist mit der php Version. Für JPGRAPH war php 5.x eingestellt. Lief aber alles erst nachdem ich auch beim Limesurvey Verzeichnis alles auf php 5.x gestellt hatte. Jetzt noch das Problem mit den Fonts und alles klar

Hattest du bei Strato nicht das Problem, dass die mbstring-Bibliothek bei PHP nicht installiert ist? Wie hast du das gelöst? Oder hast du dort nen eigenen Server laufen?
 
Logged Logged  
  The administrator has disabled public write access.
Go to top