PollXT auf Joomla installiert

Hallo zusammen,
ich habe gestern eine Erweiterung genannt PollXT auf meinem Joomlasystem installiert. Leider gibt es nun ein kleines Problem: Wenn ich eine Umfrage erstellen will oder ähnliches mit der Erweiterung machen will, kommt folgende Fehlermeldung:
"Warning: is_dir() [function.is-dir]: open_basedir restriction in effect. File(/users/sbbaus/www/joomla/administrator/components/com_pollxt/plugins//index.php/) is not within the allowed path(s): (/users/sbbaus/temp:/users/sbbaus/www) in /users/sbbaus/www/joomla/administrator/components/com_pollxt/pollxt.common.php on line 137"
Ich habe gedacht, es liegt vielleicht an der .htaccess, also mal SEO und Mod_Rewrite testweise ausgemacht, doch auch das löst das Problem nicht. Muss hier wieder ein Patch für PHP 5.3 drübergebügelt werden oder kann mir jemand anderweitig helfen?
Gruß
FreezeT

Keiner ne idee? Ich krieg die Fehlermeldungen zu hauf und denke es liegt wohl an der Konfiguration des Servers?!

Schaut ihr alle zu viele Teenie-"Horror"filmchen, oder wieso seid ihr alle solche “Slasher” …?

viewtopic.php?p=259327#p259327

Ja das weiß ich auch, dass da kein Slash hingehört, nur wie kommt er dahin? Ist ja nicht auf meinem Mist gewachsen :wink:!

Also wenn das Script nicht extrem besch…eiden geschrieben sein sollte, dann würde ich doch darauf tippen, dass die Pfadangaben in der Konfiguration irgendwo nicht stimmen - irgendwo Verzeichnisname mit Slash(es) angegeben, statt ohne …

