# Site Configuration not loading

**URL:** <https://forums.plex.tv/t/site-configuration-not-loading/8891>\
**Category:** Dev/API Corner\
**Tags:** plugin-dev\
**Created:** [April 17, 2011, 9:47pm UTC](https://forums.plex.tv/t/site-configuration-not-loading/8891 "2011-04-17T21:47:58Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![gcamp](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/gcamp/32/203459_2.png) [@gcamp](https://forums.plex.tv/u/gcamp)\
**Post date:** [April 17, 2011, 9:47pm UTC](https://forums.plex.tv/t/site-configuration-not-loading/8891/1 "2011-04-17T21:47:58Z")

</div>

Hi,   
  
  
  
I’m working on a new plugin and when I open a new video, I have this log.

```auto

Apr 17, 2011 17:37:41 [0xb079d000] DEBUG - Request: GET /video/:/webkit?url=http%3A%2F%2Fwww.radio-canada.ca%2Faudio-video%2Findex.shtml%23urlMedia%3Dhttp%3A%2F%2Fwww.radio-canada.ca%2Futil%2Fendirect%2FCBFTdirect.asx%26pos%3D0&prefix=/video/radiocanadalive [::ffff:127.0.0.1] (1 live)<br />
Apr 17, 2011 17:37:41 [0xb079d000] DEBUG - * url => http://www.radio-canada.ca/audio-video/index.shtml#urlMedia=http://www.radio-canada.ca/util/endirect/CBFTdirect.asx&pos=0<br />
Apr 17, 2011 17:37:41 [0xb079d000] DEBUG - * prefix => /video/radiocanadalive<br />
Apr 17, 2011 17:37:41 [0xb079d000] DEBUG - WebKit: [radio-canada.ca/audio-video/index.shtml#urlMedia=http://www.radio-canada.ca/util/endirect/CBFTdirect.asx&pos=0]<br />
Apr 17, 2011 17:37:41 [0xb079d000] DEBUG - Found corresponding plug-in: /Users/gcamp/Library/Application Support/Plex Media Server/Plug-in Support/Data/com.plexapp.plugins.radiocanadalive<br />
Apr 17, 2011 17:37:41 [0xb079d000] DEBUG - Could not find site configuration for http://www.radio-canada.ca/audio-video/index.shtml#urlMedia=http://www.radio-canada.ca/util/endirect/CBFTdirect.asx&pos=0<br />
Apr 17, 2011 17:37:41 [0xb079d000] ERROR - ERROR: Couldn't find configuration.<br />
Apr 17, 2011 17:37:41 [0xb079d000] ERROR - WebKit: Could not initiate capture.

```

  
  
This is the content of my Site Configuration  
  

```auto

<site site="http://www.radio-canada.ca/*"<br />
       plugin="http://publique.radio-canada.ca/audio-video/player/flash/1.0/normal/player.swf"<br />
       initialState="playing"<br />
       version="1.0"><br />
       <br />
 <!-- PLAYING --><br />
 <state name="playing"><br />
  <event><br />
   <condition><br />
    <command name="pause" /><br />
   </condition><br />
   <action><br />
    <click x="15" y="304" /><br />
    <goto state="paused" /><br />
   </action><br />
  </event><br />
 </state><br />
 <!-- PAUSED --><br />
 <state name="paused"><br />
  <event><br />
   <condition><br />
    <command name="play" /><br />
   </condition><br />
   <action><br />
    <click x="15" y="304" /><br />
    <goto state="playing" /><br />
   </action><br />
  </event><br />
 </state><br />
</site>

```

  
  
I don't see anything wrong? Does somebody has an idea?  
  
I have a github repo here : https://github.com/gcamp/Radio-Canada-Live---Plex-plugin

---

<div class="post-metadata">

**Author:** ![sander1](https://avatars.discourse-cdn.com/v4/letter/s/4bbf92/32.png) [@sander1](https://forums.plex.tv/u/sander1)\
**Post date:** [April 18, 2011, 12:33am UTC](https://forums.plex.tv/t/site-configuration-not-loading/8891/2 "2011-04-18T00:33:04Z")

</div>

Hi!  
  
It’s probably the \* in the _site_ attribute that’s the problem. In your case the \* matches zero or more **/**'s. In this case you can just leave it out. I also like to suggest to make the _plugin_ attribute a little less specific (in case they bump up the version number for example):

```auto

<site site="http://www.radio-canada.ca"<br />
       plugin="http://publique.radio-canada.ca/audio-video.*player\.swf"<br />
       initialState="playing"<br />
       version="1.0"><br />

```

---

<div class="post-metadata">

**Author:** ![gcamp](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/gcamp/32/203459_2.png) [@gcamp](https://forums.plex.tv/u/gcamp)\
**Post date:** [April 18, 2011, 1:50am UTC](https://forums.plex.tv/t/site-configuration-not-loading/8891/3 "2011-04-18T01:50:28Z")

</div>

Thanks a lot sander1 for the suggestion.   
  
  
  
However, that’s not it. I had placed that ‘\*’ there because I had previously placed the full URL but that didn’t work. I was just trying other things.   
  
  
  
I retried with the new Site configuration and still the same error in the console.  
  
  
  
[Most up to date Site Configuration](https://github.com/gcamp/Radio-Canada-Live---Plex-plugin/blob/master/Contents/Site%20Configurations/Radio.xml)

---

<div class="post-metadata">

**Author:** ![IanDBird](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/iandbird/32/85993_2.png) [@IanDBird](https://forums.plex.tv/u/IanDBird)\
**Post date:** [April 18, 2011, 7:00pm UTC](https://forums.plex.tv/t/site-configuration-not-loading/8891/4 "2011-04-18T19:00:49Z")

</div>

I’ve seem similar logs when there is an actual XML error in the file. When this has happened to me, I’ve found that the Plex Media Server.log (in ~/Library/Logs) will sometimes show more details of why it couldn’t use the Site Configuration file. Might be worth a scan as nothing obvious is jumping out.

---

<div class="post-metadata">

**Author:** ![sander1](https://avatars.discourse-cdn.com/v4/letter/s/4bbf92/32.png) [@sander1](https://forums.plex.tv/u/sander1)\
**Post date:** [April 18, 2011, 9:10pm UTC](https://forums.plex.tv/t/site-configuration-not-loading/8891/5 "2011-04-18T21:10:57Z")

</div>

One thing I can think of why your site config isn’t working, is because you don’t have a and element. I’m not sure if the seekbar element is required, but I wouldn’t be surprised if you can fix your problem by adding the crop element. Have a look at the site config from the NBC plugin to see how the elements should look like:  
  
[https://github.com/sander1/NBC.bundle/blob/master/Contents/Site%20Configurations/nbc.xml](https://github.com/sander1/NBC.bundle/blob/master/Contents/Site%20Configurations/nbc.xml)

---

<div class="post-metadata">

**Author:** ![gcamp](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/gcamp/32/203459_2.png) [@gcamp](https://forums.plex.tv/u/gcamp)\
**Post date:** [April 19, 2011, 4:54pm UTC](https://forums.plex.tv/t/site-configuration-not-loading/8891/6 "2011-04-19T16:54:39Z")

</div>

Thanks everyone for the help.  
  
  
  
I don’t know if that’s a bug in Plex or something I don’t understand in regular expressions, but the problem was in the site parameter. I tried with “www.radio-canada.ca”, without the “http://” and it worked.  
  
  
  
Anyhow, it works now!

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/plex/original/3X/2/a/2acb9765406f63293d357b4ec509ec39aa28f2ad.png) [@system](https://forums.plex.tv/u/system)\
**Post date:** [December 20, 2019, 9:05pm UTC](https://forums.plex.tv/t/site-configuration-not-loading/8891/7 "2019-12-20T21:05:47Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
