Skip to content
This repository has been archived by the owner on Jun 16, 2022. It is now read-only.

UrlTracker disappears in CMS #193

Closed
Auraya86 opened this issue Nov 5, 2018 · 8 comments
Closed

UrlTracker disappears in CMS #193

Auraya86 opened this issue Nov 5, 2018 · 8 comments

Comments

@Auraya86
Copy link

Auraya86 commented Nov 5, 2018

Hi,
we have a strang behaviour with the UrlTracker Package. Installation is succesful and the user can adjust the tracking-variables, but after awhile the UrlTracker is away in the CMS?

The Url-Tracker seems to use an absolute path. Don't know where it is coming from? D:\kipusoep\Documents\GitHub\UrlTracker\UrlTrackerApplicationEventHandler.cs

2018-11-05 10:26:46,414 [P5788/D27/T58] ERROR InfoCaster.Umbraco.UrlTracker.Helpers.LoggingHelper - Error reading JObject from JsonReader. Path '', line 0, position 0.
Newtonsoft.Json.JsonReaderException: Error reading JObject from JsonReader. Path '', line 0, position 0.
   at Newtonsoft.Json.Linq.JObject.Load(JsonReader reader)
   at Newtonsoft.Json.Linq.JObject.Parse(String json)
   at InfoCaster.Umbraco.UrlTracker.UrlTrackerApplicationEventHandler.ContentService_Publishing(IPublishingStrategy sender, PublishEventArgs`1 e) in D:\kipusoep\Documents\GitHub\UrlTracker\UrlTrackerApplicationEventHandler.cs:line 116
 2018-11-05 10:26:46,414 [P5788/D27/T58] ERROR InfoCaster.Umbraco.UrlTracker.Helpers.LoggingHelper - Error reading JObject from JsonReader. Path '', line 0, position 0.
Newtonsoft.Json.JsonReaderException: Error reading JObject from JsonReader. Path '', line 0, position 0.
   at Newtonsoft.Json.Linq.JObject.Load(JsonReader reader)
   at Newtonsoft.Json.Linq.JObject.Parse(String json)
   at InfoCaster.Umbraco.UrlTracker.UrlTrackerApplicationEventHandler.ContentService_Publishing(IPublishingStrategy sender, PublishEventArgs`1 e) in D:\kipusoep\Documents\GitHub\UrlTracker\UrlTrackerApplicationEventHandler.cs:line 11
@Auraya86
Copy link
Author

Auraya86 commented Nov 9, 2018

Hi, does anyone have a fix for this or do you need more information from me?

@kipusoep
Copy link
Owner

kipusoep commented Nov 9, 2018

I can't tell you why the UrlTracker dashboard is getting removed from the dashboard.config. I've never seen that before, so it must be something specific to your website.
The error you posted is related to some code specific to the Epiphany.SeoMetadata plug-in, so something's going wrong there.
Do you have the most recent version of the UrlTracker installed? Might help if you update it if not.

The path you posted is the path where the UrlTracker resides on my computer. Nothing special about that and no need to worry :-)

@Auraya86
Copy link
Author

Auraya86 commented Nov 9, 2018

Thank you very much for your reply :) Can you shortly describe me where you see the hint that this epiphany.seoMetadata-Plugin could be the reason for the error message?
But yes, this Plugin is installed on our system.

I thought the error is that the Plugin tries to read a JSON-Object in UrlTrackerApplicationEventHandler.cs, but this file doesn't exist on my system. So I thought there is a path problem in this file, because it has to be relative and not absolute.

@kipusoep
Copy link
Owner

kipusoep commented Nov 9, 2018

The error states the following:

D:\kipusoep\Documents\GitHub\UrlTracker\UrlTrackerApplicationEventHandler.cs:line 116

If you take a look at the file UrlTrackerApplicationEventHandler.cs in this repository on line 116, you see it's a block dealing with SEOMetadata.

This file is compiled into the InfoCaster.Umbraco.UrlTracker.dll file and the path you see is just debugging metadata, nothing more norhing less :-)

@Auraya86
Copy link
Author

Auraya86 commented Nov 9, 2018

aah ok, good hint, thank you :)

@Auraya86
Copy link
Author

Auraya86 commented Nov 9, 2018

@kipusoep maybe you can show me an example of what is need in the dashboard.config for the UrlTracker? Maybe it temporarily solves my problem ?

@kipusoep
Copy link
Owner

kipusoep commented Nov 9, 2018

#158 (comment)

@kipusoep kipusoep closed this as completed Nov 9, 2018
@Auraya86
Copy link
Author

Auraya86 commented Nov 9, 2018

Issue solved with

adding this to Dashboard.config works

<section alias="RedirectUrlManagement">
    <areas>
      <area>content</area>
    </areas>
    <tab caption="Url Tracker">
      <control addPanel="true">
        /Umbraco/UrlTracker/InfoCaster.Umbraco.UrlTracker.UI.UrlTrackerManagerWrapper.ascx
      </control>
    </tab>
  </section>

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants