This project is read-only.
1

Closed

Nothing is working since going from 7.2.1 to 7.2.2

description

User name doesn't appear on the right side and can't post messages either.
Closed Aug 16, 2014 at 6:06 PM by christoc
no reproducable

comments

christoc wrote Mar 24, 2014 at 1:36 PM

I will do some testing with 722 this week, haven't had time yet

christoc wrote Mar 25, 2014 at 2:51 AM

I just did a new installation on 7.2.2 and didn't have any problems with it. I'll do an upgrade later this week. First thing I would recommend testing is if you can go to /signalr/hubs/ on your DNN site and see if it loads a JS file.

apluspcct wrote Mar 25, 2014 at 4:55 AM

Thanks Chris,
It does load a file here's what it looks like:

/*!
/// <reference path="....\SignalR.Client.JS\Scripts\jquery-1.6.4.js" />
/// <reference path="jquery.signalR.js" />
(function ($, window) {
/// <param name="$" type="jQuery" />
"use strict";

if (typeof ($.signalR) !== "function") {
    throw new Error("SignalR: SignalR is not loaded. Please ensure jquery.signalR-x.js is referenced before ~/signalr/hubs.");
}

var signalR = $.signalR;

function makeProxyCallback(hub, callback) {
    return function () {
        // Call the client hub method
        callback.apply(hub, $.makeArray(arguments));
    };
}

function registerHubProxies(instance, shouldSubscribe) {
    var key, hub, memberKey, memberValue, subscriptionMethod;

    for (key in instance) {
        if (instance.hasOwnProperty(key)) {
            hub = instance[key];

            if (!(hub.hubName)) {
                // Not a client hub
                continue;
            }

            if (shouldSubscribe) {
                // We want to subscribe to the hub events
                subscriptionMethod = hub.on;
            }
            else {
                // We want to unsubscribe from the hub events
                subscriptionMethod = hub.off;
            }

            // Loop through all members on the hub and find client hub functions to subscribe/unsubscribe
            for (memberKey in hub.client) {
                if (hub.client.hasOwnProperty(memberKey)) {
                    memberValue = hub.client[memberKey];

                    if (!$.isFunction(memberValue)) {
                        // Not a client hub function
                        continue;
                    }

                    subscriptionMethod.call(hub, memberKey, makeProxyCallback(hub, memberValue));
                }
            }
        }
    }
}

$.hubConnection.prototype.createHubProxies = function () {
    var proxies = {};
    this.starting(function () {
        // Register the hub proxies as subscribed
        // (instance, shouldSubscribe)
        registerHubProxies(proxies, true);

        this._registerSubscribedHubs();
    }).disconnected(function () {
        // Unsubscribe all hub proxies when we "disconnect".  This is to ensure that we do not re-add functional call backs.
        // (instance, shouldSubscribe)
        registerHubProxies(proxies, false);
    });

    proxies.chatHub = this.createHubProxy('chatHub'); 
    proxies.chatHub.client = { };
    proxies.chatHub.server = {
        getLobby: function () {
            return proxies.chatHub.invoke.apply(proxies.chatHub, $.merge(["GetLobby"], $.makeArray(arguments)));
         },

        getRoomInfo: function (roomId, moduleId) {
            return proxies.chatHub.invoke.apply(proxies.chatHub, $.merge(["GetRoomInfo"], $.makeArray(arguments)));
         },

        join: function () {
            return proxies.chatHub.invoke.apply(proxies.chatHub, $.merge(["Join"], $.makeArray(arguments)));
         },

        joinRoom: function (roomId, moduleId) {
            return proxies.chatHub.invoke.apply(proxies.chatHub, $.merge(["JoinRoom"], $.makeArray(arguments)));
         },

        leaveRoom: function (roomId, moduleId) {
            return proxies.chatHub.invoke.apply(proxies.chatHub, $.merge(["LeaveRoom"], $.makeArray(arguments)));
         },

        restoreHistory: function (roomId) {
            return proxies.chatHub.invoke.apply(proxies.chatHub, $.merge(["RestoreHistory"], $.makeArray(arguments)));
         },

        send: function (message) {
            return proxies.chatHub.invoke.apply(proxies.chatHub, $.merge(["Send"], $.makeArray(arguments)));
         },

        updateName: function (userName) {
            return proxies.chatHub.invoke.apply(proxies.chatHub, $.merge(["UpdateName"], $.makeArray(arguments)));
         }
    };

    return proxies;
};

signalR.hub = $.hubConnection("/signalr", { useDefaultPath: false });
$.extend(signalR, signalR.hub.createHubProxies());
}(window.jQuery, window));

DNNhost wrote Apr 9, 2014 at 4:49 PM

What do I do when /signalr/hubs/ does not reply ?
is there additional install I need to do, or change something in config

christoc wrote Apr 9, 2014 at 5:36 PM

If signalr/hubs doesn't reply, it likely means that DNN is intercepting the URL, likely because the URL handling isn't setup properly.

https://github.com/ChrisHammond/dnnCHAT/blob/master/Data/00.01.00.sqldataprovider

I would start by looking at this SQL in that above link

IF NOT EXISTS (SELECT * FROM {databaseOwner}[{objectQualifier}HostSettings] WHERE SettingName = 'AUM_DoNotRewriteRegEx' )
insert into {databaseOwner}{objectQualifier}hostsettings
(SettingName
, SettingValue
, SettingIsSecure 
, CreatedByUserId
, CreatedOnDate
, LastModifiedByUserId
, LastModifiedOnDate
)
values(
'AUM_DoNotRewriteRegEx'
,'/DesktopModules/|/Providers|/LinkClick\.aspx|/SignalR'
, 0
, -1
, GETDATE()
, -1
, GETDATE()
)
GO

IF EXISTS (SELECT * FROM {databaseOwner}[{objectQualifier}HostSettings] WHERE SettingName = 'AUM_DoNotRewriteRegEx' and SettingValue not like '%/signalr%' )

update {databaseOwner}{objectQualifier}hostsettings
set settingValue = (select settingValue + '|/signalr' from {databaseOwner}{objectQualifier}hostsettings where settingname = 'AUM_DoNotRewriteRegEx')
where settingname = 'AUM_DoNotRewriteRegEx'


GO

wrote Aug 16, 2014 at 6:06 PM

apluspcct wrote Aug 16, 2014 at 6:43 PM

Since I posted this I upgraded to dnn 7.3.1 and chat 1.1.0 still no change..