Jump to content

Archived

This topic is now archived and is closed to further replies.

gsquared

Video embed code breaks DMS editor

Recommended Posts

gsquared

I am a DMS Pro member and I am having difficulty pasting an embed code into a mediabox. When I embed the code and publish and update it, the DMS Editor freezes and I'm unable to turn it on or off. 

 

The embed code is from Wistia and there is some additional code applied to it that enables engagement tracking.

 

The only way I can tell to re-activate the DMS Editor is to delete the page and start over. I can paste the embed code if anyone wants to take a crack at it.

 

Thanks

Gary

Share this post


Link to post
Share on other sites
gsquared

I've attached a screenshot of the DMS editor bar showing the crashed state of the editor? The on/off button looks different and does not work, so I'm assuming it's in a crashed state.

 

Gary

Share this post


Link to post
Share on other sites
beardedavenger

Ya sounds like there may be extra js code in there that may be conflicting. Whats the code?


Something big is coming for DMS + photographers.

http://fotostheme.com

 

Nick Haskins & CO - New home for all of my PageLines Store products! 

http://nickhaskins.co

 

Better DMS - News, Tutorials, and Tips

http://betterdms.com

 

Share this post


Link to post
Share on other sites
gsquared

Hi Nick,

 

Here's the code:

 

<script src="//ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<div id="wistia_9q2x11cv7y" class="wistia_embed" style="width:640px;height:360px;"> </div>
<script charset="ISO-8859-1" src="//fast.wistia.com/assets/external/E-v1.js"></script>
<script>
wistiaEmbed9q2x11cv7y = Wistia.embed("9q2x11cv7y");
</script>
<script class="PlusThisVidTrack100" type="text/javascript">  email=""; cid=""; if(getQueryVariable("Email") != "not found"){email=getQueryVariable("Email");} if(getQueryVariable("Contact0Email") != "not found"){email=getQueryVariable("Contact0Email");} if(getQueryVariable("inf_field_Email") != "not found"){email=getQueryVariable("inf_field_Email");} if(getQueryVariable("Id") != "not found"){cid=getQueryVariable("Id");} if(getQueryVariable("contactId") != "not found"){cid=getQueryVariable("contactId");}  if(email != ""){ if(cid!=""){   furl_9q2x11cv7y = "https://my.plusthis.com/p/4a6917a2e36449b10d97b55c12a17824e4b67774"; var tr0_9q2x11cv7y="f"; }} wistiaEmbed9q2x11cv7y.bind("timechange", function (t) { if(t > 9){ if(t < 11){ if(tr0_9q2x11cv7y == "f"){ jQuery.ajax({ url: furl_9q2x11cv7y, type: "POST", data: {"Id" : cid, "Email" : email, "i" : "0"}, dataType: "jsonp"}); tr0_9q2x11cv7y="t";}}} });</script>

Share this post


Link to post
Share on other sites
beardedavenger

Ya see the thing is DMS front-end saves with ajax so it seems that code may be conflicting with it unfortunately.


Something big is coming for DMS + photographers.

http://fotostheme.com

 

Nick Haskins & CO - New home for all of my PageLines Store products! 

http://nickhaskins.co

 

Better DMS - News, Tutorials, and Tips

http://betterdms.com

 

Share this post


Link to post
Share on other sites
gsquared

Thanks for taking a look. Yes that's unfortunate. 

 

I've just jumped into using DMS and I don't know what I can or cannot do.

 

Is it possible to edit a page without using the DMS editor?

Share this post


Link to post
Share on other sites
Rob

Hi gsquared,

 

The only other way I know of to edit  a page is via the normal WP method, to edit the content of the page.  Editing DMS can only be done with Chrome.

 

Go to Dashboard > Pages > All Pages to edit existing content, or Add New to create new pages.

 

If the code you pasted above is causing a conflict, it is likely because it's inaccurate.  There initial line is missing an http: in here:

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>

 

You could try that, but very likely, it still won't work.  Worth a try.


Former PageLines Moderator, Food Expert and Raconteur

Share this post


Link to post
Share on other sites
Rob

Let us know how it goes.


Former PageLines Moderator, Food Expert and Raconteur

Share this post


Link to post
Share on other sites

  • Similar Content

    • TJ Bawa
      By TJ Bawa+
      DMS Editor is not loading. I have tried using different browsers and also have cleared my browser cache, but still no luck. 
      Please find screenshotattached. 
      Thanks in advance! 

    • Toolshed
      By Toolshed+
      Hello - I'm a registered Pagelines user. I tried to load my website today (toolshed.biz) in the DMS editor and received a message that the page was having trouble loading. I rarely make changes to my website so this was unexpected. I followed your support suggestions and checked for javascript errors using Chrome - when trying to load the page, it showed the following
      jquery-migrate.min.js:2 JQMIGRATE: Migrate is installed, version 1.4.1
      pl.editor.js?ver=16e8ee:740 Uncaught TypeError: Cannot read property 'lang' of undefined
          at Object.reloadConfig (pl.editor.js?ver=16e8ee:740)
          at Object.startUp (pl.editor.js?ver=16e8ee:72)
          at HTMLDocument.<anonymous> (pl.editor.js?ver=16e8ee:10)
          at i (jquery.js:2)
          at Object.fireWith [as resolveWith] (jquery.js:2)
          at Function.ready (jquery.js:2)
          at HTMLDocument.K (jquery.js:2)
      303toolshed.biz/:1 Error in event handler for (unknown): TypeError: Cannot read property 'tab' of undefined
          at chrome-extension://kamiaabbnpncbobdiblhfogafnoefkae/contentscript.js:38:28
      I deactivated all my plug-ins prior to doing this except for:
      Pagelines Platform 5 v5.0.126
      Pagelines updater v. 1.2.9
      I'm not an expert coder or web developer, not really sure what this all means. Not sure what JQMIGRATE is (a plug-in? I don't see that in my plug-in list). Can you point me in the right direction?
      Thanks,
      Dick Huey
    • dbrowne02
      By dbrowne02+
      Hi, the DMS editor is not loading on landing page. It is working on all other pages. How do I fix this? the website is selborneproperties.com I have logged in and logged out, have disabled plugins. Thanks,
      David
    • jeomiland
      By jeomiland+
      Greetings
      Was on the phone with client yesterday reviewing the site and the server slowed way down. Did a couple updates that may not have taken. Now cannot get back into the DMS editor for http://cassclayton.com/dev/  I can see the site in chrome and firefox but the background image is no longer there. Can get into dashboard in chrome and firefox. Cannot get into DMS editor in chrome - get "Oops, There may be an issue loading." error no matter how many times I try.  My internet connection is not the fastest, but I can access other sites I've built in DMS - just not http://cassclayton.com/dev/
      My question is,
      1) is there a safe way to reinstall DMS that will not trash the work done on the site? 
      2) Is there a way to see if something in the database got corrupted and how to fix? Since I can't get into DMS editor, can't get to the Flush Cache page to try that.
      Just turned on
      define('WP_DEBUG', true);
      Help!
      Thanks
    • CjrMotley
      By CjrMotley+
      My DMS editor isn't working on my landing page, all other pages can be edited using the DMS editor. 
      Is there a fix for this???
×