• Source Files/wp-admin/includes/file.php
    line 980 file.php:13:0 Expected an operand but found eof

    media.php
    Line 2127 media.php:161:0 Expected an operand but found eof

    wp-admin/user
    custom-header.php
    Line 430 custom-header.php:92:17 Expected , but found :
    Line 435 custom-header.php97:3 Expected eof but found }

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    What were you doing to get these errors? Just testing it? And if so, how? 🙂

    Have the same problem. I also use Netbeans to customize my WordPress installation (3.6).

    The included PHP interpretor validates the source code and show for example an error on:
    media.php:161:0 Expected an operand but found eof

    The affected source code:

    <!--
    jQuery(function($){
    	var preloaded = $(".media-item.preloaded");
    	if ( preloaded.length > 0 ) {
    		preloaded.each(function(){prepareMediaItem({id:this.id.replace(/[^0-9]/g, '')},'');});
    		updateMediaForm();
    	}
    });
    -->
    
    </script>

    For my understanding, the <!-- --> inside the JavaScript function is wrong. It seems, as this source code should commented out? Is this right?

    Thanks for your answer.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘NetBeans IDE7.3 Error Messages’ is closed to new replies.