Javascript error "preventDoubleSubmit" is undefined in EditPanel.aspx

Vote:
 

We have a CMS 5 R2 SP2 site (which was recently updated from CMS 5 R2 SP1), which now throws the following error when clicking in the page tree while in Edit Mode:

ERROR: 'preventDoubleSubmit' is undefined
EPi.AddEventListener("aspnetForm","submit",preventDoubleSubmit);

When entering Edit Mode without clicking anything, there are no javascript errors. When clicking in the page tree, the error occurs. The main window does not display the page that was clicked.

Any suggestions?

 

 

 

 

#42184
Aug 12, 2010 11:04
Vote:
 

I suppose you have already tried it, but in case not: Clear your browser cache. There may be differences in the scripts between the versions and your browser could still be holding the old SP1 version.

#42185
Aug 12, 2010 11:19
Vote:
 

Whoops, looks like some of the paths under <episerver><virtualpath></virtualpath></episerver> pointed to the 5.2.375.133 installation instead of the 5.2.375.236 one. Corrected, and editmode seems to work OK now.

Thanks Magnus, you were definitely on to something :)

#42186
Edited, Aug 12, 2010 11:20
Vote:
 

I'm glad you found the problem so quickly :)

#42187
Aug 12, 2010 11:22
miw
Vote:
 

I have the same errormessage but I cant find anything wrong with my virtualpaths:

<virtualPath customFileSummary="~/FileSummary.config">
            <providers>
                <clear />
                <add showInFileManager="false" virtualName="Page Files" virtualPath="~/PageFiles/" bypassAccessCheck="false" name="SitePageFiles" type="EPiServer.Web.Hosting.VirtualPathVersioningProvider,EPiServer" indexingServiceCatalog="Web" physicalPath="C:\VppRoot\PageFiles" />
                <!--<add showInFileManager="false" virtualName="Virtual Path Mappings" virtualPath="~/upload/"
            bypassAccessCheck="false" name="SitePathMappings" type="EPiServer.Web.Hosting.VirtualPathMappedProvider,EPiServer" />-->
                <add showInFileManager="true" virtualName="Global Files" virtualPath="~/Global/" bypassAccessCheck="false" name="SiteGlobalFiles" type="EPiServer.Web.Hosting.VirtualPathVersioningProvider,EPiServer" indexingServiceCatalog="Web" physicalPath="C:\VppRoot\Global" />
                <add showInFileManager="true" virtualName="Member Global" virtualPath="~/ProtectedMemberGlobal/" bypassAccessCheck="false" name="MemberSiteGlobalFiles" type="EPiServer.Web.Hosting.VirtualPathVersioningProvider,EPiServer" indexingServiceCatalog="Web" physicalPath="C:\VppRoot\MemberGlobal" />
                <add showInFileManager="true" virtualName="Org. Global" virtualPath="~/ProtectedOrganizationGlobal/" bypassAccessCheck="false" name="OrganizationSiteGlobalFiles" type="EPiServer.Web.Hosting.VirtualPathVersioningProvider,EPiServer" indexingServiceCatalog="Web" physicalPath="C:\VppRoot\OrganizationGlobal" />
                <add showInFileManager="true" virtualName="Company Global" virtualPath="~/ProtectedCompanyGlobal/" bypassAccessCheck="false" name="CompanySiteGlobalFiles" type="EPiServer.Web.Hosting.VirtualPathVersioningProvider,EPiServer" indexingServiceCatalog="Web" physicalPath="C:\VppRoot\CompanyGlobal" />
                <add showInFileManager="true" virtualName="Documents" virtualPath="~/Documents/" bypassAccessCheck="false" maxVersions="5" name="SiteDocuments" type="EPiServer.Web.Hosting.VirtualPathVersioningProvider,EPiServer" physicalPath="C:\VppRoot\Documents" />
                <add showInFileManager="true" virtualName="Member Docs" virtualPath="~/ProtectedMemberDocuments/" bypassAccessCheck="false" maxVersions="5" name="MemberSiteDocuments" type="EPiServer.Web.Hosting.VirtualPathVersioningProvider,EPiServer" physicalPath="C:\VppRoot\MemberDocuments" />
                <add showInFileManager="true" virtualName="Org. Docs" virtualPath="~/ProtectedOrganizationDocuments/" bypassAccessCheck="false" maxVersions="5" name="OrganizationSiteDocuments" type="EPiServer.Web.Hosting.VirtualPathVersioningProvider,EPiServer" physicalPath="C:\VppRoot\OrganizationDocuments" />
                <add showInFileManager="true" virtualName="Company Docs" virtualPath="~/ProtectedCompanyDocuments/" bypassAccessCheck="false" maxVersions="5" name="CompanySiteDocuments" type="EPiServer.Web.Hosting.VirtualPathVersioningProvider,EPiServer" physicalPath="C:\VppRoot\CompanyDocuments" />
                <!--
        <add showInFileManager="true" virtualName="Global Files" virtualPath="~/Global/"
          bypassAccessCheck="false" indexingServiceCatalog="Web" physicalPath="%EPISERVERFILESDIR%\EPiServerFiles\Globals"
          name="SiteGlobalFiles" type="EPiServer.Web.Hosting.VirtualPathNativeProvider,EPiServer"
          WriteAccess="Administrators" DeleteAccess="Administrators" />
        -->
                <!--<add name="App_Themes_Default" virtualPath="~/App_Themes/Default/" physicalPath="c:\Program Files\EPiServer\CMS\5.2.375.133\application\App_Themes\Default" type="EPiServer.Web.Hosting.VirtualPathNonUnifiedProvider,EPiServer" />-->
                <!--<add name="UI" virtualPath="~/admui/" physicalPath="c:\Program Files\EPiServer\CMS\5.2.375.133\application\UI" type="EPiServer.Web.Hosting.VirtualPathNonUnifiedProvider,EPiServer" />-->
                <!--<add name="UtilFiles" virtualPath="~/Util/" physicalPath="c:\Program Files\EPiServer\CMS\5.2.375.133\application\util" type="EPiServer.Web.Hosting.VirtualPathNonUnifiedProvider,EPiServer" />
        <add name="WebServiceFiles" virtualPath="~/WebServices/" physicalPath="c:\Program Files\EPiServer\CMS\5.2.375.133\application\webservices" type="EPiServer.Web.Hosting.VirtualPathNonUnifiedProvider,EPiServer" />-->
                <add name="EPiServerUrlMappingVPP" virtualName="ExtensionMapping" virtualPath="~/admui/edit/" bypassAccessCheck="false" showInFileManager="false" type="EPiServer.Web.Hosting.VirtualPathMappedProvider,EPiServer" />
            </providers>
            <filters />
        </virtualPath>

