Title: [Plugin: Dynamic Content Gallery] DCG JavaScript Error
Last modified: August 19, 2016

---

# [Plugin: Dynamic Content Gallery] DCG JavaScript Error

 *  Resolved [Rhand](https://wordpress.org/support/users/rhand/)
 * (@rhand)
 * [15 years, 6 months ago](https://wordpress.org/support/topic/plugin-dynamic-content-gallery-dcg-javascript-error/)
 * Getting this error using Dynamic Content gallery:
 *     ```
       document.getElementById("fb-root") is null
       http://domain.nl/
       Line 250
       ```
   
 * I am using jQuery to prevent conflicts with another plugin. This improved things
   greatly, but now I get a new error. How to solve this?

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Thread Starter [Rhand](https://wordpress.org/support/users/rhand/)
 * (@rhand)
 * [15 years, 6 months ago](https://wordpress.org/support/topic/plugin-dynamic-content-gallery-dcg-javascript-error/#post-1795259)
 * I get:
 *     ```
       jQuery(".cf_timebutt1").clockpick is not a function
       http://domain.com/wp-admin/admin.php?page=cforms/cforms-options.php
       Line 54
       ```
   
 * on the CformsII general admin page in the Dashboard. There the AJAX interface
   is no longer working. Maybe these two errors are related.
 * I started using jQuery with DCG because it did not work with Mootools – Slider
   did not show images. I wonder if it is all because the Kino Events Calendar. 
   I will do some testing later today.
 *  Thread Starter [Rhand](https://wordpress.org/support/users/rhand/)
 * (@rhand)
 * [15 years, 6 months ago](https://wordpress.org/support/topic/plugin-dynamic-content-gallery-dcg-javascript-error/#post-1795261)
 * Well CformII is running with AJAX. Had to deactivate and activate after I corrected
   the AJAX path. But I still have that jQuery error I mentioned in the first post.
 *  Plugin Author [studiograsshopper](https://wordpress.org/support/users/studiograsshopper/)
 * (@studiograsshopper)
 * [15 years, 6 months ago](https://wordpress.org/support/topic/plugin-dynamic-content-gallery-dcg-javascript-error/#post-1795354)
 * Rhand,
 * The code you posted isn’t generated by the DCG, so not sure what to suggest other
   than to continue to rule out other plugin conflicts.
 *  Thread Starter [Rhand](https://wordpress.org/support/users/rhand/)
 * (@rhand)
 * [15 years, 6 months ago](https://wordpress.org/support/topic/plugin-dynamic-content-gallery-dcg-javascript-error/#post-1795362)
 * You are right. It is just after the DCG Code in the homepage source. It seems
   to be generated by Facebook Likes it. Found this in facebook-likes-it.php:
 *     ```
       echo <<<END
       <div id="fb-root"></div>
       <script>
         window.fbAsyncInit = function() {
           FB.init({appId: '$appid', status: true, cookie: true, xfbml: true});
         };
         (function() {
           var e = document.createElement('script'); e.async = true;
           e.src = document.location.protocol + '//connect.facebook.net/$locale/all.js';
           document.getElementById('fb-root').appendChild(e);
         }());
       </script>
   
       END;
       	}
       }
       ```
   
 * Will keep on debugging. Thanks for the feedback.
 *  Thread Starter [Rhand](https://wordpress.org/support/users/rhand/)
 * (@rhand)
 * [15 years, 6 months ago](https://wordpress.org/support/topic/plugin-dynamic-content-gallery-dcg-javascript-error/#post-1795379)
 * Used another FB plugin and all good now except for the Cforms error which I am
   working on in anotehr thread.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘[Plugin: Dynamic Content Gallery] DCG JavaScript Error’ is closed to 
new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/dynamic-content-gallery-plugin_103e52.
   svg)
 * [Dynamic Content Gallery](https://wordpress.org/plugins/dynamic-content-gallery-plugin/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/dynamic-content-gallery-plugin/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/dynamic-content-gallery-plugin/)
 * [Active Topics](https://wordpress.org/support/plugin/dynamic-content-gallery-plugin/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/dynamic-content-gallery-plugin/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/dynamic-content-gallery-plugin/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [Rhand](https://wordpress.org/support/users/rhand/)
 * Last activity: [15 years, 6 months ago](https://wordpress.org/support/topic/plugin-dynamic-content-gallery-dcg-javascript-error/#post-1795379)
 * Status: resolved