well, now i had an error when i use ditto in a document.
this is the error when i use wayfinder2.5 before ditto.
Fatal error: Cannot redeclare class Wayfinder in /www/htdocs/w009bd14/Kunden/Centiveo/web/assets/snippets/wayfinder25/Wayfinder.class.php on line 10
when ditto stands befor wayfinder in the code, i had this error:
Fatal error: Cannot redeclare class prePHx in /www/htdocs/w009bd14/Kunden/Centiveo/web/assets/snippets/ditto/classes/phx.pre.class.inc.php on line 11
the ditto tpl contains no phx-call. whenn i escape the all wayfinder-calls, ditto is working.
so there must be a problem with wayfinder+phx and ditto...
can anybody help?

Quote from: kongondo at May 13, 2009, 01:07 PM
is WF beta 2.5 phx clashing with ditto’s phx.pre.class..?
Fatal error: Cannot redeclare class prePHx in C:\wamp\www\modxtests\assets\snippets\ditto\classes\phx.pre.class.inc.php on line 11
Hello! As I’m having the same problem and I’ve solved it (or mayber worked around). Here is my soultion:
As we can see, the error is thrown from within Ditto, not Wayfinder. So we have to avoid redeclaring the class in Ditto. This can be done in the snippet definition in the manager [...]
class wfPrePHx {function wfPrePHx($template = '') {
$phx = new wfPrePHx($chunk);
if ($phx && !class_Exists("prePHx")) {
&hereClass assigned to weblink if an internal link - http://modxcms.com/forums/index.php/topic,28461.0.html
[!Wayfinder2.5? &startId=`0` &level=`1` &hereClass=`here` &outerTpl=`2010.OuterTpl` &innerTpl=`2010.InnerTpl` &rowTpl=`2010.RowTpl`!]
if ($phx) {if ($phx && !class_Exists("prePHx")) {
Quote from: kongondo at May 13, 2009, 01:07 PM
is WF beta 2.5 phx clashing with ditto’s phx.pre.class..?
Fatal error: Cannot redeclare class prePHx in C:\wamp\www\modxtests\assets\snippets\ditto\classes\phx.pre.class.inc.php on line 11
Hello! As I’m having the same problem and I’ve solved it (or mayber worked around). Here is my soultion:
As we can see, the error is thrown from within Ditto, not Wayfinder. So we have to avoid redeclaring the class in Ditto. This can be done in the snippet definition in the manager:
change line 181 from
if ($phx == 1) {
to
if ($phx == 1 && !class_Exists("prePHx")) {
That’s it. The reason: Ditto builds an array of file names to be included. The change prevents loading the code for prePHX class declaration.
Martin
$this->addPlaceholders($phArray,'rowLevel',$resource);
//Add document variables to the placeholder array
foreach ($resource as $dvName => $dvVal) {
$phArray['placeholders'][] = "[+".$dvName."+]";
$phArray['values'][] = $dvVal;
}
Quote from: FuryDE at Jun 10, 2009, 04:52 AMChanging Ditto to fix the problem with Wayfinder seems a bit misplaced. Fortunately the same fix works in Wayfinder snippet as as well. On line 29 change
Quote from: kongondo at May 13, 2009, 01:07 PM
is WF beta 2.5 phx clashing with ditto’s phx.pre.class..?
Fatal error: Cannot redeclare class prePHx in C:\wamp\www\modxtests\assets\snippets\ditto\classes\phx.pre.class.inc.php on line 11
Hello! As I’m having the same problem and I’ve solved it (or mayber worked around). Here is my soultion:
As we can see, the error is thrown from within Ditto, not Wayfinder. So we have to avoid redeclaring the class in Ditto. This can be done in the snippet definition in the manager:
change line 181 from
if ($phx == 1) {
to
if ($phx == 1 && !class_Exists("prePHx")) {
That’s it. The reason: Ditto builds an array of file names to be included. The change prevents loading the code for prePHX class declaration.
Martin
toif ($phx) {if ($phx && !class_Exists("prePHx")) {
and the conflict goes away.