Module werden im Quellcode [4.8]!!!!

DerSaunagänger
Beiträge: 8
Registriert: Di 2. Apr 2013, 21:04
Kontaktdaten:

Module werden im Quellcode [4.8]!!!!

Beitrag von DerSaunagänger » Di 2. Apr 2013, 21:10

Hallo,

Ich hab ein Problem mit meinen Modulen in contenido 4.8. Sie funktionieren zwar, aber wenn ich versuche sie zu bearbeiten, fehlt bei manchen der Eingabe bzw Ausgabequellcode.

Die selbe Fragestellung gab es bereits im 4.9erForum, ich habe dieses Problem jedoch bei 4.8.18 ;-)
Könntet ihr mir bitte helfen, weil sowas Tolles wie "Module Synchronisieren" (Lösung im 4.9) gibts da ja leider noch nicht.

MFG DerSaunagänger

xmurrix
Beiträge: 3153
Registriert: Do 21. Okt 2004, 11:08
Wohnort: Augsburg
Kontaktdaten:

Re: Module werden im Quellcode [4.8]!!!!

Beitrag von xmurrix » Di 2. Apr 2013, 22:45

Hallo DerSaunagänger,

willkommen im CONTENIDO Forum.

Kannst du unt etwas mehr Informationen zu deinem Problem geben, die bisherigen Infos sind sehr dürftig, um daraus das genaue Problem zu erkennen und eine Lösung dafür zu bieten.

Antworten zu folgenden Fragen wäre z. B. hilfreich für uns (oder auch als Punkte zum Prüfen für dich):
  • Gibt es Einträge in der errorlog.txt (in contenido/logs/), die auf das Problem hinweisen?
  • Ist es eine Neuinstallation oder wurde eine CONTENIDO-Version auf 4.8.18 aktualisiert?
  • Sind die betroffenen Module eigene Module oder Module des Beispielmandanten?
  • Bei welchen Modulen genau gibt es Probleme?
  • Sind eventuell nur Module betroffen, in deren Code z. B. Umlaute vorkommen?
  • Welche PHP-Version läuft auf dem Server?
Zur Not müsstest du die Stelle, in der der Modulcode ausgegeben wird, debuggen. Die Datei contenido/includes/include.mod_edit_form.php ist für die Ausgabe des Modulcodes zuständig.

Noch ein Hinweis zum Zeichensatz. Vielleicht unterscheidet sich der in PHP Eingestellte Default-Zeichensatz (default_charset) vom Encoding des Modulcodes und daher kommt es zu Problemen beim Aufbereiten des Modulcodes für die Ausgabe...

Gruß
xmurrix
CONTENIDO Downloads: CONTENIDO 4.10.1
CONTENIDO Links: Dokumentationsportal, FAQ, API-Dokumentation
CONTENIDO @ Github: CONTENIDO 4.10 - Mit einem Entwicklungszweig (develop-branch), das viele Verbesserungen/Optimierungen erhalten hat und auf Stabilität und Kompatibilität mit PHP 8.0 bis 8.2 getrimmt wurde.

DerSaunagänger
Beiträge: 8
Registriert: Di 2. Apr 2013, 21:04
Kontaktdaten:

Re: Module werden im Quellcode [4.8]!!!!

Beitrag von DerSaunagänger » Mi 3. Apr 2013, 12:08

Erstmal danke für die schnelle Antwort und sorry für die wenigen Infos.
Wenn ich so einen Beitrag gelesen hätte ich ihn wahrscheinlich gar nicht erst beantwortet :D

Also es sind alle selbstgeschriebenen Module und teilweise importierte betroffen. (z.B. mpNivoSlider funktioniert und wird angezeigt)
Umlaute hatte ich eigtl schon überprüft, deshalb denke ich nicht, dass diese das Problem sind.
Es ist eine Neuinstallation.

