Seite 1 von 2

Problem mit "Frontend Category Permissions"

Verfasst: Do 1. Sep 2005, 10:43
von stxinden
Hallo zusammen!

Unter dem Topic http://www.contenido.org/forum/viewtopi ... highlight= wurde zwar bereits was zum Thema geschrieben, jedoch habe ich trotz der haarkleinen Übernahme der Codes aus der technischen Referenz eine Fehlermeldung, die ich leider nicht einordnen kann. Ich weiss nicht wo ich nach einem Fehler suchen soll. Es scheint irgendetwas mit der Session nicht genau zu stimmen, doch was, dass kann ich elider nicht sagen. Ich kann mich nicht mehr im Backend einloggen und auch das Frontend gibt diese Fehlermeldung aus:


Warning: Cannot modify header information - headers already sent by (output started at /absoluter Pfad zu Contenido/httpdocs/contenido/includes/config.plugin.php:10) in /absoluter Pfad zu Contenido/httpdocs/conlib/session.inc on line 481

Warning: Cannot modify header information - headers already sent by (output started at /absoluter Pfad zu Contenido/httpdocs/contenido/includes/config.plugin.php:10) in /absoluter Pfad zu Contenido/httpdocs/conlib/session.inc on line 484

Warning: Cannot modify header information - headers already sent by (output started at /absoluter Pfad zu Contenido/httpdocs/contenido/includes/config.plugin.php:10) in /absoluter Pfad zu Contenido/httpdocs/conlib/session.inc on line 485

Warning: Cannot modify header information - headers already sent by (output started at /absoluter Pfad zu Contenido/httpdocs/contenido/includes/config.plugin.php:10) in /absoluter Pfad zu Contenido/httpdocs/conlib/session.inc on line 486

Warning: Cannot modify header information - headers already sent by (output started at /absoluter Pfad zu Contenido/httpdocs/contenido/includes/config.plugin.php:10) in /absoluter Pfad zu Contenido/httpdocs/conlib/session.inc on line 487

Warning: Cannot modify header information - headers already sent by (output started at /absoluter Pfad zu Contenido/httpdocs/contenido/includes/config.plugin.php:10) in /absoluter Pfad zu Contenido/httpdocs/conlib/session.inc on line 488

Warning: Cannot modify header information - headers already sent by (output started at /absoluter Pfad zu Contenido/httpdocs/contenido/includes/config.plugin.php:10) in /absoluter Pfad zu Contenido/httpdocs/conlib/session.inc on line 489

Vielen Dank und viele Grüße
Stefan

Verfasst: Do 1. Sep 2005, 10:47
von timo
Schau mal, ob du in der config-Datei am Ende irgendwelche Leerzeichen hast.

Habe gleiches Problem

Verfasst: Do 1. Sep 2005, 16:36
von maumi
Hallo zusammen,

habe genau das gleiche Problem.

@timo: Leerzeichen habe ich keine am Ende...

Hat jmd anderes noch Erfahrungen mit dem Plugin?

Grüße

Christian

Verfasst: Do 1. Sep 2005, 16:45
von timo
irgendwas ist in der config.plugin.php zeile 10, worüber eine Ausgabe gestartet wird...

Fehler

Verfasst: Do 1. Sep 2005, 17:32
von maumi
Hallo Timo,

das Problem ist nur, dass die config.plugin.php keine 10 Zeilen hat.


config.plugin.php

<?php
$cfg['plugins']['frontendlogic'][] = "category";
?>

config.local.php

<?php
global $_cecRegistry;
cInclude("plugins", "chains/includes/include.chain.frontend.cat_backendaccess.php");
cInclude("plugins", "chains/includes/include.chain.frontend.cat_access.php");

$_cecRegistry->addChainFunction("Contenido.Frontend.CategoryAccess", "cecFrontendCategoryAccess");
$_cecRegistry->addChainFunction("Contenido.Frontend.CategoryAccess", "cecFrontendCategoryAccess_Backend");
?>

Kannst du da einen Fehler entdecken?

Grüße

Christian

Noch ein Problem

Verfasst: Do 1. Sep 2005, 18:00
von maumi
Hallo,

habe gerade das Plugin wieder vollständig (so glaube ich wenigstens) entfernt. Er zeigt mir trotzdem noch die gleiche Fehlermeldung an. Ist irgendwo noch was gespeichert? (den cache des Browsers habe ich geleert).


Grüße

Christian

Verfasst: Do 1. Sep 2005, 20:08
von timo
was ist mit der Datei config.plugin.php im contenido/includes-Verzeichnis? Dort gehört die eigentlich nicht hin...

aber laut beschreibung

Verfasst: Do 1. Sep 2005, 21:27
von maumi
aber wie hab ich dann die beschreibung zu verstehen?
Installation and configuration
Download the plugin "Frontend Category Permissions" from the Contenido website. Extract the archive to your plugins directory. Open (or create) the file config.plugin.php in the directory contenido/plugins/chains/includes/ and add the necessary includes and chain entries (see below). Afterwards, open the file config.local.php in your contenido/includes directory (create the file if it doesn't exist) and add the following line at the end:
ist damit nicht das verzeichnis gemeint?

Grüße

christian

Verfasst: Do 1. Sep 2005, 22:48
von timo
Die config.local.php muß in contenido/includes sein, NICHT die config.plugin.php - die gehört in das Verzeichnis plugins/chains. In der obigen Fehlermeldung sehe ich aber eine contenido/includes/config.plugin.php

Hat geklappt

Verfasst: Fr 2. Sep 2005, 08:37
von maumi
Hallo Timo,

vielen Dank für Deine Hilfe. Hat jetzt alles geklappt...
Lag wohl wirklich eine Verwechselung der Dateien vor...

Das Festlegen der Benutzerrechte klappt dann wohl jetzt über den Quellcode, wenn ich das richtig verstanden habe.

Habe jetzt allerdings ein neues Problem und zwar in der Kategorieanzeige:
Fatal error: Call to undefined function: setencoding() in /home/httpd/vhosts/bw-art-media.de/subdomains/contest/httpdocs/contenido/includes/include.str_overview.php on line 655

Mit freundlichen Grüßen


Christian

Verfasst: Fr 2. Sep 2005, 09:26
von timo
Bekannter Bug im Snapshot, ist im nächsten behoben.

Welcher Snapshot

Verfasst: Mo 5. Sep 2005, 11:26
von stxinden
Hallo Timo,

vielen dank für die Hilfe!

Meinst Du diesen Snapshot: "contenido-cvs-2005-09-02.tar.bz2" ?

Viele Grüße
Stefan

Verfasst: Mo 5. Sep 2005, 11:32
von timo
Ja, leider funktioniert dieser auch nicht (kann nicht installiert werden). Snapshots sind wie immer ohne Gewähr, siehe die Informationsseite zu den Snapshots. Wenn du dir nicht selbst helfen kannst, solltest du warten bis die nächste Beta draussen ist.

Wann wäre denn mit der nächsten Beta zu rechnen

Verfasst: Mo 5. Sep 2005, 15:10
von stxinden
Hallo Timo,

das Snapshots nicht unbedingt für Produktivumgebungen gedacht sind, war mir vom Prinzip her klar. Wann wäre denn ungefähr mit der nächsten Beta zu rechnen?

Viele Grüße
Stefan

Verfasst: Mo 5. Sep 2005, 15:43
von timo
when it's done