I have a client who is trying to move their web site. I've set up DNN on a new hosting provider, and that seems to be working fine. I'm new to DNN, but have worked with other CMS's before, such as Drupal and Joomla. I've double checked and I'm definitely using the same version of DNN as the original host. (6.2.4)
The old web host exported the site's template and I moved the .template and .template.resources files into the Portals\_default folder. I was then told to create a new site, and point it to the new template. No matter what I do, whenever I add the new site, it gives me this error:
Error parsing Website TemplateCould not find file 'G:\PleskVhosts\mydomain.com\httpdocs\Portals\5\\ABD\UploadImages\1226\10\Bath&Body2.JPG'. at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) at System.IO.FileInfo.get_Length() at DotNetNuke.Services.FileSystem.StandardFolderProvider.GetFileSize(IFileInfo file) at DotNetNuke.Services.FileSystem.FileManager.AddFile(IFolderInfo
folder, String fileName, Stream fileContent, Boolean overwrite, Boolean
checkPermissions, String contentType) at DotNetNuke.Services.FileSystem.FileManager.AddFile(IFolderInfo folder, String fileName, Stream fileContent, Boolean overwrite) at DotNetNuke.Entities.Portals.PortalController.ParseFiles(XmlNodeList nodeFiles, Int32 portalId, FolderInfo objFolder) at DotNetNuke.Entities.Portals.PortalController.ParseFolders(XmlNode nodeFolders, Int32 PortalId) at DotNetNuke.Entities.Portals.PortalController.ParseTemplate(Int32
PortalId, String TemplatePath, String TemplateFile, Int32
AdministratorId, PortalTemplateModuleAction mergeTabs, Boolean
IsNewPortal) at DotNetNuke.Entities.Portals.PortalController.CreatePortal(String
portalName, UserInfo adminUser, String description, String keyWords,
PortalTemplateInfo template, String homeDirectory, String portalAlias,
String serverPath, String childPath, Boolean isChildPortal)
If I cancel out of that screen, it looks like the site is there
anyways. But, if I the go in and try to edit that site, I get this
error message:
Error: is currently unavailable. DotNetNuke.Services.Exceptions.ModuleLoadException:
Object reference not set to an instance of an object. --->
System.NullReferenceException: Object reference not set to an instance
of an object. at DotNetNuke.Entities.Portals.PortalSettings.GetPortalSettings(Int32 tabID, PortalInfo portal) at DotNetNuke.Entities.Portals.PortalSettings..ctor(PortalInfo portal) at DotNetNuke.Modules.Admin.Portals.SiteSettings.BindUsability(PortalInfo portal) at DotNetNuke.Modules.Admin.Portals.SiteSettings.BindPortal(Int32 portalId, String activeLanguage) at DotNetNuke.Modules.Admin.Portals.SiteSettings. (EventArgs e) --- End of inner exception stack trace ---
Nothing I do seems to make either of these error messages go away. I don't know DNN enough to make sense of these errors. I also have a ZIP file of the site's portal folder, so I've even tried anticipating what folder number it would automatically generate next, and unzipped the contents into that folder before creating the new site. It didn't solve anything. Could this template export be bad in some way? Is there a way I can disassemble the two template files and piece it together on top of the default template by hand? I appreciate any help anybody may be able to provide me here.