mbertus.de/beta_neu/contenido/classes/class.frontend.groups.php on line 111
[03-Apr-2013 13:06:43 Europe/Berlin] PHP Strict Standards: Declaration of FrontendGroupMemberCollection::create() should be compatible with ItemCollection::create() in /home/minisdbo/www.ministranten-lambertus.de/beta_neu/ ... groups.php on line 228
[03-Apr-2013 13:06:43 Europe/Berlin] PHP Strict Standards: Declaration of cApiUserCollection::create() should be compatible with ItemCollection::create() in /home/minisdbo/www.ministranten-lambertus.de/beta_neu/ ... s.user.php on line 72
[03-Apr-2013 13:06:43 Europe/Berlin] PHP Strict Standards: Declaration of WorkflowAllocations::create() should be compatible with ItemCollection::create() in /home/minisdbo/www.ministranten-lambertus.de/beta_neu/ ... cation.php on line 148
[03-Apr-2013 13:06:43 Europe/Berlin] PHP Strict Standards: Declaration of WorkflowAllocation::setField() should be compatible with Item::setField($field, $value, $safe = true) in /home/minisdbo/www.ministranten-lambertus.de/beta_neu/ ... cation.php on line 237
[03-Apr-2013 13:06:43 Europe/Berlin] PHP Strict Standards: Declaration of WorkflowArtAllocations::create() should be compatible with ItemCollection::create() in /home/minisdbo/www.ministranten-lambertus.de/beta_neu/ ... cation.php on line 93
[03-Apr-2013 13:06:43 Europe/Berlin] PHP Strict Standards: Declaration of WorkflowItems::create() should be compatible with ItemCollection::create() in /home/minisdbo/www.ministranten-lambertus.de/beta_neu/ ... witems.php on line 198
[03-Apr-2013 13:06:43 Europe/Berlin] PHP Strict Standards: Declaration of WorkflowItem::setField() should be compatible with Item::setField($field, $value, $safe = true) in /home/minisdbo/www.ministranten-lambertus.de/beta_neu/ ... witems.php on line 321
[03-Apr-2013 13:06:43 Europe/Berlin] PHP Strict Standards: Declaration of WorkflowUserSequences::create() should be compatible with ItemCollection::create() in /home/minisdbo/www.ministranten-lambertus.de/beta_neu/ ... quence.php on line 169
[03-Apr-2013 13:06:43 Europe/Berlin] PHP Strict Standards: Declaration of WorkflowUserSequence::setField() should be compatible with Item::setField($field, $value, $safe = true) in /home/minisdbo/www.ministranten-lambertus.de/beta_neu/ ... quence.php on line 274
[03-Apr-2013 13:06:43 Europe/Berlin] PHP Strict Standards: Declaration of cApiClientLanguage::deleteProperty() should be compatible with Item::deleteProperty($type, $name) in /home/minisdbo/www.ministranten-lambertus.de/beta_neu/ ... tslang.php on line 185
[03-Apr-2013 13:06:44 Europe/Berlin] PHP Strict Standards: Declaration of PropertyCollection::create() should be compatible with ItemCollection::create() in /home/minisdbo/www.ministranten-lambertus.de/beta_neu/ ... erties.php on line 404
[03-Apr-2013 13:06:44 Europe/Berlin] PHP Strict Standards: Declaration of PropertyItem::setField() should be compatible with Item::setField($field, $value, $safe = true) in /home/minisdbo/www.ministranten-lambertus.de/beta_neu/ ... erties.php on line 452
[03-Apr-2013 13:06:44 Europe/Berlin] PHP Strict Standards: Declaration of cApiClient::deleteProperty() should be compatible with Item::deleteProperty($type, $name) in /home/minisdbo/www.ministranten-lambertus.de/beta_neu/ ... client.php on line 303
[03-Apr-2013 13:06:44 Europe/Berlin] PHP Strict Standards: Declaration of FrontendPermissionCollection::create() should be compatible with ItemCollection::create() in /home/minisdbo/www.ministranten-lambertus.de/beta_neu/ ... ssions.php on line 165
[03-Apr-2013 13:06:44 Europe/Berlin] PHP Strict Standards: Declaration of FrontendUserCollection::create() should be compatible with ItemCollection::create() in /home/minisdbo/www.ministranten-lambertus.de/beta_neu/ ... .users.php on line 150
[03-Apr-2013 13:06:44 Europe/Berlin] PHP Strict Standards: Declaration of FrontendGroupCollection::create() should be compatible with ItemCollection::create() in /home/minisdbo/www.ministranten-lambertus.de/beta_neu/ ... groups.php on line 111
[03-Apr-2013 13:06:44 Europe/Berlin] PHP Strict Standards: Declaration of FrontendGroupMemberCollection::create() should be compatible with ItemCollection::create() in /home/minisdbo/www.ministranten-lambertus.de/beta_neu/ ... groups.php on line 228
[03-Apr-2013 13:06:44 Europe/Berlin] PHP Strict Standards: Declaration of cApiUserCollection::create() should be compatible with ItemCollection::create() in /home/minisdbo/www.ministranten-lambertus.de/beta_neu/ ... s.user.php on line 72
[03-Apr-2013 13:06:44 Europe/Berlin] PHP Strict Standards: Declaration of WorkflowAllocations::create() should be compatible with ItemCollection::create() in /home/minisdbo/www.ministranten-lambertus.de/beta_neu/ ... cation.php on line 148
[03-Apr-2013 13:06:44 Europe/Berlin] PHP Strict Standards: Declaration of WorkflowAllocation::setField() should be compatible with Item::setField($field, $value, $safe = true) in /home/minisdbo/www.ministranten-lambertus.de/beta_neu/ ... cation.php on line 237
[03-Apr-2013 13:06:44 Europe/Berlin] PHP Strict Standards: Declaration of WorkflowArtAllocations::create() should be compatible with ItemCollection::create() in /home/minisdbo/www.ministranten-lambertus.de/beta_neu/ ... cation.php on line 93
[03-Apr-2013 13:06:44 Europe/Berlin] PHP Strict Standards: Declaration of WorkflowItems::create() should be compatible with ItemCollection::create() in /home/minisdbo/www.ministranten-lambertus.de/beta_neu/ ... witems.php on line 198
[03-Apr-2013 13:06:44 Europe/Berlin] PHP Strict Standards: Declaration of WorkflowItem::setField() should be compatible with Item::setField($field, $value, $safe = true) in /home/minisdbo/www.ministranten-lambertus.de/beta_neu/ ... witems.php on line 321
[03-Apr-2013 13:06:44 Europe/Berlin] PHP Strict Standards: Declaration of WorkflowUserSequences::create() should be compatible with ItemCollection::create() in /home/minisdbo/www.ministranten-lambertus.de/beta_neu/ ... quence.php on line 169
[03-Apr-2013 13:06:44 Europe/Berlin] PHP Strict Standards: Declaration of WorkflowUserSequence::setField() should be compatible with Item::setField($field, $value, $safe = true) in /home/minisdbo/www.ministranten-lambertus.de/beta_neu/ ... quence.php on line 274
[03-Apr-2013 13:06:44 Europe/Berlin] PHP Strict Standards: Declaration of cApiClientLanguage::deleteProperty() should be compatible with Item::deleteProperty($type, $name) in /home/minisdbo/www.ministranten-lambertus.de/beta_neu/ ... tslang.php on line 185
[03-Apr-2013 13:06:46 Europe/Berlin] PHP Strict Standards: Declaration of PropertyCollection::create() should be compatible with ItemCollection::create() in /home/minisdbo/www.ministranten-lambertus.de/beta_neu/ ... erties.php on line 404
[03-Apr-2013 13:06:46 Europe/Berlin] PHP Strict Standards: Declaration of PropertyItem::setField() should be compatible with Item::setField($field, $value, $safe = true) in /home/minisdbo/www.ministranten-lambertus.de/beta_neu/ ... erties.php on line 452
[03-Apr-2013 13:06:46 Europe/Berlin] PHP Strict Standards: Declaration of cApiClient::deleteProperty() should be compatible with Item::deleteProperty($type, $name) in /home/minisdbo/www.ministranten-lambertus.de/beta_neu/ ... client.php on line 303
[03-Apr-2013 13:06:46 Europe/Berlin] PHP Strict Standards: Declaration of FrontendPermissionCollection::create() should be compatible with ItemCollection::create() in /home/minisdbo/www.ministranten-lambertus.de/beta_neu/ ... ssions.php on line 165
[03-Apr-2013 13:06:46 Europe/Berlin] PHP Strict Standards: Declaration of FrontendUserCollection::create() should be compatible with ItemCollection::create() in /home/minisdbo/www.ministranten-lambertus.de/beta_neu/ ... .users.php on line 150
[03-Apr-2013 13:06:46 Europe/Berlin] PHP Strict Standards: Declaration of FrontendGroupCollection::create() should be compatible with ItemCollection::create() in /home/minisdbo/www.ministranten-lambertus.de/beta_neu/ ... groups.php on line 111
[03-Apr-2013 13:06:46 Europe/Berlin] PHP Strict Standards: Declaration of FrontendGroupMemberCollection::create() should be compatible with ItemCollection::create() in /home/minisdbo/www.ministranten-lambertus.de/beta_neu/ ... groups.php on line 228
[03-Apr-2013 13:06:46 Europe/Berlin] PHP Strict Standards: Declaration of cApiUserCollection::create() should be compatible with ItemCollection::create() in /home/minisdbo/www.ministranten-lambertus.de/beta_neu/ ... s.user.php on line 72
[03-Apr-2013 13:06:46 Europe/Berlin] PHP Strict Standards: Declaration of WorkflowAllocations::create() should be compatible with ItemCollection::create() in /home/minisdbo/www.ministranten-lambertus.de/beta_neu/ ... cation.php on line 148
[03-Apr-2013 13:06:46 Europe/Berlin] PHP Strict Standards: Declaration of WorkflowAllocation::setField() should be compatible with Item::setField($field, $value, $safe = true) in /home/minisdbo/www.ministranten-lambertus.de/beta_neu/ ... cation.php on line 237
[03-Apr-2013 13:06:46 Europe/Berlin] PHP Strict Standards: Declaration of WorkflowArtAllocations::create() should be compatible with ItemCollection::create() in /home/minisdbo/www.ministranten-lambertus.de/beta_neu/ ... cation.php on line 93
[03-Apr-2013 13:06:46 Europe/Berlin] PHP Strict Standards: Declaration of WorkflowItems::create() should be compatible with ItemCollection::create() in /home/minisdbo/www.ministranten-lambertus.de/beta_neu/ ... witems.php on line 198
[03-Apr-2013 13:06:46 Europe/Berlin] PHP Strict Standards: Declaration of WorkflowItem::setField() should be compatible with Item::setField($field, $value, $safe = true) in /home/minisdbo/www.ministranten-lambertus.de/beta_neu/ ... witems.php on line 321
[03-Apr-2013 13:06:46 Europe/Berlin] PHP Strict Standards: Declaration of WorkflowUserSequences::create() should be compatible with ItemCollection::create() in /home/minisdbo/www.ministranten-lambertus.de/beta_neu/ ... quence.php on line 169
[03-Apr-2013 13:06:46 Europe/Berlin] PHP Strict Standards: Declaration of WorkflowUserSequence::setField() should be compatible with Item::setField($field, $value, $safe = true) in /home/minisdbo/www.ministranten-lambertus.de/beta_neu/ ... quence.php on line 274
[03-Apr-2013 13:06:46 Europe/Berlin] PHP Strict Standards: Declaration of cApiClientLanguage::deleteProperty() should be compatible with Item::deleteProperty($type, $name) in /home/minisdbo/www.ministranten-lambertus.de/beta_neu/ ... tslang.php on line 185
[03-Apr-2013 13:06:47 Europe/Berlin] PHP Strict Standards: Declaration of PropertyCollection::create() should be compatible with ItemCollection::create() in /home/minisdbo/www.ministranten-lambertus.de/beta_neu/ ... erties.php on line 404
[03-Apr-2013 13:06:47 Europe/Berlin] PHP Strict Standards: Declaration of PropertyItem::setField() should be compatible with Item::setField($field, $value, $safe = true) in /home/minisdbo/www.ministranten-lambertus.de/beta_neu/ ... erties.php on line 452
[03-Apr-2013 13:06:47 Europe/Berlin] PHP Strict Standards: Declaration of cApiClient::deleteProperty() should be compatible with Item::deleteProperty($type, $name) in /home/minisdbo/www.ministranten-lambertus.de/beta_neu/ ... client.php on line 303
[03-Apr-2013 13:06:47 Europe/Berlin] PHP Strict Standards: Declaration of FrontendPermissionCollection::create() should be compatible with ItemCollection::create() in /home/minisdbo/www.ministranten-lambertus.de/beta_neu/ ... ssions.php on line 165
[03-Apr-2013 13:06:47 Europe/Berlin] PHP Strict Standards: Declaration of FrontendUserCollection::create() should be compatible with ItemCollection::create() in /home/minisdbo/www.ministranten-lambertus.de/beta_neu/ ... .users.php on line 150
[03-Apr-2013 13:06:47 Europe/Berlin] PHP Strict Standards: Declaration of FrontendGroupCollection::create() should be compatible with ItemCollection::create() in /home/minisdbo/www.ministranten-lambertus.de/beta_neu/ ... groups.php on line 111
[03-Apr-2013 13:06:47 Europe/Berlin] PHP Strict Standards: Declaration of FrontendGroupMemberCollection::create() should be compatible with ItemCollection::create() in /home/minisdbo/www.ministranten-lambertus.de/beta_neu/ ... groups.php on line 228
[03-Apr-2013 13:06:47 Europe/Berlin] PHP Strict Standards: Declaration of cApiUserCollection::create() should be compatible with ItemCollection::create() in /home/minisdbo/www.ministranten-lambertus.de/beta_neu/ ... s.user.php on line 72
[03-Apr-2013 13:06:47 Europe/Berlin] PHP Strict Standards: Declaration of WorkflowAllocations::create() should be compatible with ItemCollection::create() in /home/minisdbo/www.ministranten-lambertus.de/beta_neu/ ... cation.php on line 148
[03-Apr-2013 13:06:47 Europe/Berlin] PHP Strict Standards: Declaration of WorkflowAllocation::setField() should be compatible with Item::setField($field, $value, $safe = true) in /home/minisdbo/www.ministranten-lambertus.de/beta_neu/ ... cation.php on line 237
[03-Apr-2013 13:06:47 Europe/Berlin] PHP Strict Standards: Declaration of WorkflowArtAllocations::create() should be compatible with ItemCollection::create() in /home/minisdbo/www.ministranten-lambertus.de/beta_neu/ ... cation.php on line 93
[03-Apr-2013 13:06:47 Europe/Berlin] PHP Strict Standards: Declaration of WorkflowItems::create() should be compatible with ItemCollection::create() in /home/minisdbo/www.ministranten-lambertus.de/beta_neu/ ... witems.php on line 198
[03-Apr-2013 13:06:47 Europe/Berlin] PHP Strict Standards: Declaration of WorkflowItem::setField() should be compatible with Item::setField($field, $value, $safe = true) in /home/minisdbo/www.ministranten-lambertus.de/beta_neu/ ... witems.php on line 321
[03-Apr-2013 13:06:47 Europe/Berlin] PHP Strict Standards: Declaration of WorkflowUserSequences::create() should be compatible with ItemCollection::create() in /home/minisdbo/www.ministranten-lambertus.de/beta_neu/ ... quence.php on line 169
[03-Apr-2013 13:06:47 Europe/Berlin] PHP Strict Standards: Declaration of WorkflowUserSequence::setField() should be compatible with Item::setField($field, $value, $safe = true) in /home/minisdbo/www.ministranten-lambertus.de/beta_neu/ ... quence.php on line 274
Hoffe der Fehlercode vom heutigem Tag hilft weiter.
Ich blick da leider nicht so durch, aber ich denke ihr seid da besser drin ;-)

MFG DerSaunagänger

xmurrix
Beiträge: 3153
Registriert: Do 21. Okt 2004, 11:08
Wohnort: Augsburg
Kontaktdaten:

Re: Module werden im Quellcode [4.8]!!!!

Beitrag von xmurrix » Mi 3. Apr 2013, 12:41

Hallo DerSaunagänger,

CONTENIDO 4.8 wird zwar mit der strikten PHP-Einstellung in error_reporting funktionieren, aber dafür landen sehr viele Einträge in der errorlog.txt. Der Auszug aus deiner errorlog.txt, was du hier gepostet hast enthält nur Einträge über darüber, dass der Code nicht den strikten PHP Standards entspricht. Das alleine ist aber nicht die Ursache für die fehlenden Modulcodes im Backend.

Ändere am Besten deine PHP-Einstellung. In der contenido/includes/config.misc.php einfach die entsprechende Zeile auf

Code: Alles auswählen

error_reporting (E_ALL & ~(E_STRICT | E_NOTICE));
umstellen. Wenn das der Provider nicht zulässt oder deine PHP Version >= 5.4 ist, kann es sein, dass du da andere Angabe brauchst.

Gruß
xmurrix
CONTENIDO Downloads: CONTENIDO 4.10.1
CONTENIDO Links: Dokumentationsportal, FAQ, API-Dokumentation
CONTENIDO @ Github: CONTENIDO 4.10 - Mit einem Entwicklungszweig (develop-branch), das viele Verbesserungen/Optimierungen erhalten hat und auf Stabilität und Kompatibilität mit PHP 8.0 bis 8.2 getrimmt wurde.

