title: Uncaught TypeError: Cannot call method 'getElementsByTagName' of null
body: <p>I bought a WordPress theme and I am having several errors and which hopefully would fix my BuddyPress conflict with the Theme's jQuery and AJAX.</p>
  
  <p>My problem is I'm getting 2 errors:</p>
  
  <ol>
  <li><p><code>Uncaught TypeError: Cannot call method 'getElementsByTagName' of null</code></p>
  
  <p><code>init:function(tabid, dselected){
      var menuitems=document.getElementById(tabid).getElementsByTagName("a")</code></p>
  
  <p><code>Error: Uncaught TypeError: Cannot call method 'getElementsByTagName' of null (repeated 2 times)</code></p></li>
  <li><p><code>Uncaught TypeError: Cannot call method 'getElementsByTagName' of null</code></p>
  
  <p><code>buildcontentdivs:function(setting){
      var alldivs=document.getElementById(setting.id).getElementsByTagName("div")</code></p>
  
  <p><code>Error: Uncaught TypeError: Cannot call method 'getElementsByTagName' of null</code></p></li>
  </ol>
  
  <p>I don't know how to fix this as I'm not a programmer. I only know HTML, CSS and basic WordPress PHP.</p>