Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community!
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.Start your free trial
Shaun Glassman6,496 Points
Getting an "Uncaught TypeError: Cannot read property 'className' of null -- Page is working but what is with this error?
I'm getting a strange error in the console when I run the page. The site runs as expected (I previously think I had some weird caching issues) but with the following error:
Uncaught TypeError: Cannot read property 'className' of null
request = true; b[c] = b[c].replace( rcs, ' ' ); //This is line 57 b[c] += ( window.postMessage && request ? ' ' : ' no-' ) + cs; }()); </script>
My functions file is: <?php require_once('examples/export_wp_filter.php'); ?>
My export_wp_filter.php file is as downloaded from the site: <pre> <?php var_export( $wp_filter ); ?> </pre>
The index page is also default: <title><?php wp_title( '|', true, 'right' ); ?></title>
<?php wp_head(); ?>
<?php wp_footer(); ?>
What could be causing this error and could this be problematic in the future?