<virtualPath customFileSummary="~/FileSummary.config">

            <providers>

                <clear />

                <add showInFileManager="false" virtualName="Page Files" virtualPath="~/PageFiles/" bypassAccessCheck="false" name="SitePageFiles" type="EPiServer.Web.Hosting.VirtualPathVersioningProvider,EPiServer" indexingServiceCatalog="Web" physicalPath="C:\VppRoot\PageFiles" />

                <!--<add showInFileManager="false" virtualName="Virtual Path Mappings" virtualPath="~/upload/"

            bypassAccessCheck="false" name="SitePathMappings" type="EPiServer.Web.Hosting.VirtualPathMappedProvider,EPiServer" />-->

                <add showInFileManager="true" virtualName="Global Files" virtualPath="~/Global/" bypassAccessCheck="false" name="SiteGlobalFiles" type="EPiServer.Web.Hosting.VirtualPathVersioningProvider,EPiServer" indexingServiceCatalog="Web" physicalPath="C:\VppRoot\Global" />

                <add showInFileManager="true" virtualName="Member Global" virtualPath="~/ProtectedMemberGlobal/" bypassAccessCheck="false" name="MemberSiteGlobalFiles" type="EPiServer.Web.Hosting.VirtualPathVersioningProvider,EPiServer" indexingServiceCatalog="Web" physicalPath="C:\VppRoot\MemberGlobal" />

                <add showInFileManager="true" virtualName="Org. Global" virtualPath="~/ProtectedOrganizationGlobal/" bypassAccessCheck="false" name="OrganizationSiteGlobalFiles" type="EPiServer.Web.Hosting.VirtualPathVersioningProvider,EPiServer" indexingServiceCatalog="Web" physicalPath="C:\VppRoot\OrganizationGlobal" />

                <add showInFileManager="true" virtualName="Company Global" virtualPath="~/ProtectedCompanyGlobal/" bypassAccessCheck="false" name="CompanySiteGlobalFiles" type="EPiServer.Web.Hosting.VirtualPathVersioningProvider,EPiServer" indexingServiceCatalog="Web" physicalPath="C:\VppRoot\CompanyGlobal" />

                <add showInFileManager="true" virtualName="Documents" virtualPath="~/Documents/" bypassAccessCheck="false" maxVersions="5" name="SiteDocuments" type="EPiServer.Web.Hosting.VirtualPathVersioningProvider,EPiServer" physicalPath="C:\VppRoot\Documents" />

                <add showInFileManager="true" virtualName="Member Docs" virtualPath="~/ProtectedMemberDocuments/" bypassAccessCheck="false" maxVersions="5" name="MemberSiteDocuments" type="EPiServer.Web.Hosting.VirtualPathVersioningProvider,EPiServer" physicalPath="C:\VppRoot\MemberDocuments" />

                <add showInFileManager="true" virtualName="Org. Docs" virtualPath="~/ProtectedOrganizationDocuments/" bypassAccessCheck="false" maxVersions="5" name="OrganizationSiteDocuments" type="EPiServer.Web.Hosting.VirtualPathVersioningProvider,EPiServer" physicalPath="C:\VppRoot\OrganizationDocuments" />

                <add showInFileManager="true" virtualName="Company Docs" virtualPath="~/ProtectedCompanyDocuments/" bypassAccessCheck="false" maxVersions="5" name="CompanySiteDocuments" type="EPiServer.Web.Hosting.VirtualPathVersioningProvider,EPiServer" physicalPath="C:\VppRoot\CompanyDocuments" />

 

                <!--

        <add showInFileManager="true" virtualName="Global Files" virtualPath="~/Global/"

          bypassAccessCheck="false" indexingServiceCatalog="Web" physicalPath="%EPISERVERFILESDIR%\EPiServerFiles\Globals"

          name="SiteGlobalFiles" type="EPiServer.Web.Hosting.VirtualPathNativeProvider,EPiServer"

          WriteAccess="Administrators" DeleteAccess="Administrators" />

        -->

                <!--<add name="App_Themes_Default" virtualPath="~/App_Themes/Default/" physicalPath="c:\Program Files\EPiServer\CMS\5.2.375.236\application\App_Themes\Default" type="EPiServer.Web.Hosting.VirtualPathNonUnifiedProvider,EPiServer" />-->

                <!--<add name="UI" virtualPath="~/admui/" physicalPath="c:\Program Files\EPiServer\CMS\5.2.375.236\application\UI" type="EPiServer.Web.Hosting.VirtualPathNonUnifiedProvider,EPiServer" />-->

                <!--<add name="UtilFiles" virtualPath="~/Util/" physicalPath="c:\Program Files\EPiServer\CMS\5.2.375.236\application\util" type="EPiServer.Web.Hosting.VirtualPathNonUnifiedProvider,EPiServer" />

        <add name="WebServiceFiles" virtualPath="~/WebServices/" physicalPath="c:\Program Files\EPiServer\CMS\5.2.375.236\application\webservices" type="EPiServer.Web.Hosting.VirtualPathNonUnifiedProvider,EPiServer" />-->

                <add name="EPiServerUrlMappingVPP" virtualName="ExtensionMapping" virtualPath="~/admui/edit/" bypassAccessCheck="false" showInFileManager="false" type="EPiServer.Web.Hosting.VirtualPathMappedProvider,EPiServer" />

            </providers>

            <filters />

        </virtualPath>

The pointers to the CMS library is commented out so this doesn't create the problem i think?

 

Do you have any ideas?

#45028
Oct 26, 2010 18:34
Vote:
 

If the VPP:s for app themes, ui and utils are commented out, the EPiServer user interface won't work, unless you have copied the folders to your web root. If you did (which you shouldn't unless you have a very good reason), then maybe you copied files from a different version - creaing the same problem as Arild had.

#45035
Oct 27, 2010 7:28
miw
Vote:
 

You're absolutely right.

 

Now I just have to find out why these have been commented out. Thanks

#45044
Oct 27, 2010 12:00