Forums

[resolved] Parse error: syntax error, unexpected T_STRING (2 posts)

  1. Coobakai
    Member
    Posted 3 years ago #

    Hi,

    I'm trying to install WordPress, but when I navigate to wp-admin/install.php I'm getting this error message:

    Parse error: syntax error, unexpected T_STRING in /home/matthew/public_html/wp-admin/includes/plugin.php on line 540

    I thought it might be a corrupted file, so I downloaded a second copy of WP and uploaded that version, but I'm still getting the same message.

    If anyone can help it would be greatly appreciated!

    Here's the code... Line 540 is the closing curly brackets:

    function _wp_call_all_hook($args) {
    global $wp_filter;

    reset( $wp_filter['all'] );
    do {
    foreach( (array) current($wp_filter['all']) as $the_ )
    if ( !is_null($the_['function']) )
    call_user_func_array($the_['function'], $args);

    } while ( next($wp_filter['all']) !== false );
    }

  2. Coobakai
    Member
    Posted 3 years ago #

    Strangely enough, I just checked the install again, and it fixed itself.

Topic Closed

This topic has been closed to new replies.

About this Topic