This looks like a very old version of site import. Have you installed the latest version? That line of code in the error isn't in the product anymore and hasn't been for many years it looks like. You should be eligible for an upgrade to design extender for just $99. That has a newer version of site import that shouldn't have this issue as well as a lot of other new features and updates you don't have now.
Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.
These out-of-the-box solutions provide you proven, tested applications that can be up and running now. Build a store, a gallery, or a web-based email solution.