hi,
I had the weblink problem too. After downloading the complete modx directory for investigation from my webserver I found an strange statement in
file: document.parser.class.inc.php
on
line: 1071
I found the following statement.
// check whether it's a reference if($this->documentObject['type']=="reference") { // if it's an internal docid tag, process it
if(strpos($this->documentObject['content'],'[~') !== false) { // generate a url $this->documentObject['content'] = $this->rewriteUrls($this->documentObject['content']); } $this->sendRedirect($this->documentObject['content']); }
For me this looks very >>mh<<. Are there really so many comments in one line? I decided to downloaded the modx tar.gz file and looked there if this line is really ok. And ... tata. The line in the original tar.gz file was different. It looks like this:
// check whether it's a reference
if($this->documentObject['type']=="reference") {
// if it's an internal docid tag, process it
if(strpos($this->documentObject['content'],'[~') !== false) {
// generate a url
$this->documentObject['content'] = $this->rewriteUrls($this->documentObject['content']);
}
$this->sendRedirect($this->documentObject['content']);
}
After changing the lines in the dowloaded file from the my webserver. I uploaded it again and enjoyed the working weblinks.
I guess that there where some upload problem from an windows machine into an linux server. Perhaps there where some problems with the notorious ’\n’ ’\r\n’ stuff. But I really do not know if this was relaly the problem.
!!! THIS CHANGES COMES WITHOUT ANY WARANTIES. I AM NOT SHURE IF THERE ARE NO SIDE EFFECTS. USE THIS ON YOUR OWN RISK !!!
But, perhaps someone of you have the same weblink ploblem. Perhaps it is fixable with this.
It would be nice if an developer could look check the above code, because it seems not an exotic problem.