DMXzone Lightbox Support Product Page

Solved

Extremely frustrating error

Reported 06 Sep 2011 20:19:31
4
have this problem
06 Sep 2011 20:19:31 Jeff Spijkers posted:
I have been using the Lightbox but quite a while now, and have had good results until recently.

It has just decided to stop functioning properly...

I am posting this after 10 attempts at removing the extension, clearing the cache and re-installing it. And the damned errors just won't stop plaguing me.[V]

When I try to insert a lightbox on a page, I go through the process of selecting images adding titles and setting the appearance. Then I click OK to insert the lightbox and I get the following error EVERYTIME![!]

"Making this change would require changing code that is locked by a template or a translator. The change will be discarded."

Then I click OK (no other option)and I get the next error.[V]

"While executing onLoad, the following JavaScript error(s) occured:

At line 347 of file: "c:\Program Files\Adobe\Adobe Dreamweaver CS4\Configuration\Commands\dmxUpdateHead.htm":
The object is not currently contained in a document."

Again, OK is my only option.

The image gets inserted on the page, but no lightbox functionality at all...[!]

I am so frustrated I have completely given up on it... This is my last option to find a solution.[]

Thanks

PS. I have the exact same problem in CS5! PLEASE HELP!

Edited by - Jeff Spijkers on 06 Sep 2011  20:20:48

Promoted Solutions

Replied 12 Sep 2011 09:46:00
Hello Jeff,

You have also a Nivo Slider set in with serverside include. It also have a reference to the jQuery-latest.pack.js file. You will need to fix this as well. Until then your page will trow javascript errors.

Replies

Replied 07 Sep 2011 09:26:52
07 Sep 2011 09:26:52 Teodor Kuduschiev replied:
Dear Jeff,

Could you please provide a link to your page or send it to ?
Replied 07 Sep 2011 18:15:01
07 Sep 2011 18:15:01 Jeff Spijkers replied:
Here is the link to the largest image gallery I am working on...

www.sharemycanada.com/gallery-scenic.php

But the same thing is happening on all of the image galleries.

I would really appreciate some advice on how the correct the problem with the extension so I can get the galleries working with the lightbox.

Thank you

PS. I just downloaded the latest update. The problem still persists. I did a search on my system for the file called "dmxUpdateHead.htm" indicated in the error message. This file does not exist anywhere on my system.

Edited by - Jeff Spijkers on 07 Sep 2011  19:33:30
Replied 09 Sep 2011 13:36:14
09 Sep 2011 13:36:14 Jeff Spijkers replied:
Can someone PLEEEEEASE answer this post with some kind of suggestion!!?!!

All of my other extension from DMX are now showing the same problems, and pages that I have uploaded that were working fine are now messing up! Even from my newest HTML5 MP3 Player... I have not updated the page or anything but now the player will not play the audio on the page... it loads a new blank page with a player in the middle. It never did that before.

What's going on here?

Is no one willing to help?

Please!!! I'm begging!!![v][v][v]
Replied 09 Sep 2011 14:31:22
09 Sep 2011 14:31:22 Teodor Kuduschiev replied:
Dear Jeff,

First of all the Lightbox on the page you've sent is version 1.0.10 and the latest one 1.0.12 - It is your responsibility to keep the extension updated. Please download and install the Latest Lightbox version and reapply it on your page.
PLUS - are you using some other jquery than the included in the extension?
Also: What do you mean by:
Quote All of my other extension from DMX are now showing the same problems, and pages that I have uploaded that were working fine are now messing up!
?

Replied 09 Sep 2011 15:40:04
09 Sep 2011 15:40:04 Jeff Spijkers replied:
I DID download the newest version and it is doing exactly the same thing!!!!!!![!][!][!][!][!]

why should I bother updating the page on the site if the same problem still exists?????

It is YOUR responsibility to provide proper support to your customers!!!!!

Please help me find a SOLUTION instead of insulting me!!!!![!][!][!]

I am now getting the same errors and loss of fucti0onality from all my other DMX Extensions and ONLY my DMX extensions... all extensions from other providers are still working perfectly as they always have.

