Creating external link gives null error

Permalink 1 user found helpful
After creating link to external site content and HTML editors goes crazy. When I clicked Update I getting error window where there are only title bar with unhelpful text Error, <hr> and Close button. I thought that is fault of Layout that I using, but outside it the issue still exists.

HTML code for that link is:
<p><span style="font-size: x-large;"><a href="http://www.stencyl.com/" target="_blank" title="">Stencyl.com</a></span></p>


By the way, I recommend to visit that site and join beta program. Back to topic - I checked all possibilities - even removed everything except <a href ...> </a> tags, so it's definitely problem of external link. Internal (page) links work just fine, but problem is when I try to add external one.

Any help please?
Concrete5 version is 5.4.0.5

 
darkhog replied on at Permalink Reply
Just tried with another text as addition to link and still the same. Please help me.
darkhog replied on at Permalink Reply
Hello?...

I know that you're busy, but this is important. See, my boss want this "by yesterday" and if I fail, I will have to find another job and you know what is the situation on job market during crisis.
darkhog replied on at Permalink Reply
Well, can someone help me?
Tao replied on at Permalink Reply
Tao
External links do not work?
Could be solved this way.

1. /concrete/models/page.php copy to /models/page.php

2. Replace this code to getCollectionPathFromID() in /models/page.php

public static function getCollectionPathFromID($cID) {
        $path = Cache::get('page_path', $cID);
        if ($path != false) {
            return $path;
        }
        $db = Loader::db();
        $path = $db->GetOne("select cPath from PagePaths inner join CollectionVersions on (PagePaths.cID = CollectionVersions.cID and CollectionVersions.cvIsApproved = 1) where PagePaths.cID = ?", array($cID));
        if(!empty($path)){
          $path .= '/';
        }else{
          $path = $db->GetOne("select cPointerExternalLink from Pages where  cID = ?", array($cID));
          if(empty($path)){
              return false;
          }
        }


3. Do cache clear;

Attention! This is a quick fix.
darkhog replied on at Permalink Reply
Nope, did as you said but null error is still here.
I error as in screenshot:
http://img72.imageshack.us/img72/5146/dupobeton.png...