DerSaunagänger
Beiträge: 8
Registriert: Di 2. Apr 2013, 21:04
Kontaktdaten:

Re: Module werden im Quellcode [4.8]!!!!

Beitrag von DerSaunagänger » Mi 3. Apr 2013, 13:48

Die Änderung ist vollzogen. Dank dir für den Hinweis.

Hat jemand noch Vorschläge wegen der Mandanten?
Sonst mach ich es radikal und installiere Contenido nochmal neu und migriere den Mandanten :P :D

xmurrix
Beiträge: 3153
Registriert: Do 21. Okt 2004, 11:08
Wohnort: Augsburg
Kontaktdaten:

Re: Module werden im Quellcode [4.8]!!!!

Beitrag von xmurrix » Mi 3. Apr 2013, 14:07

DerSaunagänger hat geschrieben:...Hat jemand noch Vorschläge wegen der Mandanten?...
Was für Probleme gibt es denn genau bei den Mandanten?
CONTENIDO Downloads: CONTENIDO 4.10.1
CONTENIDO Links: Dokumentationsportal, FAQ, API-Dokumentation
CONTENIDO @ Github: CONTENIDO 4.10 - Mit einem Entwicklungszweig (develop-branch), das viele Verbesserungen/Optimierungen erhalten hat und auf Stabilität und Kompatibilität mit PHP 8.0 bis 8.2 getrimmt wurde.