Edited by - Jeff Spijkers on 09 Sep 2011  15:42:23
Replied 09 Sep 2011 17:43:07
09 Sep 2011 17:43:07 Teodor Kuduschiev replied:
Hello Jeff,

The:
<script type="text/javascript" src="dmx/widgets/Lightbox/dmx.lightbox.js"></script>


File on your site: www.sharemycanada.com/dmx/widgets/Lightbox/dmx.lightbox.js

Is version 1.0.10 .Please make sure that you've updated the lightbox on your page and upload all of the files.

Please describe what errors do you have with which of our extensons:
QuoteI am now getting the same errors and loss of fucti0onality from all my other DMX Extensions and ONLY my DMX extensions...

Replied 09 Sep 2011 17:49:23
09 Sep 2011 17:49:23 Jeff Spijkers replied:
I can't!!!!!

The newest version of the extension is giving me the errors I clearly showed in the first post.

All of my DMX extensions are giving me the same errors.

I will rebuild the page again using the latest version, but I doubt that it will make any difference...

I will do it now. Please check the live page again in 30 minutes.

I have redone the page and uploaded all the files as requested...

No difference at all... still refuses to work...

You can also see
www.sharemycanada.com/music.php?page=music
to see what's happening with the HTML5 MP3 Player... it has also stopped working, and the extension is giving the same errors in dreamweaver when I try to us it.

Edited by - Jeff Spijkers on 09 Sep 2011  18:17:41
Replied 09 Sep 2011 18:48:37
09 Sep 2011 18:48:37 Teodor Kuduschiev replied:
Please check your e-mail
Replied 09 Sep 2011 19:40:35
09 Sep 2011 19:40:35 Willi Schneider replied:
Quote...You can also see
www.sharemycanada.com/music.php?page=music
to see what's happening with the HTML5 MP3 Player... it has also stopped working, and the extension is giving the same errors in dreamweaver when I try to us it.

Edited by - Jeff Spijkers on 09 Sep 2011  18:17:41


QuoteI can't!!!!!

The newest version of the extension is giving me the errors I clearly showed in the first post.

All of my DMX extensions are giving me the same errors.

I will rebuild the page again using the latest version, but I doubt that it will make any differ[8D][8D]ence...

I will do it now. Please check the live page again in 30 minutes.

I have redone the page and uploaded all the files as requested...

No difference at all... still refuses to work...

You can also see
www.sharemycanada.com/music.php?page=music
to see what's happening with the HTML5 MP3 Play

er... it has also stopped working, and the extension is giving the same errors in dreamweaver when I try to us it.

Edited by - Jeff Spijkers on 09 Sep 2011  18:17:41


Hi Jeff

Seems that you are loading the contents of your page via Server Side includes. That results in having more than one reference to the "jquery.latest.pack.js"-file in your source code, which forces your problem...

So, if I'm guessing right, you are loading your "HTML5 MP3 Play" with the URL-parameter "?page=music".

If so, insert a condition like:


<?php
  if ("".$_GET['page']  ."" != "music") {  
?>
  <script type="text/javascript" src="ScriptLibrary/jquery-latest.pack.js"></script>
  <?php
  } 
?>


into the page that contains the "HTML5 MP3 Play"

So, your "HTML5 MP3 Play" page will work as standalone and will work if included inside the "music.php" page.
The effect is, that "jquery-latest.pack.js" will only be referenced once and the error should be gone.

I hope you understand what I mean, as this sounds much more complicated as it is...

Greetings

Willi

Replied 10 Sep 2011 04:44:46
10 Sep 2011 04:44:46 Jeff Spijkers replied:
Hi Willi

Thanks for the reply.

The URL parameter is only to filter the text content for the page.

The music on the page was added manually through the extension.

I try you code snippet, but it had no effect.

Still the same problem so I removed it.

The problem has to be with the extension.
Replied 11 Sep 2011 17:39:42
11 Sep 2011 17:39:42 Jeff Spijkers replied:
I have been trying everything I can think of... The errors still plague me...

