Web Connection
Another 7.30 oddity
Gravatar is a globally recognized avatar based on your email address. Another 7.30 oddity
  Richard Kaye
  All
  Feb 24, 2023 @ 03:13pm

Another oddity I'm seeing with 7.30. The admin console is not auto refreshing on either my dev or stage environments. If I click the re-read config button I do see the updated hit count. It's been a while since I updated (been running 7.25) so maybe I've missed a step?

Gravatar is a globally recognized avatar based on your email address. re: Another 7.30 oddity
  Rick Strahl
  Richard Kaye
  Feb 25, 2023 @ 04:15pm

Open the browser dev tools (F12) and see if you get any errors. Open the network tab and you should see the requests to retrieve the updated list:

The auto-refresh runs on a timer that refreshes based on the interval you have set (in ms).

+++ Rick ---

Gravatar is a globally recognized avatar based on your email address. re: Another 7.30 oddity
  Richard Kaye
  Rick Strahl
  Feb 27, 2023 @ 09:16am

Thanks, Rick. Browser debugging is clearly not my strength...

Here's what I see:

Clicking the link for the wc error it shows me this:

<div id='updated' class='small'><b style='color: darkgreen'>COM mode</b> &bull; Updated: Feb. 27, 2023 @ 08:17:47</div>
</div>
</div>

<script>    
    $(document).ready( function() {            
        setTimeout(updateServerList,5000);
    });

    function updateServerList() {         
        // call again
        var refresh = $('#txtRefresh').val() * 1.0;
        if(refresh < 1000)
           refresh = 5000;

        $('#divServerList').load('ShowServerList.wc?' + new Date().getTime());
        setTimeout(updateServerList,refresh);
    }
</script>

Gravatar is a globally recognized avatar based on your email address. re: Another 7.30 oddity
  Rick Strahl
  Richard Kaye
  Feb 27, 2023 @ 09:57am

Guessing you're missing jQuery in the stock library location. jQuery.ajax() is what's making the update request.

You should have a /lib folder with all the library dependencies for Web Connection (ie. Bootstrap, jquery, fontawesome).

+++ Rick ---

Gravatar is a globally recognized avatar based on your email address. re: Another 7.30 oddity
  Richard Kaye
  Rick Strahl
  Feb 27, 2023 @ 11:28am

A splendid guess. The lib folder was renamed in our stage environment. I don't think we're using most of the libraries in there. Another mystery solved...

Gravatar is a globally recognized avatar based on your email address. re: Another 7.30 oddity
  Richard Kaye
  Rick Strahl
  Feb 27, 2023 @ 11:34am

BTW I also have bower_components renamed. Another bad idea? 😃

Gravatar is a globally recognized avatar based on your email address. re: Another 7.30 oddity
  Rick Strahl
  Richard Kaye
  Feb 27, 2023 @ 11:34am

You need that for the admin interface and the stock error messages in Web Connection. So you should never kill those.

+++ Rick ---

Gravatar is a globally recognized avatar based on your email address. re: Another 7.30 oddity
  Rick Strahl
  Richard Kaye
  Feb 27, 2023 @ 11:37am

The bower_components is from a previous version - that's no longer needed.

Best way to know what you need is create a new project and look at the files that are generated in the support folders. You can copy those, or you can run the update routine that keeps the latest versions of the libraries up to date:

In Place Updates

+++ Rick ---

Gravatar is a globally recognized avatar based on your email address. re: Another 7.30 oddity
  Richard Kaye
  Rick Strahl
  Feb 27, 2023 @ 11:49am

Well at least I got one right. Thanks again.

Gravatar is a globally recognized avatar based on your email address. re: Another 7.30 oddity
  Rick Strahl
  Richard Kaye
  Feb 27, 2023 @ 12:02pm

Yeah if you've come through many versions of Web Connection (from 4+) there is going to be some junk to clear out... The bower stuff was a relatively short lived thing when client side package managers were big in the 5.0 timeframe.

Now everything third party goes in the lib folder and the scripts and css folders are meant to be your application folders, with scripts receiving some of the Web Connection scripts. I wish I would have stuck the files in that folder into lib as well so at least everything would have been in one place, but changing now would end up breaking people again.

Maybe in the next major version update - if there is one.

+++ Rick ---

Gravatar is a globally recognized avatar based on your email address. re: Another 7.30 oddity
  Richard Kaye
  Rick Strahl
  Feb 28, 2023 @ 10:20am

Re-downloaded the 7.30 zip and that issue in wwPageReponse is gone. Seemed to be a few other bits as well so I'm back to testing in my environment.

I noticed one other DLL that lives in the web\bin folder named MetaWebLogApi.dll. Is this required for anything?

At some point I will do as you suggested and run through the new app wizard followed by some file system grooming based on that.

Gravatar is a globally recognized avatar based on your email address. re: Another 7.30 oddity
  Rick Strahl
  Richard Kaye
  Feb 28, 2023 @ 12:11pm

metaweblogapi.dll is only for the wwDemo application - that's the Blog API upload interface that supports MetaWeblog and WordPress APIs. Not used for anything but the demo.

Most likely means you originally created your app based on the wwDemo application 😄

+++ Rick ---

Gravatar is a globally recognized avatar based on your email address. re: Another 7.30 oddity
  Richard Kaye
  Rick Strahl
  Feb 28, 2023 @ 12:34pm

Not necessarily. I'm just diffing the DLLs in the wconnect web folder to what I've got in my stuff. I don't have this DLL in my app environment and based on your feedback there's no need for me to add.

Thanks again.

Gravatar is a globally recognized avatar based on your email address. re: Another 7.30 oddity
  Rick Strahl
  Richard Kaye
  Feb 28, 2023 @ 12:50pm

You shouldn't be diffing from the sample application as there are a few things in there that don't go into every application.

Use the updater - that's the easiest. Or if you rather diff, use a new Web Connection Project and diff from that. It takes a few minutes to set up and doesn't need to affect any settings outside of the project folder (if you don't install for IIS as the Web server).

FWIW, I do this myself from time to time just to see what the heck I ship 😄. I have old projects too and keeping them in sync is just as much of a struggle for me as it is for you... and not just for Web Connection, but all Web projects that have dependencies.

+++ Rick ---

© 1996-2024