Hi, your settings looks fine to me. Can you post your virtualPath section in episerver.config for us?
This is my virtualpath section from episerver.config and then the javascript errors I get.
<virtualPath customFileSummary="~/FileSummary.config">
<providers> <!-- \\VUEPISSQL\Common_File_Repository\ -->
<add showInFileManager="true" virtualName="Page Files" virtualPath="~/PageFiles/" bypassAccessCheck="true" indexingServiceCatalog="Web" physicalPath="\\VUEPISSQL\Common_File_Repository\PageFiles" name="SitePageFiles" type="EPiServer.Web.Hosting.VirtualPathVersioningProvider,EPiServer" />
<add showInFileManager="true" virtualName="Global Files" virtualPath="~/Global/" bypassAccessCheck="true" indexingServiceCatalog="Web" physicalPath="\\VUEPISSQL\Common_File_Repository\Global" name="SiteGlobalFiles" type="EPiServer.Web.Hosting.VirtualPathNativeProvider,EPiServer" />
<add showInFileManager="true" virtualName="Documents" virtualPath="~/Documents/" bypassAccessCheck="true" maxVersions="5" physicalPath="\\VUEPISSQL\Common_File_Repository\Documents" name="SiteDocuments" type="EPiServer.Web.Hosting.VirtualPathVersioningProvider,EPiServer" />
<add showInFileManager="true" virtualName="Scripts" virtualPath="~/Scripts/" bypassAccessCheck="true" maxVersions="5" physicalPath="\\VUEPISSQL\Common_File_Repository\Scripts" name="SiteScripts" type="EPiServer.Web.Hosting.VirtualPathVersioningProvider,EPiServer" />
<add name="EPiServerCMS" virtualPath="~/ui/CMS" physicalPath="C:\Program Files\EPiServer\CMS\6.0.530.0\application\UI\EPiServer\CMS" type="EPiServer.Web.Hosting.VirtualPathNonUnifiedProvider,EPiServer" />
<add name="EPiServerShell" virtualPath="~/ui/Shell" physicalPath="C:\Program Files\EPiServer\Framework\6.0.318.113\Application\UI" type="EPiServer.Web.Hosting.VirtualPathNonUnifiedProvider,EPiServer" />
<add name="App_Themes_Default" virtualPath="~/App_Themes/Default/" physicalPath="C:\Program Files\EPiServer\CMS\6.0.530.0\application\app_themes\default" type="EPiServer.Web.Hosting.VirtualPathNonUnifiedProvider,EPiServer" />
<add name="UtilFiles" virtualPath="~/Util/" physicalPath="C:\Program Files\EPiServer\CMS\6.0.530.0\application\util" type="EPiServer.Web.Hosting.VirtualPathNonUnifiedProvider,EPiServer" />
</providers></virtualPath>
And I get the following javascript error:
Message: Syntax error
Line: 2
Char: 1
Code: 0
URI: http://localhost/ui/CMS/javascript/edit.js
Message: Syntax error
Line: 2
Char: 1
Code: 0
URI: http://localhost/ui/CMS/javascript/shellintegration.js
Message: Syntax error
Line: 2
Char: 1
Code: 0
URI: http://localhost/ui/CMS/javascript/resizewindows.js
Message: Object expected
Line: 82
Char: 1
Code: 0
URI: http://localhost/ui/CMS/Edit/Default.aspx
Message: Syntax error
Line: 2
Char: 1
Code: 0
URI: http://localhost/ui/CMS/javascript/system.js
Message: Syntax error
Line: 2
Char: 1
Code: 0
URI: http://localhost/ui/CMS/javascript/edit.js
Message: Syntax error
Line: 2
Char: 1
Code: 0
URI: http://localhost/ui/CMS/javascript/epitooltip.js
Message: Syntax error
Line: 2
Char: 1
Code: 0
URI: http://localhost/ui/CMS/javascript/pagetreeview.js
Message: Syntax error
Line: 2
Char: 1
Code: 0
URI: http://localhost/ui/CMS/javascript/system.js
Message: Syntax error
Line: 2
Char: 1
Code: 0
URI: http://localhost/ui/CMS/javascript/edit.js
Message: 'doOnload' is null or not an object
Line: 231
Char: 5
Code: 0
URI: http://localhost/Util/javascript/episerverscriptmanager.js
Message: Syntax error
Line: 2
Char: 1
Code: 0
URI: http://localhost/ui/CMS/javascript/system.js
Message: Syntax error
Line: 2
Char: 1
Code: 0
URI: http://localhost/ui/CMS/javascript/system.js
Message: Syntax error
Line: 2
Char: 1
Code: 0
URI: http://localhost/ui/CMS/javascript/edit.js
Message: Syntax error
Line: 2
Char: 1
Code: 0
URI: http://localhost/ui/CMS/javascript/system.js
Message: 'doOnload' is null or not an object
Line: 231
Char: 5
Code: 0
URI: http://localhost/Util/javascript/episerverscriptmanager.js
Try adding this line
<add name="UI" virtualPath="~/EPiServer/UI/CMS/" physicalPath="C:\Program Files\EPiServer\CMS\6.0.530.0\application\ui\CMS" type="EPiServer.Web.Hosting.VirtualPathNonUnifiedProvider,EPiServer" />
Should I remove the UI and Util folder that is included in my source code from CMS 5, since these pages are now under the episerver folder in "program files"?
And if so, what do I do with the Plugins that I have created and added into the UI/Admin folder?
Actually, that line fixed the problem. I just didn't notice the difference in the virtual path. After editing that line to match my other paths it works!
Thank you!
Hello!
I have serious trouble with the virtual path to admin/edit mode.
I've just upgraded a CMS 5 R1 SP3 site to CMS 6 and can't get theses paths to work.
I currently have these paths:
<add name="EPiServerCMS" virtualPath="~/ui/CMS" physicalPath="C:\Program Files\EPiServer\CMS\6.0.530.0\application\UI\EPiServer\CMS" type="EPiServer.Web.Hosting.VirtualPathNonUnifiedProvider,EPiServer" />
<add name="EPiServerShell" virtualPath="~/ui/Shell" physicalPath="C:\Program Files\EPiServer\Framework\6.0.318.113\Application\UI" type="EPiServer.Web.Hosting.VirtualPathNonUnifiedProvider,EPiServer" />
<add name="App_Themes_Default" virtualPath="~/App_Themes/Default/" physicalPath="C:\Program Files\EPiServer\CMS\6.0.530.0\application\app_themes\default" type="EPiServer.Web.Hosting.VirtualPathNonUnifiedProvider,EPiServer" />
<add name="UtilFiles" virtualPath="~/Util/" physicalPath="C:\Program Files\EPiServer\CMS\6.0.530.0\application\util" type="EPiServer.Web.Hosting.VirtualPathNonUnifiedProvider,EPiServer" />
But I get several javascript errors when opening edit mode from online center. If I change the path from
C:\Program Files\EPiServer\CMS\6.0.530.0\application\UI\EPiServer\CMS to C:\Program Files\EPiServer\CMS\6.0.530.0\application\UI\CMS
the links to admin and edit disapears from online center but if I enter /ui/CMS/Edit/Default.aspx it works fine.
And if I then change back the path everything is working correctly. It seems something has been stored in the cache and therefore it now works. But when I use the same code on another developer machine with cms 6 the same problem occur.
I need a clear overview of what settings are needed for the admin and edit mode to work and to be accessible from online center without any errors and with a clean cache.