• Resolved Rhand

    (@rhand)


    Getting this error using Dynamic Content gallery:

    document.getElementById("fb-root") is null
    https://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

    (@rhand)

    I get:

    jQuery(".cf_timebutt1").clockpick is not a function
    https://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

    (@rhand)

    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

    (@studiograsshopper)

    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

    (@rhand)

    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

    (@rhand)

    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.