Hi,
I followed the instructions on the wiki and keep getting the same error when I try to access the sitemap.
(mysite.com/sitemap.xml) and in the manager by clicking on the document.
error...
XML Parsing Error: undefined entity
Location:
http://localhost/modx/index.php?id=1468&z=manprev
Line Number 2, Column 56: <html><head><title>MODx Content Manager » </title>
and the source code...
<html>
<head>
<title>MODx Content Manager » </title>
<style>TD, BODY { font-size: 11px; font-family:verdana; }</style>
<script type=’text/javascript’>
function copyToClip()
{
holdtext.innerText = sqlHolder.innerText;
Copied = holdtext.createTextRange();
Copied.execCommand(’Copy’);
}
</script>
</head>
<body>
<h3 style=’color:red’>« MODx Parse Error »</h3>
<table border=’0’ cellpadding=’1’ cellspacing=’0’>
<tr><td colspan=’3’>MODx encountered the following error while attempting to parse the requested resource:</td></tr>
<tr><td colspan=’3’><b style=’color:red;’>« PHP Parse Error »</b></td></tr>
<tr><td> </td></tr><tr><td colspan=’3’><b>PHP error debug</b></td></tr>
<tr><td valign=’top’> Error: </td><td colspan=’2’>Invalid argument supplied for foreach()</td><td> </td></tr>
<tr><td valign=’top’> Error type/ Nr.: </td><td colspan=’2’>Warning - 2</b></td><td> </td></tr>
<tr><td> File: </td><td colspan=’2’>C:\mysite\manager\includes\document.parser.class.inc.php(748) : eval()’d code</td><td> </td></tr>
<tr><td> Line: </td><td colspan=’2’>146</td><td> </td></tr>
<tr><td> </td></tr><tr><td colspan=’3’><b>Parser timing</b></td></tr>
<tr><td> MySQL: </td><td><i>0.0217 s</i></td><td>(<i>6 Requests</i>)</td></tr>
<tr><td> PHP: </td><td><i>0.2716 s</i></td><td> </td></tr>
<tr><td> Total: </td><td><i>0.2933 s</i></td><td> </td>
</tr>
</table>
</body>
</html>
I am not running any plug ins, fceditor etc. Most of the forums related to parse errors seems to stem from these but I don’t use any and still I get this error. The other cause from the forum topics seems to be modx trying to read the document as an html file rather than xml, I do have friendly urls/alias turned on with .html as a suffix but if I turn that off I still get the same error. Has anybody else had the same problem? Or does someone get why this is happening and can point me in the right direction, thanks.