I have deleted all instances of dmxUpdateHead.htm and re-installed the UpdateHead extension to try to get a fresh version of the file... No go... I still get the same error when I try to insert any of my DMX extensions on a page.

It's driving me crazy.

Someone please help... I'll try just about anything right now. Otherwise I will have a few hundred dollars worth of useless extensions... One of which I have not even been able to use even once...

I'm desperate... PLEASE!

Thanks
Replied 12 Sep 2011 09:46:00
12 Sep 2011 09:46:00 Miroslav Zografski replied:
Hello Jeff,

You have also a Nivo Slider set in with serverside include. It also have a reference to the jQuery-latest.pack.js file. You will need to fix this as well. Until then your page will trow javascript errors.
Replied 12 Sep 2011 14:49:13
12 Sep 2011 14:49:13 Willi Schneider replied:
Hi Jeff

Please see the attached screenshot of the source code of your rendered page (as seen in IE):
www.sharemycanada.com/music.php?page=music



There are two references to jquery-latest.pack.js (!)

If you remove the second instance (line 38 in the source code) your page should work...

HTH

Willi
Replied 12 Sep 2011 17:20:36
12 Sep 2011 17:20:36 Jeff Spijkers replied:
THANK YOU! THANK YOU! THANK YOU!

That was the problem.

I removed the reference to the jQuery script from the include page containing the slider and everything seems to be back to normal...

I want to express my deepest thanks to everyone for helping to find this problem.

You guys ROCK![]
Replied 12 Sep 2011 19:12:57
12 Sep 2011 19:12:57 Willi Schneider replied:
Hi Jeff

I'm glad to hear it is working now.

As this problem happens very often when using DMXzone widgets as incuded files, maybe DMX could add a checkbox to the extension's GUI to check/uncheck if the "jquery-latest.pack" should be referenced by the widget or by the parent page...

Just an idea...

Greetings

Willi
Replied 13 Sep 2011 10:01:44
13 Sep 2011 10:01:44 Miroslav Zografski replied:
Hello Jeff,

Glad you have fixed the issue.

Willi,
Thanks for the help.

Replied 13 Sep 2011 15:26:44
13 Sep 2011 15:26:44 Jeff Spijkers replied:
QuoteHello Jeff,

Glad you have fixed the issue.

Willi,
Thanks for the help.



Hi Willi

I completely agree. I think it should be something like a priority upgrade to all extensions. It would probably save alot of frustration and time for all concerned.

Thanks again for the great assistance.!
Replied 26 Mar 2012 21:49:20
26 Mar 2012 21:49:20 Bart Garner replied:
Any time you have a DMX element in an included page you will need to watch for duplicate include lines and remove them or you will get this error.

Every time you open a page with a DMX behaviour on it in Dreamweaver it will check for the include statements and add them if they are missing. It will also update and overwrite those included files so beware of promptly uploading to a production server.
Replied 16 Jul 2014 15:01:28
16 Jul 2014 15:01:28 Steve Skinner replied:
This isn't a solution to getting the error, but it's a way of suppressing it.

I use server-side includes all the time too; it's much more efficient than inserting the same code on all the pages you want to use it on. I was getting the same js error relating to dmxUpdateHead.htm, until I turned off the setting in dreamweaver to turn off server-side includes. This is where it is in DW settings:



With that box unchecked, the error doesn't happen. This is how I work in DW most of the time. For me, DW works much faster with this setting turned off.
Replied 30 Jul 2014 15:08:46
30 Jul 2014 15:08:46 Tim Dittmer replied:
I am using PHP 'include' statements on my pages, referencing elements that sometimes use jQuery as well. If the 'include' files contain references to jQuery.js and you are referring to more than one on the same page, some features may not work.
For example: I am using an 'include' slideshow that uses jQuery. Since the lightbox needs it as well, I just removed the jQuery reference from the slideshow.
If you have any 'require.js' files they need to be at the top of your 'Head' section.

Reply to this topic