-
- 133 Posts
I have the exact same problem. Evo 1.0.1 PHx 2.1.3 YAMS rc8 alpha (unreleased version of PMS)
It has something to do with calling or including 2x the same I think.
When u uncheck OnParseDocument this error isnt there but i think it won’t work then.
Let me know if u know more!
Best CMS eva!
-
- 805 Posts
Hi there. Have you seen and done this from the readme.txt for YAMS?
If using the PHx snippet then please note the following. For some reason, a file
specified using include_once gets reincluded and this causes the PHxParser class
to be redefined, which generates a PHP parse error. This can avoided by modifying
the PHx snippet to wrap the include in some code that will only include the file
if the class has not yet been defined:
if ( ! class_exists( ’PHxParser’ ) )
{
include_once $modx->config[’rb_base_dir’] . "plugins/phx/phx.parser.class.inc.php";
}
Cheers.
-
- 133 Posts
Indeed, no more error message for me!
Thanx.
Best CMS eva!
-
- 805 Posts
@bs.
In the next version of PHx would it be possible to
1. wrap the PHxParser class in an
if ( ! class_exists( 'PHxParser' ) ) { ... }
2. change the include_once to and include in the PHx snippet call.
I believe that this would avoid the problem mentioned above when using YAMS, but would not affect PHx.
Thank you.