WordPress.org

Ready to get started?Download WordPress

Forums

[closed] NetBeans IDE7.3 Error Messages (3 posts)

  1. iantreddy
    Member
    Posted 1 year ago #

    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 }

  2. What were you doing to get these errors? Just testing it? And if so, how? :)

  3. uheber
    Member
    Posted 11 months ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic