when in YAMS readme I read:
6. PHx Setup
------------
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";
}
Also, please remember that the Plugin Execution Order must be edited to place
YAMS in first place - that is before PHx - on all associated events.
What does it mean exactly? What shall I do? Where?
I found a PHx plug in, but not a PHx snippet.
I'm having a
Fatal error: Cannot redeclare class PHxParser in […]/public_html/assets/plugins/phx/phx.parser.class.inc.php on line 12
in pages that use a template with some self-made multi-language TVs (a paint picture, size, thecnique (multilanguage) and other relevant data), there is JOT (minimal call, ate the moment), but not PHx to my Knowledge.
More precisely, somethimes I get the page coming from the menu, then I get the error switching language.
Thanks for any help
[ed. note: andrearicci last edited this post 14 years, 11 months ago.]