Hi,
Firstly thanks for all your previous help.
I am having a rather odd problem with magic quotes arising from the cache files. On our test server when attempting to view any page it comes back with the error
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /var/www/localhost/htdocs/midgard/cache/104-15.php on line 38 Parse error: parse error, unexpected $ in /var/www/localhost/htdocs/midgard/cache/104-15.php on line 44
The file contents contain:
<? /* Uncomment the following line if you want to get dates */ /* localized (replace second parameter with correct locale)*/ /* setlocale("LC_ALL","ru_RU.KOI8-R"); */
if(!function_exists("mgd_get_midgard")) { dl("midgard.so"); } if ($midgard = mgd_get_midgard()) { $argc = $midgard->argc; $argv = $midgard->argv; } function mgd_execute_udf($variable, $selector) { $function = mgd_register_filter($selector); $function($variable); } function mgd_register_filter($selector, $function=NULL) { static $udf = array();
if (is_null($function)) { return $udf[$selector]; }
if ($function == '') { unset($udf[$selector]); } else { $udf[$selector] = $function; }
return 1; } ?> <? if ($midgard && $midgard->style == 0) {
?><div class=\"header\">Welcome to Emberz</div> <---offending line <? $article = mgd_get_article_by_name($site_root_id,\'Introduction\'); ?> <---offending line <div class=\"bodytext\">&(article.content:h);</div><? <---offending line } else { ?><[ROOT]><? }?>
Maybe there are extra backslashesin the DB records?
Did these pages work with another configuration of Midgard? How were they created?
David
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