DerSaunagänger
Beiträge: 8
Registriert: Di 2. Apr 2013, 21:04
Kontaktdaten:

Re: Module werden im Quellcode [4.8]!!!!

Beitrag von DerSaunagänger » Mi 3. Apr 2013, 14:10

Ich hab ein Problem mit meinen Modulen in contenido 4.8. Sie funktionieren zwar, aber wenn ich versuche sie zu bearbeiten, fehlt bei manchen der Eingabe bzw Ausgabequellcode.

Die selbe Fragestellung gab es bereits im 4.9erForum, ich habe dieses Problem jedoch bei 4.8.18 ;-)
Könntet ihr mir bitte helfen, weil sowas Tolles wie "Module Synchronisieren" (Lösung im 4.9) gibts da ja leider noch nicht.
Die eigtl Frage des Topics :)

weitere Infos:
Also es sind alle selbstgeschriebenen Module und teilweise importierte betroffen. (z.B. mpNivoSlider funktioniert und wird angezeigt)
Umlaute hatte ich eigtl schon überprüft, deshalb denke ich nicht, dass diese das Problem sind.
Es ist eine Neuinstallation.

xmurrix
Beiträge: 3153
Registriert: Do 21. Okt 2004, 11:08
Wohnort: Augsburg
Kontaktdaten:

Re: Module werden im Quellcode [4.8]!!!!

Beitrag von xmurrix » Mi 3. Apr 2013, 14:29

Was passiert, wenn du in der Datei contenido/includes/include.mod_edit_form.php, wie zuvor angemerkt etwas debugging machst, also z. B. die Zeilen 130 und 131

Code: Alles auswählen

    	$sInputData		= conHtmlSpecialChars($module->get("input"));
    	$sOutputData	= conHtmlSpecialChars($module->get("output"));
gegen folgendes ersetzt

Code: Alles auswählen

echo "<pre>input org: " . print_r($module->get("input"), true) . "</pre>";
    	$sInputData		= conHtmlSpecialChars($module->get("input"));
echo "<pre>input converted: " . print_r($sInputData, true) . "</pre>";
echo "<pre>output org: " . print_r($module->get("output"), true) . "</pre>";
    	$sOutputData	= conHtmlSpecialChars($module->get("output"));
echo "<pre>output converted: " . print_r($sOutputData, true) . "</pre>";
Da wird jeweils die Modul-Eingabe und die Modul-Ausgabe im Original ausgegeben und dann die für die Ausgabe vorbereitere Form.

Wie sehen die Ausgaben aus, gibt es da besondere Unterschiede zu anderen Modulcodes?