Mmh, habs nur installiert :(. Auf meiner lokalen Kopie lief das wunderbar nur hier irgendwie nicht. Kanns nicht auch irgendwie an der .htaccess liegen?

Also verzeichnisse kann ich leider nicht einstellen :(. Was könnte man noch machen?

Da ist ja vermutlich auch kein open_basedir definiert.

Schauen, wo die unsinnige Angabe dann her kommt, wenn nicht aus der Konfiguration.

Und im Zweifelsfalle, an den Scriptersteller wenden.

Na mal dumm gefragt, wo könnte sie den herkommen? Ich habe leider keine Ahnung, deswegen frage ich.

Irgendwo aus dem Code - hart kodiert, oder dynamisch zusammengesetzt.

Hi sbbaus,

hatte das selbe Problem und die Lösung habe ich auch schon auf der Homepage des Entwicklers gepostet. Laut Entwickler sollten die Modifikationen zu keinen Problemen führen (hab die Anleitung auf englisch geschrieben, damit alle was von haben :wink: ):

I edited the “pollxt.common.php” in administrator/components/com_pollxt/. Line 117.

There was a “$file.”/"; and i entered a "$file;

After that everthing worked fine, but the Results weren’t shown. So i edited the “pollxtresult.class.php” in /components/com_pollxt/class Line 211.

There was a: $o_rest = mb_substr($r->data->qoption,strlen($o_intro), ‘UTF-8’);

and i entered a $o_rest = mb_substr($r->data->qoption,strlen($o_intro));

Danach hat alles wieder einwandfrei funktioniert. Viel Spass damit…

Grüße

Ich habe gerade gesehen, daß Du schon auf der HP des Herstellers einen Thread aufgemacht und meine Anleitung zum fixen schon durchgeführt hast.

Laut der Fehlerbeschreibung, die Du nun bekommst gibt es ein Problem in der Datei pollxt.utilities.php. Diese liegt unter /components/com_pollxt/class/

Ich vermute einmal, daß hier der UTF-8-Aufruf nicht funktioniert. Suche in der Datei nach mb_substr Da solltest du dann 2 Einträge finden. Jeweils ganz am Ende der beiden Zeilen steht ein ‘UTF-8’. Das solltest Du löschen, sodaß es so aussieht: mb_substr($o[2],0,strpos(wordwrap( $o[2], $l, “\n” ),"\n"));

bzw.:

mb_substr($o[2],strlen($o_intro));

Danach sollten dir die Fragen angezeigt werden. BITTE MACHE VORHER UNBEDINGT EIN BACKUP DER DATEI, FALLS DIES NICHT DIE LÖSUNG IST.

Kannst ja mal Bescheid geben, ob alles geklappt hat.

Zu beachten wäre, daß es zukünftig eventuell zu Problemen mit den Umlauten kommen könnte. Ich selber habe noch keine festgestellt, aber man weiss ja nie…

Heyho,
ich danke dir für deine Hilfe. Es klappt damit schon sehr gut, echt super :smiley:. Ne Andere Sache, hast du das deutsche Sprachpaket installiert? Und wenn ja, wo muss ich die Ini den hinschieben?
Gruß
FreezeT

Di Sprachdatei liegt in: Joomla-root-Verzeichnis\language und dann im jeweiligem Sprachordner.

Da ich immernoch noch nicht herausgefunden habe, wo die Verlinkung zur Sprache stattfindet habe ich einfach im Verzeichnis \language/en-GB/ die en-GB.com_pollxt.ini angepasst. Dort habe ich dann die Werte nach meinen Vorstellungen angepasst. Das sieht dann bei mir so aus:

POLLXT_POLL_TITLE=Abstimmung
POLLXT_VOTABLE=Wahl möglich?
POLLXT_RESULTS=Ergebnisse
POLLXT_CONTINUE=Weiter
POLLXT_CLOSE=Schliessen
POLLXT_BACK=Zurück
POLLXT_DETAIL=Wer hat wen gewählt?
POLLXT_ACTIVATE=Deine Umfrage wurde erfolgreich rübertragen
POLLXT_NOT_ACTIVATED=Bestätigungsschlüssel falsch oder schon bestätigt.
POLLXT_OBLIGATORY=Obligatorische Fragen nicht beantwortet:
POLLXT_EMAIL_FAIL=Konnte EMail nicht senden. Bitte überprüfe, ob Dein User eine korrekte EMail-Adresse hat
POLLXT_NO_POLLS=Du musst angemeldet sein um an Umfragen teilnehmen zu können.
POLLXT_VOTES=Anzahl der Stimmen
POLLXT_VOTING_UNTIL=Abstimmen möglich bis:
POLLXT_PLEASE_SELECT=- - - Bitte auswählen - - -
POLLXT_ENTER_TEXT=Bitte gib einen Text im Textfeld ein
POLLXT_VOTE_SUBMITTED=Stimme abgesendet
POLLXT_LOADING=Lade Abstimmung…
POLLXT_EMAIL=Email:
POLLXT_EMAIL_MISSING=Bitte gib deine Email-Adresse für die Bestätigung an.
POLLXT_ALREADY_VOTE=Du hast bei dieser Umfrage bereits abgestimmt.
POLLXT_NOT_AUTH=Du hast keine Berechtigung für diese Umfrage.
POLLXT_NO_SELECTION=Du hast nichts ausgewählt’.

POLLXT_SEL_POLL=Wäle die Abstimmung aus:

POLLXT_EMAIL_NOT_VALID=Bitte gib eine gültige Email Adresse ein.

POLLXT_OBLIGATORY_QUESTION=Obligatorische Frage. Muss vor dem Abstimmen beantwortet werden.
POLLXT_MAXVOTES=Bitte wähle nicht mehr als
POLLXT_MAXVOTES_END= Antworten
POLLXT_MINVOTES=Please select at least
POLLXT_MINVOTES_END= Antworten

BUTTON_VOTE=Abstimmen
BUTTON_RESULTS=Ergebnisse
NUM_VOTERS=Anz. Stimmen
FIRST_VOTE=Erste Stimme
LAST_VOTE=Letzte Stimme
SEL_POLL=Umfrage auswählen:
NO_RESULTS=Keine Ergebnisse für diese Umfrage.
THANKS=Danke f&uumlr die Stimme.
PROMPT_CLOSE=Schliessen
CMN_NEXT=Vor
CMN_NEXT_ARROW=>>
CMN_PREV=Zurück
CMN_PREV_ARROW=<<

Grüße

Hiho,
danke für die Hilfe. Jetzt habe ich nur noch das kleine Problem, dass ich die Ergebnisse leider nicht anzeigen kann. Vielleicht hab ich auch einen Fehler gemacht, ich weiß es nicht.
Der Fehler wenn ich die Ergebnisse anzeigen will ist: [code]Caught error [Error:
name: SyntaxError
message: Statement on line 131: Syntax error
Backtrace:
Line 131 of inline#2 script in http://sbbaus.bplaced.net/joomla/umfragen
callback(eval(data), extra_data);

]: Could not eval

.bpe a:link, .bpe a:visited, .bpe a:active { color: #0b4c8e; text-decoration: none; } .bpe a:hover { color: #0D7CEC; }



Warning: mb_substr() [function.mb-substr]: Unknown encoding “” in /users/sbbaus/www/joomla/components/com_pollxt/class/pollxtresult.class.php on line 209

.bpe a:link, .bpe a:visited, .bpe a:active { color: #0b4c8e; text-decoration: none; } .bpe a:hover { color: #0D7CEC; }


Warning: mb_substr() expects parameter 3 to be long, string given in /users/sbbaus/www/joomla/components/com_pollxt/class/pollxtresult.class.php on line 211

.bpe a:link, .bpe a:visited, .bpe a:active { color: #0b4c8e; text-decoration: none; } .bpe a:hover { color: #0D7CEC; }


Warning: mb_substr() [function.mb-substr]: Unknown encoding “” in /users/sbbaus/www/joomla/components/com_pollxt/class/pollxtresult.class.php on line 209

.bpe a:link, .bpe a:visited, .bpe a:active { color: #0b4c8e; text-decoration: none; } .bpe a:hover { color: #0D7CEC; }


Warning: mb_substr() expects parameter 3 to be long, string given in /users/sbbaus/www/joomla/components/com_pollxt/class/pollxtresult.class.php on line 211

.bpe a:link, .bpe a:visited, .bpe a:active { color: #0b4c8e; text-decoration: none; } .bpe a:hover { color: #0D7CEC; }


Warning: mb_substr() [function.mb-substr]: Unknown encoding “” in /users/sbbaus/www/joomla/components/com_pollxt/class/pollxtresult.class.php on line 209

.bpe a:link, .bpe a:visited, .bpe a:active { color: #0b4c8e; text-decoration: none; } .bpe a:hover { color: #0D7CEC; }


Warning: mb_substr() expects parameter 3 to be long, string given in /users/sbbaus/www/joomla/components/com_pollxt/class/pollxtresult.class.php on line 211

.bpe a:link, .bpe a:visited, .bpe a:active { color: #0b4c8e; text-decoration: none; } .bpe a:hover { color: #0D7CEC; }


Warning: mb_substr() [function.mb-substr]: Unknown encoding “” in /users/sbbaus/www/joomla/components/com_pollxt/class/pollxtresult.class.php on line 209

.bpe a:link, .bpe a:visited, .bpe a:active { color: #0b4c8e; text-decoration: none; } .bpe a:hover { color: #0D7CEC; }


Warning: mb_substr() expects parameter 3 to be long, string given in /users/sbbaus/www/joomla/components/com_pollxt/class/pollxtresult.class.php on line 211

.bpe a:link, .bpe a:visited, .bpe a:active { color: #0b4c8e; text-decoration: none; } .bpe a:hover { color: #0D7CEC; }


Warning: mb_substr() [function.mb-substr]: Unknown encoding “” in /users/sbbaus/www/joomla/components/com_pollxt/class/pollxtresult.class.php on line 209

.bpe a:link, .bpe a:visited, .bpe a:active { color: #0b4c8e; text-decoration: none; } .bpe a:hover { color: #0D7CEC; }


Warning: mb_substr() expects parameter 3 to be long, string given in /users/sbbaus/www/joomla/components/com_pollxt/class/pollxtresult.class.php on line 211

.bpe a:link, .bpe a:visited, .bpe a:active { color: #0b4c8e; text-decoration: none; } .bpe a:hover { color: #0D7CEC; }


Warning: mb_substr() [function.mb-substr]: Unknown encoding “” in /users/sbbaus/www/joomla/components/com_pollxt/class/pollxtresult.class.php on line 209

.bpe a:link, .bpe a:visited, .bpe a:active { color: #0b4c8e; text-decoration: none; } .bpe a:hover { color: #0D7CEC; }


Warning: mb_substr() expects parameter 3 to be long, string given in /users/sbbaus/www/joomla/components/com_pollxt/class/pollxtresult.class.php on line 211

.bpe a:link, .bpe a:visited, .bpe a:active { color: #0b4c8e; text-decoration: none; } .bpe a:hover { color: #0D7CEC; }


Warning: mb_substr() [function.mb-substr]: Unknown encoding “” in /users/sbbaus/www/joomla/components/com_pollxt/class/pollxtresult.class.php on line 209

.bpe a:link, .bpe a:visited, .bpe a:active { color: #0b4c8e; text-decoration: none; } .bpe a:hover { color: #0D7CEC; }


Warning: mb_substr() expects parameter 3 to be long, string given in /users/sbbaus/www/joomla/components/com_pollxt/class/pollxtresult.class.php on line 211

.bpe a:link, .bpe a:visited, .bpe a:active { color: #0b4c8e; text-decoration: none; } .bpe a:hover { color: #0D7CEC; }


Warning: mb_substr() [function.mb-substr]: Unknown encoding “” in /users/sbbaus/www/joomla/components/com_pollxt/class/pollxtresult.class.php on line 209

.bpe a:link, .bpe a:visited, .bpe a:active { color: #0b4c8e; text-decoration: none; } .bpe a:hover { color: #0D7CEC; }


Warning: mb_substr() expects parameter 3 to be long, string given in /users/sbbaus/www/joomla/components/com_pollxt/class/pollxtresult.class.php on line 211

.bpe a:link, .bpe a:visited, .bpe a:active { color: #0b4c8e; text-decoration: none; } .bpe a:hover { color: #0D7CEC; }


Warning: mb_substr() [function.mb-substr]: Unknown encoding “” in /users/sbbaus/www/joomla/components/com_pollxt/class/pollxtresult.class.php on line 209

.bpe a:link, .bpe a:visited, .bpe a:active { color: #0b4c8e; text-decoration: none; } .bpe a:hover { color: #0D7CEC; }


Warning: mb_substr() expects parameter 3 to be long, string given in /users/sbbaus/www/joomla/components/com_pollxt/class/pollxtresult.class.php on line 211

.bpe a:link, .bpe a:visited, .bpe a:active { color: #0b4c8e; text-decoration: none; } .bpe a:hover { color: #0D7CEC; }


Warning: mb_substr() [function.mb-substr]: Unknown encoding “” in /users/sbbaus/www/joomla/components/com_pollxt/class/pollxtresult.class.php on line 209

.bpe a:link, .bpe a:visited, .bpe a:active { color: #0b4c8e; text-decoration: none; } .bpe a:hover { color: #0D7CEC; }


Warning: mb_substr() expects parameter 3 to be long, string given in /users/sbbaus/www/joomla/components/com_pollxt/class/pollxtresult.class.php on line 211

.bpe a:link, .bpe a:visited, .bpe a:active { color: #0b4c8e; text-decoration: none; } .bpe a:hover { color: #0D7CEC; }


Warning: mb_substr() [function.mb-substr]: Unknown encoding “” in /users/sbbaus/www/joomla/components/com_pollxt/class/pollxtresult.class.php on line 209

.bpe a:link, .bpe a:visited, .bpe a:active { color: #0b4c8e; text-decoration: none; } .bpe a:hover { color: #0D7CEC; }


Warning: mb_substr() expects parameter 3 to be long, string given in /users/sbbaus/www/joomla/components/com_pollxt/class/pollxtresult.class.php on line 211

var res = ‘{“message”:"",“func”:"",“text”:"<link rel=\“stylesheet\” href=\“components\/com_pollxt\/poll_bars.css\” type=\“text\/css\” \/><script type=\“text\/javascript\” src=\“components\/com_pollxt\/script\/pollxt.js\”><\/script><div class=\“pollstableborder\” ><div width=\“100%\” class=\“sectiontableheader\”>Wie gef\u00e4llt dir diese Homepage? (Schulnoten)<\/div><div class=\“sectiontableentry1\”>1<\/div><div class=\“sectiontableentry1\”><img src=\“http:\/\/sbbaus.bplaced.net\/joomla\/components\/com_pollxt\/images\/blank.png\” class=\“polls_color_1\” height=\“5px\” width=\“90%\” \/> 1 ( 100%)<\/div><div class=\“sectiontableentry2\”>2<\/div><div class=\“sectiontableentry2\”><img src=\“http:\/\/sbbaus.bplaced.net\/joomla\/components\/com_pollxt\/images\/blank.png\” class=\“polls_color_2\” height=\“5px\” width=\“0%\” \/> 0 ( 0%)<\/div><div class=\“sectiontableentry1\”>3<\/div><div class=\“sectiontableentry1\”><img src=\“http:\/\/sbbaus.bplaced.net\/joomla\/components\/com_pollxt\/images\/blank.png\” class=\“polls_color_3\” height=\“5px\” width=\“0%\” \/> 0 ( 0%)<\/div><div class=\“sectiontableentry2\”>4<\/div><div class=\“sectiontableentry2\”><img src=\“http:\/\/sbbaus.bplaced.net\/joomla\/components\/com_pollxt\/images\/blank.png\” class=\“polls_color_4\” height=\“5px\” width=\“0%\” \/> 0 ( 0%)<\/div><div class=\“sectiontableentry1\”>5<\/div><div class=\“sectiontableentry1\”><img src=\“http:\/\/sbbaus.bplaced.net\/joomla\/components\/com_pollxt\/images\/blank.png\” class=\“polls_color_5\” height=\“5px\” width=\“0%\” \/> 0 ( 0%)<\/div><div class=\“sectiontableentry2\”>6<\/div><div class=\“sectiontableentry2\”><img src=\“http:\/\/sbbaus.bplaced.net\/joomla\/components\/com_pollxt\/images\/blank.png\” class=\“polls_color_1\” height=\“5px\” width=\“0%\” \/> 0 ( 0%)<\/div><div width=\“100%\” class=\“sectiontableheader\”>Wie oft besucht ihr diese Webseite?<\/div><div class=\“sectiontableentry1\”>1 mal am Tag<\/div><div class=\“sectiontableentry1\”><img src=\“http:\/\/sbbaus.bplaced.net\/joomla\/components\/com_pollxt\/images\/blank.png\” class=\“polls_color_1\” height=\“5px\” width=\“90%\” \/> 1 ( 100%)<\/div><div class=\“sectiontableentry2\”>2-3 mal pro Woche<\/div><div class=\“sectiontableentry2\”><img src=\“http:\/\/sbbaus.bplaced.net\/joomla\/components\/com_pollxt\/images\/blank.png\” class=\“polls_color_2\” height=\“5px\” width=\“0%\” \/> 0 ( 0%)<\/div><div class=\“sectiontableentry1\”>1 mal pro Woche<\/div><div class=\“sectiontableentry1\”><img src=\“http:\/\/sbbaus.bplaced.net\/joomla\/components\/com_pollxt\/images\/blank.png\” class=\“polls_color_3\” height=\“5px\” width=\“0%\” \/> 0 ( 0%)<\/div><div class=\“sectiontableentry2\”>1 mal im Monat<\/div><div class=\“sectiontableentry2\”><img src=\“http:\/\/sbbaus.bplaced.net\/joomla\/components\/com_pollxt\/images\/blank.png\” class=\“polls_color_4\” height=\“5px\” width=\“0%\” \/> 0 ( 0%)<\/div><div class=\“sectiontableentry1\”>Nur sporadisch<\/div><div class=\“sectiontableentry1\”><img src=\“http:\/\/sbbaus.bplaced.net\/joomla\/components\/com_pollxt\/images\/blank.png\” class=\“polls_color_5\” height=\“5px\” width=\“0%\” \/> 0 ( 0%)<\/div><\/div><table style=\“margin-top:10px;\” border=\“0\”>

<td class=‘smalldark’>Number of Voters: <br\/><br\/><\/td><td class=‘smalldark’>1<br\/><br\/><\/td><\/tr><td class=‘smalldark’>First Vote: <br\/><br\/><\/td><td class=‘smalldark’>Dienstag, 25. August 2009<br\/><br\/><\/td><\/tr><td class=‘smalldark’’>Last Vote: <br\/><br\/><\/td><td class=‘smalldark’>Dienstag, 25. August 2009<br\/><br\/><\/td><\/tr><\/table>",“error”:0,“select”:"",“header”:"",“intro”:“
Select Poll:<select name=\“resselpo\” id=\“resselpo\” size=\“1\” class=\“inputbox\” style=\“width:160px\” id=\“resselpo\” onchange=\“document.forms.xt61945.id.value=this.options[selectedIndex].value;if (this.options[selectedIndex].value != ‘’) {xtResults(‘xt61945’);}\”><option value=\”\" >Select Poll:<\/option><option value=\“3\” selected=\“selected\”>Homepagebewertung<\/option><\/select><\/div><div id=\“pollxtTitle\” class=\“componentheading\”>Homepagebewertung<\/b><\/div><div id=\“pollxtImg\”><\/div><div style=\“clear:both\”><\/div>
Hier werden einige Fragen zur Homepage gestellt<\/div>",“outro”:"",“buttons”:"<label for=\“task_button\” ><\/label><button type=\“button\” name=\“task_button\” id=\“task_button\” class=\“button\” value=\“Detail\” onclick=\“xtDetail(‘xt61945’)\” >Detail<\/button><label for=\“task_button\” ><\/label><button type=\“button\” name=\“task_button\” id=\“task_button\” class=\“button\” value=\“Back\” onclick=\“xtInit(‘xt61945’)\” >Back<\/button><div style=\“clear:both\”><\/div>",“name”:“xt61945”}’; res;[/code]
Kannst du da einen Fehler rauslesen?
Danke für die kompetente Hilfe :smiley:!
Gruß
FreezeT

Sieht mir wiedermal nach dem bekannten “UTF-8-Problem” aus. In der pollxtresult.class.php unter /components/com_pollxt/class/ einfach mal nach mb_substr suchen. Dort findest Du wieder ganz am Ende der Zeile ein UTF-8. Wenn du das dann löschst sieht das so aus:

mb_substr($r->data->qoption,0,strpos(wordwrap( $r->data->qoption, $l, “\n” ),"\n"));

Laut Oli wäre es aber fast besser, wenn Du die Argumente anpasst, sodaß es so aussieht:

mb_substr($r->data->qoption,0,strpos(wordwrap( $r->data->qoption, $l, “\n” ),"\n"), instead of ‘UTF-8’);

Sollte diese Lösung mit dem “instead of” nicht funktionieren kannst ja immernoch die obere Lösung nehmen.

Danke, damit hat sich das Problem endlich in Luft aufgelöst :smiley:. Ich danke dir nochmal :smiley:!

Kein Problem… :slight_smile: