Cannot read property 'uCommentatorApiKey' of undefined
Nothing is showing in my backend and get the following error in console:
TypeError: Cannot read property 'uCommentatorApiKey' of undefined
at Object.$get (localhost/DependencyHandler.axd?s=L0FwcF9QbHVnaW5zL0RpcGxv…9BY3Rpb25EZWxldGVSZWxhdGlvblR5cGUuanM7&t=Javascript&cdv=1544898182:423:139)
at Object.d [as invoke] (localhost/DependencyHandler.axd?s=L3VtYnJhY28vbGliL2pxdWVy…250cm9sbGVycy92aWV3LmNvbnRyb2xsZXIuanM7&t=Javascript&cdv=1544898182:7:6461)
at localhost/DependencyHandler.axd?s=L3VtYnJhY28vbGliL2pxdWVy…b250cm9sbGVycy92aWV3LmNvbnRyb2xsZXIuanM7&t=Javascript&cdv=1544898182:8:542
at c (localhost/DependencyHandler.axd?s=L3VtYnJhY28vbGliL2pxdWVy…250cm9sbGVycy92aWV3LmNvbnRyb2xsZXIuanM7&t=Javascript&cdv=1544898182:7:5798)
at d (localhost/DependencyHandler.axd?s=L3VtYnJhY28vbGliL2pxdWVy…250cm9sbGVycy92aWV3LmNvbnRyb2xsZXIuanM7&t=Javascript&cdv=1544898182:7:5932)
at Object.instantiate (localhost/DependencyHandler.axd?s=L3VtYnJhY28vbGliL2pxdWVy…250cm9sbGVycy92aWV3LmNvbnRyb2xsZXIuanM7&t=Javascript&cdv=1544898182:7:6591)
at localhost/DependencyHandler.axd?s=L3VtYnJhY28vbGliL2pxdWVy…250cm9sbGVycy92aWV3LmNvbnRyb2xsZXIuanM7&t=Javascript&cdv=1544898182:11:326
at localhost/DependencyHandler.axd?s=L3VtYnJhY28vbGliL2pxdWVy…250cm9sbGVycy92aWV3LmNvbnRyb2xsZXIuanM7&t=Javascript&cdv=1544898182:9:6382
at n (localhost/DependencyHandler.axd?s=L3VtYnJhY28vbGliL2pxdWVy…b250cm9sbGVycy92aWV3LmNvbnRyb2xsZXIuanM7&t=Javascript&cdv=1544898182:4:576)
at k (localhost/DependencyHandler.axd?s=L3VtYnJhY28vbGliL2pxdWVy…250cm9sbGVycy92aWV3LmNvbnRyb2xsZXIuanM7&t=Javascript&cdv=1544898182:9:6247)
localhost/umbraco/%7B%7Bcomment.author.avatar.permalink%7D%7D Failed to load resource: the server responded with a status of 404 (Not Found)
The api settings page has been filled and published and the frontend the comments are showing just the backend nothing displays.
var api_key = "gcz5d91zn0rEDvSbksyBi4A2RluxfqY8hLOjALpL5JAPTtCC3ubhIGN8VHcGrmz7";
var api_secret = "tZh63Rfx2MkaDtP9fxOe826bRRdazuQ9BW4rvhVBrRXCOdLJHhvRYW0Hkn4Stjol";
var access_token = "4b0a6fdf173c420ea19cdf5e97197d7d";
var shortname = "dellynyman";
var category = 3316560;
var limit = 10;
Also search for dellynyman as there are 2 calls on this in the whitelist and blacklist calls. I am guessing these need to be changed so they call from the configuration page but as a work around enter the details manually.
Sorry for late response, glad you found the solution. May I know what umbraco version you use? So I can found the trouble why my servervariables doesn't work to call the settings at all.
Cannot read property 'uCommentatorApiKey' of undefined
Nothing is showing in my backend and get the following error in console:
The api settings page has been filled and published and the frontend the comments are showing just the backend nothing displays.
Ok turns out the backend was hardcoded with the origional api, shortname etc so you will need to change these in the file:
/App_Plugins/uCommentator/uCommentator.controller.js
These are the hard coded settings:
var api_key = "gcz5d91zn0rEDvSbksyBi4A2RluxfqY8hLOjALpL5JAPTtCC3ubhIGN8VHcGrmz7";
var api_secret = "tZh63Rfx2MkaDtP9fxOe826bRRdazuQ9BW4rvhVBrRXCOdLJHhvRYW0Hkn4Stjol";
var access_token = "4b0a6fdf173c420ea19cdf5e97197d7d";
var shortname = "dellynyman";
var category = 3316560;
var limit = 10;
Also search for dellynyman as there are 2 calls on this in the whitelist and blacklist calls. I am guessing these need to be changed so they call from the configuration page but as a work around enter the details manually.
Hi William,
Sorry for late response, glad you found the solution.
May I know what umbraco version you use? So I can found the trouble why my servervariables doesn't work to call the settings at all.
Thanks
Delly
Sorry missed your post version umbraco 7.1.8 :)
is working on a reply...