Du kannst auch gerne den Modulcode, in dem du die Probleme hast hier posten oder auch gerne per PM an mich schicken. Am Besten ein Export, wobei ich Bendenken habe, dass der Export gehen wird, oder die Werte direkt aus der Tabelle "con_modules".

Gruß
xmurrix
CONTENIDO Downloads: CONTENIDO 4.10.1
CONTENIDO Links: Dokumentationsportal, FAQ, API-Dokumentation
CONTENIDO @ Github: CONTENIDO 4.10 - Mit einem Entwicklungszweig (develop-branch), das viele Verbesserungen/Optimierungen erhalten hat und auf Stabilität und Kompatibilität mit PHP 8.0 bis 8.2 getrimmt wurde.

DerSaunagänger
Beiträge: 8
Registriert: Di 2. Apr 2013, 21:04
Kontaktdaten:

Re: Module werden im Quellcode [4.8]!!!!

Beitrag von DerSaunagänger » Mi 3. Apr 2013, 19:55

Hat leider nicht geklappt.

Kann es sein, dass eine DB-Abfrage schief gelaufen ist oder contenido die rechte dazu fehlen? :)

xmurrix
Beiträge: 3153
Registriert: Do 21. Okt 2004, 11:08
Wohnort: Augsburg
Kontaktdaten:

Re: Module werden im Quellcode [4.8]!!!!

Beitrag von xmurrix » Mi 3. Apr 2013, 21:55

DerSaunagänger hat geschrieben:Hat leider nicht geklappt.

Kann es sein, dass eine DB-Abfrage schief gelaufen ist oder contenido die rechte dazu fehlen? :)
Wie per PM angegeben, verwendest du mysql_* Funktionen im Modul und nicht die DB_Contenido Klasse. Sollte aber CONTENIDO eine Datenbankverbindung über mysqli_connect() aufbauen, kann diese Datenbank Verbindungskennung vermutlich nicht für mysql_* Funktionen verwendet werden.

Prüfe nach, was bei dir als Datenbank Erweiterung eingestellt ist, du findest in der Zeile 109 in der Datei "contenido/includes/config.php" folgendes:

Code: Alles auswählen

$cfg["database_extension"] = 'mysql';
Ist der Wert 'mysql', dann sollte es kein Problem sein, mysql_* Funktionen zu verwenden. Wenn da aber 'mysqli' steht, verwendet CONTENIDO eine andere MySQL-Erweiterung als dein Modul. Ist das so, dann solltest du am Besten den Code im Modul anpassen.

Am Besten wäre es, wenn du DB_Contenido verwendest. Das ist in CONTENIDO die Klasse, die die Datenbankverbindung zur Verfügung stellt.

Wenn das nicht geht, muust du herausfinden, was da nicht stimmt. Vielleicht hat der DB Benutzer keine Rechte auf deine Benutzerdefinierten Tabellen, die im Modul verwendet werden. Oder die Tabellen gibt es nicht.

Gruß
xmurrix
CONTENIDO Downloads: CONTENIDO 4.10.1
CONTENIDO Links: Dokumentationsportal, FAQ, API-Dokumentation
CONTENIDO @ Github: CONTENIDO 4.10 - Mit einem Entwicklungszweig (develop-branch), das viele Verbesserungen/Optimierungen erhalten hat und auf Stabilität und Kompatibilität mit PHP 8.0 bis 8.2 getrimmt wurde.

DerSaunagänger
Beiträge: 8
Registriert: Di 2. Apr 2013, 21:04
Kontaktdaten:

Re: Module werden im Quellcode [4.8]!!!!

Beitrag von DerSaunagänger » Do 4. Apr 2013, 19:30

Wie gesagt das Modul funktioniert ja.

Es werden manche bloß im Backend nciht angezeigt ;)
Und da sind dann auch unveränderte Beispielmodule dabei.
Dateianhänge
problem_minis.PNG
So siehts aus... kann man natürlich kaum mit arbeiten :/
(51.99 KiB) Noch nie heruntergeladen

xmurrix
Beiträge: 3153
Registriert: Do 21. Okt 2004, 11:08
Wohnort: Augsburg
Kontaktdaten:

Re: Module werden im Quellcode [4.8]!!!!

Beitrag von xmurrix » Do 4. Apr 2013, 19:40

Der Tip zum Debuggen ( http://forum.contenido.org/viewtopic.ph ... 87#p157716 ) hat nichts gebracht?

Hier nochmal der Code mit Kommentaren:

Code: Alles auswählen


// input: Wird hier was ausgegeben?
echo "<pre>input org: " . print_r($module->get("input"), true) . "</pre>";
       $sInputData      = conHtmlSpecialChars($module->get("input"));

// input: Und wie sieht es hier aus?
echo "<pre>input converted: " . print_r($sInputData, true) . "</pre>";


// output: Wird hier was ausgegeben?
echo "<pre>output org: " . print_r($module->get("output"), true) . "</pre>";
       $sOutputData   = conHtmlSpecialChars($module->get("output"));

// output: Und wie sieht es hier aus?
echo "<pre>output converted: " . print_r($sOutputData, true) . "</pre>";
CONTENIDO Downloads: CONTENIDO 4.10.1
CONTENIDO Links: Dokumentationsportal, FAQ, API-Dokumentation
CONTENIDO @ Github: CONTENIDO 4.10 - Mit einem Entwicklungszweig (develop-branch), das viele Verbesserungen/Optimierungen erhalten hat und auf Stabilität und Kompatibilität mit PHP 8.0 bis 8.2 getrimmt wurde.

DerSaunagänger
Beiträge: 8
Registriert: Di 2. Apr 2013, 21:04
Kontaktdaten:

Re: Module werden im Quellcode [4.8]!!!!

Beitrag von DerSaunagänger » Do 4. Apr 2013, 19:52

Ne steh´t dann nur:
input org:

Dateianhänge
Unbenannt.PNG
(37.64 KiB) Noch nie heruntergeladen

DerSaunagänger
Beiträge: 8
Registriert: Di 2. Apr 2013, 21:04
Kontaktdaten:

Re: Module werden im Quellcode [4.8]!!!!

Beitrag von DerSaunagänger » Do 4. Apr 2013, 21:31

Habs jetzt selber hingekriegt.
Wie du schon versucht hast, liegt das Problem im include.mod_edit_form.php.

Anscheinend gab es Probleme mit dem "htmlspecialchars(...)".

Mit zwei if-Anweisungen, kann man dieses Problem dann auch lösen:
$sInputData = htmlspecialchars($module->get("input"));
if ($sInputData=="") {$sInputData=$module->get("input");}

$sOutputData = htmlspecialchars($module->get("output"));
if ($sOutputData=="") {$sOutputData=$module->get("output");}
Ob es Probleme geben wird, wird sich zeigen.
Wenn ja schreib ich sie evtl mit Lösung hierdrunter :)

MFG und danke nochmal dir xmurrix :D

xmurrix
Beiträge: 3153
Registriert: Do 21. Okt 2004, 11:08
Wohnort: Augsburg
Kontaktdaten:

Re: Module werden im Quellcode [4.8]!!!!

Beitrag von xmurrix » Do 4. Apr 2013, 21:31

Und was gibt es aus, wenn du folgendes probiest:

Code: Alles auswählen

echo "<pre>module: " . print_r($module, true) . "</pre>";
CONTENIDO Downloads: CONTENIDO 4.10.1
CONTENIDO Links: Dokumentationsportal, FAQ, API-Dokumentation
CONTENIDO @ Github: CONTENIDO 4.10 - Mit einem Entwicklungszweig (develop-branch), das viele Verbesserungen/Optimierungen erhalten hat und auf Stabilität und Kompatibilität mit PHP 8.0 bis 8.2 getrimmt wurde.

Gesperrt