[resolved] JavaScript error while logging in (wp-login.php) (3 posts)

  1. DanielPtr
    Posted 4 years ago #

    I'm trying to setting up a Dutch WordPress site. Today I've moved it to it's definite domain (that was hard to do), but since I get an error when I'm going to http://houtskoolportret.nl/wp-login.php. The error refers to JavaScript, so seems. There's nothing wrong as a result of the error, but it's annoying and not as it should be.

    In Google Chrome the error is: TypeError: Cannot read property style of null
    In Firefox: TypeError: obj.firstChild.firstChild is null
    In Internet Explorer: Cannot retrieve the value style: the object is null or not defined

    On the Internet there's much to find about this error, but I hadn't written the JavaScript by myself, but it's all WordPress JavaScript...

    Old backups don't solve the problem.

    Could anyone help me? Thanks in advance!

  2. I think that the error is coming from your custom logo plugin. When I look at the source code I see this:

    <script type="text/javascript">
        window.onload = function() {
    	try {
    		var obj = document.getElementById('login'); if (obj) { obj.firstChild.firstChild.style.background = 'url(http://www.houtskoolportret.nl/wp-content/plugins/custom-logo/houtskoollogo_beheer.png) no-repeat center'; }
    	catch (e) {
    		var message = (e.description) ? e.description : e;
    I think that's the code that creating the error.

  3. DanielPtr
    Posted 4 years ago #

    You are brilliant! That was indeed the cause of the error. I've installed another plugin for the logo, and no problems so far. Thanks!

Topic Closed

This topic has been closed to new replies.

About this Topic