• Login
  • Register

DNN Forums

A community discussion page. We're starting from scratch, so...let's get the party started!

"?cdv=", what is it for and how can I modify it?

You are not authorized to post a reply.
Sort:
Page 1 of 212 > >>


New Member


Posts:11
New Member

    Hi All,

    A little new to the platform's intricacies, thanks for reading my question.

    One of our tasks is to make sure to update jquery and bootstrap on our existing DNN.

    Our DNN site lives in Azure, and I have navigated to each instance of jquery and bootstrap.

    I noticed that in our site, I am getting an error that says 
    "Uncaught Error: Bootstrap's JavaScript requires jQuery version 1.9.1 or higher, but lower than version 3
        at bootstrap.min.js:6
        at bootstrap.min.js:6"

    Upon looking at chrome inspector, I noticed that at the end of the bootstrap call there's an "?cdv=134" query parameter in the url.
    (/Portals/_default/Skins/(path)/js/vendor/bootstrap.min.js?cdv=134)
    upon visiting it's the old instance of bootstrap. If I remove the "?cdv=" query or change the number, I now see my updated bootstrap file.

    How exactly do I remove/ change the cdv value? 

    I am using DNNv 9.1.1

     



    Basic Member


    Posts:67
    Basic Member

      That parameter is the "Client Dependency Version", which is used to allow cache-busting of resources when there's a change. To update the version so that the change is widely visible, you'll want to go into the Servers page of the Persona Bar, and select the Server Settings tab and then the Performance sub-tab. At the bottom of the Performance page, there's a Client Resource Management section, and an Increment Version button.
      DNN partner specializing in custom, enterprise DNN development https://engagesoftware.com/showcase


      New Member


      Posts:11
      New Member

        Is this somethingthat I modify in sql? I noticed that every time I modified the jquery and bootstrap file, there's a new cdv version that appears, split by a colon


        New Member


        Posts:11
        New Member

          Hi Brian,

          I see it, thank you for the guide.
          So in essence, every time I modify files on azure itself directly, I should go in here and increment the version correct?



          Basic Member


          Posts:67
          Basic Member

            Yes. Installing extension packages into DNN will automatically increment the version, but if you're manually changing files that are served via the Client Resource Management API, you'll want to increment the version manually.

            That said, manually editing files that come with DNN can create problems further down the line, because upgrades to DNN can overwrite your changes. In this case, you can install newer versions of the JavaScript Libraries that these scripts come from. If you go to https://github.com/EngageSoftware/DNN-JavaScript-Libraries and click on the "build passing" badge at the top of the README, it'll take you to the latest build of our JS Libraries, and you can navigate to the Artifacts from that build to find, e.g. jQuery 3.4.1 and Bootstrap 4.3.1. Note that the new jQuery library will override DNN's built-in jQuery, but the theme is probably not using a JS Library version of Bootstrap.
            DNN partner specializing in custom, enterprise DNN development https://engagesoftware.com/showcase


            New Member


            Posts:11
            New Member

              Hi Brian,

              I have updated the version number via the interface you mentioned above. Thanks. 
              However, when I try updating the site, we get an error saying "Please enable cookies" thru cloudflare.
              Is this something you've ever experienced before?


              Thanks I found the artifacts.
              How do you properly update it to the dnn site however?

              I'm trying to glean from the logs and noticed (collecting) and (Uploading) but there are no traces of the filepaths...
              Also which files exactly do we copy over?



              I sincerely appreciate the assistance



              Basic Member


              Posts:67
              Basic Member

                Each of those zip files in the Artifacts is an installable package, you install it the same way you would install a module or theme (via the Extensions page in the Persona Bar)
                DNN partner specializing in custom, enterprise DNN development https://engagesoftware.com/showcase


                New Member


                Posts:11
                New Member

                  Hi Brian, thanks I have the artifacts now.

                  However upon trying to upload the Bootstrap one in extensions, I get the error "popper.js not installed"
                  Do you have an artifact that includes that?



                  New Member


                  Posts:11
                  New Member

                    Oh sorry, never mind saw it in the artifacts



                    New Member


                    Posts:11
                    New Member

                      Hi Brian, 

                      I updated the sites using the method you mentioned (*cog icon*-> Extension-> Install Extension)

                      However, for one of the sites the install apparently didn't work..
                      The webpage was referencing juery 3.4.1, but there was actually no files that were added to the site.

                      This has caused even the other dnn tools to disappear, as I believe they are making use of juery

                      I have since supplied the missing updated juery file, however the site still points to an empty location
                      because of the ?cdv= query...

                      since I cannot access dnn persona bar, is there any way to update the content version by other means please?

                       

                      You are not authorized to post a reply.
                      Page 1 of 212 > >>

                      These Forums are dedicated to discussion of DNN Platform.

                      For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

                      1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
                      2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
                      3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
                      4. No Flaming or Trolling.
                      5. No Profanity, Racism, or Prejudice.
                      6. Site Moderators have the final word on approving / removing a thread or post or comment.
                      7. English language posting only, please.

                      Would you like to help us?

                      Awesome! Simply post in the forums using the link below and we'll get you started.

                      Get Involved